Revision 29291 branches/v2_0_0_prep/libraries/libFMap_dal/src-test/org/gvsig/fmap/dal/feature/BaseTestFeatureStore.java
BaseTestFeatureStore.java | ||
---|---|---|
843 | 843 |
public void testInitializeStore() throws Exception { |
844 | 844 |
FeatureStore store = (FeatureStore) dataManager.createStore(this |
845 | 845 |
.getDefaultDataStoreParameters()); |
846 |
|
|
847 |
assertNotNull(store.getMetadataID()); |
|
848 |
assertNotNull(store.getName()); |
|
849 |
assertEquals(store.getEnvelope(), store.getDynValue("envelope")); |
|
850 |
assertTrue(store.getFeatureCount() > 0); |
|
851 |
if (store.isLocksSupported()) { |
|
852 |
assertNotNull(store.getLocks()); |
|
853 |
} else { |
|
854 |
assertNull(store.getLocks()); |
|
855 |
} |
|
846 | 856 |
store.dispose(); |
847 | 857 |
} |
848 | 858 |
|
... | ... | |
1046 | 1056 |
// } |
1047 | 1057 |
|
1048 | 1058 |
|
1049 |
public void testShort() throws Exception {
|
|
1059 |
public void testSort() throws Exception { |
|
1050 | 1060 |
DataStoreParameters dbfParameters = this |
1051 | 1061 |
.getDefaultDataStoreParameters(); |
1052 | 1062 |
|
1053 | 1063 |
FeatureStore store = (FeatureStore) dataManager |
1054 | 1064 |
.createStore(dbfParameters); |
1055 | 1065 |
|
1056 |
testShort(store);
|
|
1066 |
testSort(store); |
|
1057 | 1067 |
|
1058 | 1068 |
store.dispose(); |
1059 | 1069 |
|
1060 | 1070 |
} |
1061 | 1071 |
|
1062 |
public void testShort(FeatureStore store) throws Exception{
|
|
1072 |
public void testSort(FeatureStore store) throws Exception{ |
|
1063 | 1073 |
FeatureSet set1; |
1064 | 1074 |
FeatureQuery query; |
1065 | 1075 |
DisposableIterator iter1; |
... | ... | |
1250 | 1260 |
protected void fullStoreIteratorTest(FeatureStore store) throws Exception{ |
1251 | 1261 |
testIterationFastAndStandart(store); |
1252 | 1262 |
testCustomFTypeSet(store); |
1253 |
testShort(store);
|
|
1263 |
testSort(store); |
|
1254 | 1264 |
} |
1255 | 1265 |
|
1256 | 1266 |
|
Also available in: Unified diff