Revision 30580 branches/v2_0_0_prep/libraries/libFMap_mapcontext/src-test/org/gvsig/fmap/mapcontext/persistence/MapContextPersistenceTestNo.java
MapContextPersistenceTestNo.java | ||
---|---|---|
14 | 14 |
import org.gvsig.fmap.geom.primitive.Envelope; |
15 | 15 |
import org.gvsig.fmap.geom.primitive.impl.Envelope2D; |
16 | 16 |
import org.gvsig.fmap.mapcontext.MapContext; |
17 |
import org.gvsig.fmap.mapcontext.MapContextLocator; |
|
18 | 17 |
import org.gvsig.fmap.mapcontext.ViewPort; |
19 | 18 |
import org.gvsig.fmap.mapcontext.exceptions.LegendLayerException; |
20 | 19 |
import org.gvsig.fmap.mapcontext.exceptions.LoadLayerException; |
21 |
import org.gvsig.fmap.mapcontext.impl.DefaultMapContextManager; |
|
22 | 20 |
import org.gvsig.fmap.mapcontext.layers.FLayer; |
23 | 21 |
import org.gvsig.fmap.mapcontext.layers.FLayers; |
24 | 22 |
import org.gvsig.fmap.mapcontext.layers.vectorial.FLyrVect; |
... | ... | |
26 | 24 |
import org.gvsig.fmap.mapcontext.rendering.legend.ILegend; |
27 | 25 |
import org.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend; |
28 | 26 |
import org.gvsig.tools.ToolsLocator; |
29 |
import org.gvsig.tools.dynobject.impl.DefaultDynObjectManager; |
|
30 |
import org.gvsig.tools.locator.LibrariesInitializer; |
|
27 |
import org.gvsig.tools.library.impl.DefaultLibrariesInitializer; |
|
31 | 28 |
import org.gvsig.tools.persistence.PersistentState; |
32 |
import org.gvsig.tools.persistence.xml.XMLPersistenceManager; |
|
33 | 29 |
|
34 | 30 |
public class MapContextPersistenceTestNo extends TestCase { |
35 | 31 |
|
... | ... | |
44 | 40 |
super.setUp(); |
45 | 41 |
|
46 | 42 |
System.out.println("Init all library..."); |
47 |
LibrariesInitializer lini = new LibrariesInitializer(); |
|
48 |
lini.initializeAndPostinitializeAll(); |
|
43 |
new DefaultLibrariesInitializer().fullInitialize(); |
|
44 |
|
|
45 |
// LibrariesInitializer lini = new LibrariesInitializer(); |
|
46 |
// lini.initializeAndPostinitializeAll(); |
|
49 | 47 |
/* |
50 | 48 |
System.out.println("Init Projection library..."); |
51 | 49 |
ProjectionLibrary crel = new ProjectionLibrary(); |
... | ... | |
54 | 52 |
crel.postInitialize(); |
55 | 53 |
*/ |
56 | 54 |
|
57 |
System.out.println("Register DefaultDynObjectManager..."); |
|
58 |
ToolsLocator.registerDynObjectManager(DefaultDynObjectManager.class); |
|
59 |
System.out.println("Register XMLPersistenceManager..."); |
|
60 |
ToolsLocator.registerDefaultPersistenceManager(XMLPersistenceManager.class); |
|
61 |
|
|
62 |
System.out.println("Register DefaultMapContextManager..."); |
|
63 |
MapContextLocator.registerMapContextManager(DefaultMapContextManager.class); |
|
55 |
// System.out.println("Register DefaultDynObjectManager...");
|
|
56 |
// ToolsLocator.registerDynObjectManager(DefaultDynObjectManager.class);
|
|
57 |
// System.out.println("Register XMLPersistenceManager...");
|
|
58 |
// ToolsLocator.registerDefaultPersistenceManager(XMLPersistenceManager.class);
|
|
59 |
// |
|
60 |
// System.out.println("Register DefaultMapContextManager...");
|
|
61 |
// MapContextLocator.registerMapContextManager(DefaultMapContextManager.class);
|
|
64 | 62 |
|
65 | 63 |
System.out.println("Creating temp file for persistence..."); |
66 | 64 |
tempFile = File.createTempFile("persisted_mapcontext", ".xml"); |
Also available in: Unified diff