Revision 20421 trunk/libraries/libDataSourceBaseDrivers/src-test/org/gvsig/data/datastores/vectorial/file/DataStoreTest.java
DataStoreTest.java | ||
---|---|---|
180 | 180 |
fs.startEditing(); |
181 | 181 |
|
182 | 182 |
IFeature newFeature = fs.createFeature(fs.getDefaultFeatureType()); |
183 |
newFeature.loading(); |
|
183 | 184 |
newFeature.set("NOMBRE","BuRjaSOT"); |
184 | 185 |
newFeature.set("TIPO","MUNICIPIO"); |
186 |
newFeature.stopLoading(); |
|
185 | 187 |
fs.insert(newFeature); |
186 | 188 |
|
187 | 189 |
|
... | ... | |
490 | 492 |
fs.startEditing(); |
491 | 493 |
|
492 | 494 |
IFeature newFeature = fs.createFeature(fs.getDefaultFeatureType()); |
495 |
newFeature.loading(); |
|
493 | 496 |
newFeature.set("NOMBRE","BuRjaSOT"); |
494 | 497 |
newFeature.set("TIPO","MUNICIPIO"); |
498 |
newFeature.stopLoading(); |
|
495 | 499 |
fs.insert(newFeature); |
496 | 500 |
|
497 | 501 |
|
... | ... | |
795 | 799 |
} catch (ReadException e) { |
796 | 800 |
// TODO Auto-generated catch block |
797 | 801 |
e.printStackTrace(); |
798 |
} catch (IsNotFeatureSettingException e) { |
|
799 |
// TODO Auto-generated catch block |
|
800 |
e.printStackTrace(); |
|
801 | 802 |
} |
802 | 803 |
} |
803 | 804 |
|
... | ... | |
946 | 947 |
} catch (ReadException e) { |
947 | 948 |
// TODO Auto-generated catch block |
948 | 949 |
e.printStackTrace(); |
949 |
} catch (IsNotFeatureSettingException e) { |
|
950 |
// TODO Auto-generated catch block |
|
951 |
e.printStackTrace(); |
|
952 | 950 |
} |
953 | 951 |
} |
954 | 952 |
|
... | ... | |
994 | 992 |
} catch (OpenException e2) { |
995 | 993 |
e2.printStackTrace(); |
996 | 994 |
fail(); |
997 |
} catch (IsNotFeatureSettingException e) { |
|
998 |
// TODO Auto-generated catch block |
|
999 |
e.printStackTrace(); |
|
1000 | 995 |
} |
1001 | 996 |
|
1002 | 997 |
if (fs.isEditable() && testEdit) { |
... | ... | |
1015 | 1010 |
fs.insert(feature1); |
1016 | 1011 |
fs.insert(feature2); |
1017 | 1012 |
|
1018 |
fs.update(feature3,feature1); |
|
1013 |
feature1.editing(); |
|
1014 |
feature1.set(1,"hola"); |
|
1015 |
|
|
1016 |
fs.update(feature1); |
|
1019 | 1017 |
fs.delete(feature3); |
1020 | 1018 |
fs.delete(feature2); |
1021 | 1019 |
} catch (IsNotFeatureSettingException e) { |
... | ... | |
1035 | 1033 |
} catch (ReadException e2) { |
1036 | 1034 |
// TODO Auto-generated catch block |
1037 | 1035 |
e2.printStackTrace(); |
1038 |
} catch (IsNotFeatureSettingException e) { |
|
1039 |
// TODO Auto-generated catch block |
|
1040 |
e.printStackTrace(); |
|
1041 | 1036 |
} |
1042 | 1037 |
|
1043 | 1038 |
PrintlnFeaturesVisitor visitor=new PrintlnFeaturesVisitor(ft); |
... | ... | |
1059 | 1054 |
} catch (ReadException e) { |
1060 | 1055 |
e.printStackTrace(); |
1061 | 1056 |
fail("Exception: "+e); |
1062 |
} catch (IsNotFeatureSettingException e) { |
|
1063 |
// TODO Auto-generated catch block |
|
1064 |
e.printStackTrace(); |
|
1065 | 1057 |
} |
1066 | 1058 |
} |
1067 | 1059 |
try { |
Also available in: Unified diff