Source

...

Target

Commits (2)
Showing with 15813 additions and 15811 deletions
+15813 -15811
...@@ -123,6 +123,7 @@ public class SolidSelfIntCheckTest { ...@@ -123,6 +123,7 @@ public class SolidSelfIntCheckTest {
check.check(buildingGeom); check.check(buildingGeom);
CheckResult cr = buildingGeom.getCheckResult(check); CheckResult cr = buildingGeom.getCheckResult(check);
assertNotNull(cr); assertNotNull(cr);
//Ensure that checker did not find the false-positive self intersection
assertEquals("Known False-Positive self-intersection was detected as error", ResultStatus.OK, cr.getResultStatus()); assertEquals("Known False-Positive self-intersection was detected as error", ResultStatus.OK, cr.getResultStatus());
} }
...@@ -130,10 +131,10 @@ public class SolidSelfIntCheckTest { ...@@ -130,10 +131,10 @@ public class SolidSelfIntCheckTest {
} }
@Test @Test
public void testKnownFalsePositiveExample3() throws CityGmlParseException, InvalidGmlFileException { public void testKnownFalsePositiveExample_BigMesh1() throws CityGmlParseException, InvalidGmlFileException {
ValidationConfiguration config = ValidationConfiguration.loadStandardValidationConfig(); ValidationConfiguration config = ValidationConfiguration.loadStandardValidationConfig();
config.setSchematronFilePathInGlobalParameters(null); config.setSchematronFilePathInGlobalParameters(null);
CityDoctorModel m = CityGmlParser.parseCityGmlFile("src/test/resources/SolidSelfIntTest-known_false_positive3.gml", config.getParserConfiguration()); CityDoctorModel m = CityGmlParser.parseCityGmlFile("src/test/resources/SolidSelfIntTest-known_false_positive_Big_Mesh1.gml", config.getParserConfiguration());
Checker c = new Checker(config, m); Checker c = new Checker(config, m);
c.runChecks(); c.runChecks();
Building building = m.getBuildings().get(0); Building building = m.getBuildings().get(0);
...@@ -145,7 +146,6 @@ public class SolidSelfIntCheckTest { ...@@ -145,7 +146,6 @@ public class SolidSelfIntCheckTest {
check.check(buildingGeom); check.check(buildingGeom);
CheckResult cr = buildingGeom.getCheckResult(check); CheckResult cr = buildingGeom.getCheckResult(check);
assertNotNull(cr); assertNotNull(cr);
//Ensure that checker did not find the false-positive self intersection
assertEquals("Known False-Positive self-intersection was detected as error", ResultStatus.OK, cr.getResultStatus()); assertEquals("Known False-Positive self-intersection was detected as error", ResultStatus.OK, cr.getResultStatus());
} }
...@@ -153,10 +153,10 @@ public class SolidSelfIntCheckTest { ...@@ -153,10 +153,10 @@ public class SolidSelfIntCheckTest {
} }
@Test @Test
public void testKnownFalsePositiveExample4() throws CityGmlParseException, InvalidGmlFileException { public void testKnownFalsePositiveExample_BigMesh2() throws CityGmlParseException, InvalidGmlFileException {
ValidationConfiguration config = ValidationConfiguration.loadStandardValidationConfig(); ValidationConfiguration config = ValidationConfiguration.loadStandardValidationConfig();
config.setSchematronFilePathInGlobalParameters(null); config.setSchematronFilePathInGlobalParameters(null);
CityDoctorModel m = CityGmlParser.parseCityGmlFile("src/test/resources/SolidSelfIntTest-known_false_positive4.gml", config.getParserConfiguration()); CityDoctorModel m = CityGmlParser.parseCityGmlFile("src/test/resources/SolidSelfIntTest-known_false_positive_Big_Mesh2.gml", config.getParserConfiguration());
Checker c = new Checker(config, m); Checker c = new Checker(config, m);
c.runChecks(); c.runChecks();
Building building = m.getBuildings().get(0); Building building = m.getBuildings().get(0);
...@@ -175,4 +175,6 @@ public class SolidSelfIntCheckTest { ...@@ -175,4 +175,6 @@ public class SolidSelfIntCheckTest {
} }
} }