Commit 895a8801 authored by Matthias Betz's avatar Matthias Betz
Browse files

added degenerated ring test

parent 3188e3b4
......@@ -378,6 +378,22 @@ class QualityAdeTests {
byte[] buf = writeModel(model);
assertTrue(validate(new ByteArrayInputStream(buf)));
}
@Test
void testRingSelfIntersectionErrorDegenerateRing() throws ADEException, CityGMLContextException, CityGMLWriteException,
SAXException, IOException, SchemaHandlerException {
CityModel model = new CityModel();
ValidationResult res = fillCityModel(model);
RingSelfIntersectionError err = new RingSelfIntersectionError();
err.setLinearRingId("ringId");
err.setType(RingSelfIntType.DEGENERATED_RING);
err.setVertex1(new DirectPosition(1, 2, 3));
res.getErrors().add(new AbstractErrorProperty(err));
byte[] buf = writeModel(model);
assertTrue(validate(new ByteArrayInputStream(buf)));
}
@Test
void testRingTooFewPointsError() throws ADEException, CityGMLContextException, CityGMLWriteException, SAXException,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment