From 7a9a01484a1e443e4bc97e78c323d71a07d7d29d Mon Sep 17 00:00:00 2001 From: Bert Scholten Date: Thu, 29 Aug 2024 15:00:30 +0200 Subject: [PATCH] Extended existing test slightly for xsd errors (#294) For future changes, where we might want to filter out the first one, or group based on location. It's also the original test case. --- .../java/nl/overheid/aerius/gml/GMLValidateErrorsTest.java | 3 +++ .../gml/latest/validate/errors/fout_multiple_errors.gml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/source/imaer-gml/src/test/java/nl/overheid/aerius/gml/GMLValidateErrorsTest.java b/source/imaer-gml/src/test/java/nl/overheid/aerius/gml/GMLValidateErrorsTest.java index ec3b1d1f..161e5bfd 100644 --- a/source/imaer-gml/src/test/java/nl/overheid/aerius/gml/GMLValidateErrorsTest.java +++ b/source/imaer-gml/src/test/java/nl/overheid/aerius/gml/GMLValidateErrorsTest.java @@ -93,6 +93,9 @@ void testGMLGeometryNotPermitted() throws IOException { @Test void testGMLMultipleErrors() throws IOException, AeriusException { final List expectedErrors = List.of( + "None", + "cvc-datatype-valid.1.2.1: 'None' is not a valid value for 'double'.", + "cvc-type.3.1.3: The value 'None' of element 'imaer:vehiclesPerTimeUnit' is not valid.", "cvc-enumeration-valid: Value 'None' is not facet-valid with respect to enumeration '[HOUR, DAY, MONTH, YEAR]'. It must be a value from the enumeration.", "cvc-type.3.1.3: The value 'None' of element 'imaer:timeUnit' is not valid.", "cvc-complex-type.2.4.b: The content of element 'imaer:CustomVehicle' is not complete. One of '{\"http://imaer.aerius.nl/5.1\":emission}' is expected.", diff --git a/source/imaer-gml/src/test/resources/gml/latest/validate/errors/fout_multiple_errors.gml b/source/imaer-gml/src/test/resources/gml/latest/validate/errors/fout_multiple_errors.gml index 6ff74dd5..ae82aa11 100644 --- a/source/imaer-gml/src/test/resources/gml/latest/validate/errors/fout_multiple_errors.gml +++ b/source/imaer-gml/src/test/resources/gml/latest/validate/errors/fout_multiple_errors.gml @@ -30,7 +30,7 @@ - 3 + None None None