From 12d96d95ffd83382e6657369e11c5782e484a3f4 Mon Sep 17 00:00:00 2001 From: Alex <22rial1mpg@hft-stuttgart.de> Date: Mon, 29 Jul 2024 09:56:32 +0200 Subject: [PATCH] Minor corrections to comments and test-case messages --- .../SolidSelfIntCheckFalsePositiveBigMeshTest.java | 13 +++++++------ .../checks/geometry/SolidSelfIntCheckTest.java | 5 +++-- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/CityDoctorParent/CityDoctorValidation/src/test/java/de/hft/stuttgart/citydoctor2/checks/geometry/SolidSelfIntCheckFalsePositiveBigMeshTest.java b/CityDoctorParent/CityDoctorValidation/src/test/java/de/hft/stuttgart/citydoctor2/checks/geometry/SolidSelfIntCheckFalsePositiveBigMeshTest.java index 5d9a00a9..d83aa851 100644 --- a/CityDoctorParent/CityDoctorValidation/src/test/java/de/hft/stuttgart/citydoctor2/checks/geometry/SolidSelfIntCheckFalsePositiveBigMeshTest.java +++ b/CityDoctorParent/CityDoctorValidation/src/test/java/de/hft/stuttgart/citydoctor2/checks/geometry/SolidSelfIntCheckFalsePositiveBigMeshTest.java @@ -19,10 +19,10 @@ import de.hft.stuttgart.citydoctor2.parser.CityGmlParser; import de.hft.stuttgart.citydoctor2.parser.InvalidGmlFileException; /** - * Additional Test-Cases for known False-Positives for self intersection. - * These tests use building models which have big meshes. - * Excluded from Maven test-phase due to the limited memory of the - * CI/CD-Runners. + * Additional test-cases for testing found false positive self-intersection errors. + * The building models in these tests have big meshes, + * and thus induce a spike in memory usage when loaded or on starting a check. + * Excluded from Maven tests due to the limited memory of the CI/CD-Runners. * * @author Riegel */ @@ -40,7 +40,7 @@ public class SolidSelfIntCheckFalsePositiveBigMeshTest { /* * The examples have no actual self-intersections, but can contain other actual model defects. * If an error is detected, it is thus required to check if the - * False-Positive self-intersection triggered it. + * false positive self-intersection triggered it. */ if (building.containsAnyError()) { Geometry buildingGeom = building.getGeometry(GeometryType.SOLID, Lod.LOD2); @@ -50,7 +50,8 @@ public class SolidSelfIntCheckFalsePositiveBigMeshTest { CheckResult cr = buildingGeom.getCheckResult(check); assertNotNull(cr); //Ensure that the found error is not a self-intersection error - assertEquals("Known False-Positive self-intersection was detected as error", ResultStatus.OK, cr.getResultStatus()); + assertEquals("False-positive self-intersection should not be detected by self-intersection check", + ResultStatus.OK, cr.getResultStatus()); } } diff --git a/CityDoctorParent/CityDoctorValidation/src/test/java/de/hft/stuttgart/citydoctor2/checks/geometry/SolidSelfIntCheckTest.java b/CityDoctorParent/CityDoctorValidation/src/test/java/de/hft/stuttgart/citydoctor2/checks/geometry/SolidSelfIntCheckTest.java index e6cff8eb..1aacfc90 100644 --- a/CityDoctorParent/CityDoctorValidation/src/test/java/de/hft/stuttgart/citydoctor2/checks/geometry/SolidSelfIntCheckTest.java +++ b/CityDoctorParent/CityDoctorValidation/src/test/java/de/hft/stuttgart/citydoctor2/checks/geometry/SolidSelfIntCheckTest.java @@ -90,7 +90,7 @@ public class SolidSelfIntCheckTest { /* * The examples have no actual self-intersections, but can contain other actual model defects. * If an error is detected, it is thus required to check if the - * False-Positive self-intersection triggered it. + * false positive self-intersection triggered it. */ if (building.containsAnyError()) { Geometry buildingGeom = building.getGeometry(GeometryType.SOLID, Lod.LOD2); @@ -100,7 +100,8 @@ public class SolidSelfIntCheckTest { CheckResult cr = buildingGeom.getCheckResult(check); assertNotNull(cr); //Ensure that the found error is not a self-intersection error - assertEquals("Known False-Positive self-intersection was detected as error", ResultStatus.OK, cr.getResultStatus()); + assertEquals("False-positive self-intersection should not be detected by self-intersection check", + ResultStatus.OK, cr.getResultStatus()); } } -- GitLab