From 3c82e1beb3bbe17dc95e93c4178602fe0b0e6b09 Mon Sep 17 00:00:00 2001 From: Patrick Ackermann Date: Thu, 20 Jun 2024 10:51:34 +0200 Subject: [PATCH] Fix test --- .../functions/ngk/IsInsideAreaByCodeIoxPluginTest.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/test/java/ch/geowerkstatt/ilivalidator/extensions/functions/ngk/IsInsideAreaByCodeIoxPluginTest.java b/src/test/java/ch/geowerkstatt/ilivalidator/extensions/functions/ngk/IsInsideAreaByCodeIoxPluginTest.java index 12f8d96..6ca8738 100644 --- a/src/test/java/ch/geowerkstatt/ilivalidator/extensions/functions/ngk/IsInsideAreaByCodeIoxPluginTest.java +++ b/src/test/java/ch/geowerkstatt/ilivalidator/extensions/functions/ngk/IsInsideAreaByCodeIoxPluginTest.java @@ -354,8 +354,9 @@ public void sharedArcSegmentDifferentMidPoint() throws Ili2cFailure { LogCollector logger = vh.runValidation(new String[]{ILI_FILE}, TOPIC, objects.stream().map(Supplier::get).toArray(IomObject[]::new)); // Because the arcs are stroked differently, thin overlaps occur - AssertionHelper.assertEventMessagesAreEqual(logger.getErrs(), - "IsInsideAreaByCode found an invalid overlap between code 'code_10' and 'code_30'. The offending geometry has it's centroid at point: POINT (43.20713072195317 42.11642202220144)", - "Set Constraint TestSuite.FunctionTestTopic.TestClass.insideAreaConstraint is not true."); + Assert.equals(2, logger.getErrs().size()); + + AssertionHelper.assertLogEventsMessages(logger.getErrs(), "^IsInsideAreaByCode found an invalid overlap between code 'code_10' and 'code_30'. The offending geometry has it's centroid at point: POINT \\(43.2\\d+ 42.1\\d+\\)$", 1); + AssertionHelper.assertLogEventsMessages(logger.getErrs(), "^Set Constraint TestSuite.FunctionTestTopic.TestClass.insideAreaConstraint is not true.$", 1); } }