Revision 30754 branches/v2_0_0_prep/libraries/libFMap_dalfile/src-test/org/gvsig/fmap/dal/explorer/filesystem/FileSystemExplorerTest.java
FileSystemExplorerTest.java | ||
---|---|---|
31 | 31 |
import java.util.Iterator; |
32 | 32 |
import java.util.List; |
33 | 33 |
|
34 |
import junit.framework.TestCase; |
|
35 |
|
|
36 | 34 |
import org.gvsig.fmap.dal.DALLocator; |
37 | 35 |
import org.gvsig.fmap.dal.DataManager; |
38 | 36 |
import org.gvsig.fmap.dal.DataServerExplorer; |
... | ... | |
47 | 45 |
import org.gvsig.fmap.dal.store.dbf.DBFStoreParameters; |
48 | 46 |
import org.gvsig.fmap.dal.store.dbf.DBFStoreProvider; |
49 | 47 |
import org.gvsig.fmap.dal.store.dbf.TestDBF; |
50 |
import org.gvsig.tools.library.impl.DefaultLibrariesInitializer;
|
|
48 |
import org.gvsig.tools.junit.AbstractLibraryAutoInitTestCase;
|
|
51 | 49 |
|
52 |
public class FileSystemExplorerTest extends TestCase { |
|
50 |
public class FileSystemExplorerTest extends AbstractLibraryAutoInitTestCase {
|
|
53 | 51 |
|
54 | 52 |
private static DataManager dataManager = null; |
55 | 53 |
public static final File dbf_data = new File(TestDBF.class.getResource( |
56 | 54 |
"data/prueba.dbf").getFile()).getParentFile(); |
57 | 55 |
|
58 |
|
|
59 |
protected void setUp() throws Exception { |
|
60 |
super.setUp(); |
|
61 |
|
|
62 |
if (dataManager != null) { |
|
63 |
return; |
|
64 |
} |
|
65 |
new DefaultLibrariesInitializer().fullInitialize(); |
|
66 |
|
|
67 |
// DALLibrary lib = new DALLibrary(); |
|
68 |
// lib.initialize(); |
|
69 |
// lib.postInitialize(); |
|
70 |
// |
|
71 |
// DALDefaultImplLibrary libImpl = new DALDefaultImplLibrary(); |
|
72 |
// libImpl.initialize(); |
|
73 |
// libImpl.postInitialize(); |
|
74 |
// |
|
75 |
// DALFileLibrary libFile = new DALFileLibrary(); |
|
76 |
// libFile.initialize(); |
|
77 |
// libFile.postInitialize(); |
|
78 |
|
|
56 |
@Override |
|
57 |
protected void doSetUp() throws Exception { |
|
79 | 58 |
dataManager = DALLocator.getDataManager(); |
80 |
|
|
81 | 59 |
} |
82 | 60 |
|
83 | 61 |
public void testList() throws Exception { |
... | ... | |
105 | 83 |
} |
106 | 84 |
|
107 | 85 |
Iterator iter = list.iterator(); |
108 |
TestDBF testDBF = new TestDBF(false, true);
|
|
86 |
TestDBF testDBF = new TestDBF(); |
|
109 | 87 |
while (iter.hasNext()) { |
110 | 88 |
testDBF.testSimpleIteration((DBFStoreParameters) iter.next()); |
111 | 89 |
} |
... | ... | |
174 | 152 |
assertEquals(1, list.size()); |
175 | 153 |
|
176 | 154 |
Iterator iter = list.iterator(); |
177 |
TestDBF testDBF = new TestDBF(false, true);
|
|
155 |
TestDBF testDBF = new TestDBF(); |
|
178 | 156 |
while (iter.hasNext()) { |
179 | 157 |
testDBF.testSimpleIteration((DBFStoreParameters) iter.next()); |
180 | 158 |
} |
Also available in: Unified diff