Revision 143
org.gvsig.vectorediting/trunk/org.gvsig.vectorediting/org.gvsig.vectorediting.lib/org.gvsig.vectorediting.lib.prov/org.gvsig.vectorediting.lib.prov.insertpoint/src/test/java/org/gvsig/vectorediting/lib/prov/insertpoint/InsertPointTest.java | ||
---|---|---|
75 | 75 |
try { |
76 | 76 |
|
77 | 77 |
service.finish(); |
78 |
fail("No exception is thrown");
|
|
78 |
fail("No exception has been thrown");
|
|
79 | 79 |
|
80 | 80 |
} catch (NullPointerException e) { |
81 | 81 |
// Test OK, got expected exception |
... | ... | |
118 | 118 |
service.setValue(point); |
119 | 119 |
|
120 | 120 |
service.finish(); |
121 |
fail("No exception is thrown");
|
|
121 |
fail("No exception has been thrown");
|
|
122 | 122 |
} catch (FinishServiceException e) { |
123 | 123 |
// Test OK, got expected exception |
124 | 124 |
} catch (Exception e) { |
... | ... | |
148 | 148 |
|
149 | 149 |
featureStoreTest.edit(); |
150 | 150 |
service.finishAndStore(); |
151 |
featureStoreTest.cancelEditing();
|
|
152 |
|
|
151 |
featureStoreTest.finishEditing();
|
|
152 |
|
|
153 | 153 |
} catch (Exception e) { |
154 | 154 |
fail("Unexpected exception ending and storing service: " |
155 | 155 |
+ e.getMessage()); |
... | ... | |
165 | 165 |
point = geoManager.createPoint(0, 0, Geometry.SUBTYPES.GEOM2D); |
166 | 166 |
service.setValue(point); |
167 | 167 |
|
168 |
service.finish(); |
|
169 |
fail("No exception is thrown");
|
|
168 |
service.finishAndStore();
|
|
169 |
fail("No exception has been thrown");
|
|
170 | 170 |
} catch (FinishServiceException e) { |
171 | 171 |
// Test OK, got expected exception |
172 | 172 |
} catch (Exception e) { |
org.gvsig.vectorediting/trunk/org.gvsig.vectorediting/org.gvsig.vectorediting.lib/org.gvsig.vectorediting.lib.prov/org.gvsig.vectorediting.lib.prov.circlecr/src/test/java/org/gvsig/vectorediting/lib/prov/circlecr/CircumferenceCRTest.java | ||
---|---|---|
78 | 78 |
|
79 | 79 |
service.setValue(center); |
80 | 80 |
service.finish(); |
81 |
fail("No exception is thrown");
|
|
81 |
fail("No exception has been thrown");
|
|
82 | 82 |
|
83 | 83 |
} catch (NullPointerException e) { |
84 | 84 |
// Test ok, got expected exception |
... | ... | |
143 | 143 |
service.setValue(radius); |
144 | 144 |
|
145 | 145 |
service.finish(); |
146 |
fail("No exception is thrown");
|
|
146 |
fail("No exception has been thrown");
|
|
147 | 147 |
} catch (FinishServiceException e) { |
148 | 148 |
// Test OK, got expected exception |
149 | 149 |
} catch (Exception e) { |
org.gvsig.vectorediting/trunk/org.gvsig.vectorediting/org.gvsig.vectorediting.lib/org.gvsig.vectorediting.lib.prov/org.gvsig.vectorediting.lib.prov.circlecr/src/test/java/org/gvsig/vectorediting/lib/prov/circlecr/CircleCrTest.java | ||
---|---|---|
78 | 78 |
try { |
79 | 79 |
|
80 | 80 |
service.finish(); |
81 |
fail("No exception is thrown");
|
|
81 |
fail("No exception has been thrown");
|
|
82 | 82 |
|
83 | 83 |
} catch (NullPointerException e) { |
84 | 84 |
// Test OK, got expected exception |
... | ... | |
94 | 94 |
service.setValue(center); |
95 | 95 |
|
96 | 96 |
service.finish(); |
97 |
fail("No exception is thrown");
|
|
97 |
fail("No exception has been thrown");
|
|
98 | 98 |
|
99 | 99 |
} catch (NullPointerException e) { |
100 | 100 |
// Test OK, got expected exception |
... | ... | |
150 | 150 |
service.setValue(radius); |
151 | 151 |
|
152 | 152 |
service.finish(); |
153 |
fail("No exception is thrown");
|
|
153 |
fail("No exception has been thrown");
|
|
154 | 154 |
} catch (FinishServiceException e) { |
155 | 155 |
// Test OK, got expected exception |
156 | 156 |
} catch (Exception e) { |
... | ... | |
166 | 166 |
try { |
167 | 167 |
|
168 | 168 |
service.finishAndStore(); |
169 |
fail("No exception is thrown");
|
|
169 |
fail("No exception has been thrown");
|
|
170 | 170 |
|
171 | 171 |
} catch (NullPointerException e) { |
172 | 172 |
// Test OK, got expected exception |
... | ... | |
182 | 182 |
center = geoManager.createPoint(0, 0, Geometry.SUBTYPES.GEOM2D); |
183 | 183 |
|
184 | 184 |
service.finishAndStore(); |
185 |
fail("No exception is thrown");
|
|
185 |
fail("No exception has been thrown");
|
|
186 | 186 |
|
187 | 187 |
} catch (NullPointerException e) { |
188 | 188 |
// Test OK, got expected exception |
... | ... | |
208 | 208 |
service.setValue(radius); |
209 | 209 |
|
210 | 210 |
service.finishAndStore(); |
211 |
fail("No exception is thrown");
|
|
211 |
fail("No exception has been thrown");
|
|
212 | 212 |
} catch (FinishServiceException e) { |
213 | 213 |
// Test OK, got expected exception |
214 | 214 |
} catch (Exception e) { |
... | ... | |
234 | 234 |
|
235 | 235 |
featureStoreTest.edit(); |
236 | 236 |
service.finishAndStore(); |
237 |
featureStoreTest.cancelEditing();
|
|
237 |
featureStoreTest.finishEditing();
|
|
238 | 238 |
|
239 | 239 |
} catch (Exception e) { |
240 | 240 |
fail("Unexpected exception ending service. " + e.getMessage()); |
Also available in: Unified diff