Commit de010bd6 authored by Riegel's avatar Riegel
Browse files

Reworked JUnit test and disabled some of the False-Positive tests which...

Reworked JUnit test and disabled some of the False-Positive tests which induced a massive memory load
parent fbb6d35a
Pipeline #10009 passed with stage
in 1 minute and 13 seconds
......@@ -123,6 +123,7 @@ public class SolidSelfIntCheckTest {
check.check(buildingGeom);
CheckResult cr = buildingGeom.getCheckResult(check);
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());
}
......@@ -130,10 +131,10 @@ public class SolidSelfIntCheckTest {
}
@Test
public void testKnownFalsePositiveExample3() throws CityGmlParseException, InvalidGmlFileException {
public void testKnownFalsePositiveExample_BigMesh1() throws CityGmlParseException, InvalidGmlFileException {
ValidationConfiguration config = ValidationConfiguration.loadStandardValidationConfig();
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);
c.runChecks();
Building building = m.getBuildings().get(0);
......@@ -145,7 +146,6 @@ public class SolidSelfIntCheckTest {
check.check(buildingGeom);
CheckResult cr = buildingGeom.getCheckResult(check);
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());
}
......@@ -153,10 +153,10 @@ public class SolidSelfIntCheckTest {
}
@Test
public void testKnownFalsePositiveExample4() throws CityGmlParseException, InvalidGmlFileException {
public void testKnownFalsePositiveExample_BigMesh2() throws CityGmlParseException, InvalidGmlFileException {
ValidationConfiguration config = ValidationConfiguration.loadStandardValidationConfig();
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);
c.runChecks();
Building building = m.getBuildings().get(0);
......@@ -175,4 +175,6 @@ public class SolidSelfIntCheckTest {
}
}
Markdown is supported
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