use of org.locationtech.geogig.api.porcelain.CannotApplyPatchException in project GeoGig by boundlessgeo.
the class ApplyPatchOpTest method testAddedFeatureExists.
@Test
public void testAddedFeatureExists() throws Exception {
insert(points1);
Patch patch = new Patch();
String path = NodeRef.appendChild(pointsName, points1.getIdentifier().getID());
patch.addAddedFeature(path, points1, RevFeatureTypeImpl.build(pointsType));
try {
geogig.command(ApplyPatchOp.class).setPatch(patch).call();
fail();
} catch (CannotApplyPatchException e) {
assertTrue(true);
}
}
use of org.locationtech.geogig.api.porcelain.CannotApplyPatchException in project GeoGig by boundlessgeo.
the class ApplyPatchOpTest method testRemovedFeatureDoesNotExists.
@Test
public void testRemovedFeatureDoesNotExists() throws Exception {
Patch patch = new Patch();
String path = NodeRef.appendChild(pointsName, points1.getIdentifier().getID());
patch.addRemovedFeature(path, points1, RevFeatureTypeImpl.build(pointsType));
try {
geogig.command(ApplyPatchOp.class).setPatch(patch).call();
fail();
} catch (CannotApplyPatchException e) {
assertTrue(true);
}
}
Aggregations