Revision 30754 branches/v2_0_0_prep/libraries/libTools/src-test/org/gvsig/tools/persistence/xml/XMLPersistenceTest.java
XMLPersistenceTest.java | ||
---|---|---|
36 | 36 |
import java.util.Iterator; |
37 | 37 |
import java.util.List; |
38 | 38 |
|
39 |
import junit.framework.TestCase; |
|
40 |
|
|
41 | 39 |
import org.gvsig.tools.ToolsLocator; |
42 |
import org.gvsig.tools.library.impl.DefaultLibrariesInitializer;
|
|
40 |
import org.gvsig.tools.junit.AbstractLibraryAutoInitTestCase;
|
|
43 | 41 |
import org.gvsig.tools.persistence.PersistenceManager; |
44 | 42 |
import org.gvsig.tools.persistence.Persistent; |
45 | 43 |
import org.gvsig.tools.persistence.PersistentState; |
... | ... | |
48 | 46 |
* @author jmvivo |
49 | 47 |
* |
50 | 48 |
*/ |
51 |
public class XMLPersistenceTest extends TestCase { |
|
49 |
public class XMLPersistenceTest extends AbstractLibraryAutoInitTestCase {
|
|
52 | 50 |
|
53 |
/* (non-Javadoc) |
|
54 |
* @see junit.framework.TestCase#setUp() |
|
55 |
*/ |
|
56 |
protected void setUp() throws Exception { |
|
57 |
super.setUp(); |
|
58 |
|
|
59 |
new DefaultLibrariesInitializer().fullInitialize(); |
|
60 |
|
|
61 |
// ToolsLibrary toolsLib = new ToolsLibrary(); |
|
62 |
// XMLPersistenceLibrary xmlPersistenceLib = new XMLPersistenceLibrary(); |
|
63 |
// |
|
64 |
// toolsLib.initialize(); |
|
65 |
// xmlPersistenceLib.initialize(); |
|
66 |
// |
|
67 |
// toolsLib.postInitialize(); |
|
68 |
// xmlPersistenceLib.postInitialize(); |
|
69 |
|
|
51 |
protected void doSetUp() throws Exception { |
|
70 | 52 |
ToolsLocator |
71 | 53 |
.registerPersistenceManager(XMLPersistenceManager.class); |
72 | 54 |
|
Also available in: Unified diff