Skip to content

Commit

Permalink
Extended existing test slightly for xsd errors (#294)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
BertScholten authored Aug 29, 2024
1 parent 1270d47 commit 7a9a014
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ void testGMLGeometryNotPermitted() throws IOException {
@Test
void testGMLMultipleErrors() throws IOException, AeriusException {
final List<String> 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.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</imaer:geometry>
<imaer:vehicles>
<imaer:CustomVehicle>
<imaer:vehiclesPerTimeUnit>3</imaer:vehiclesPerTimeUnit>
<imaer:vehiclesPerTimeUnit>None</imaer:vehiclesPerTimeUnit>
<imaer:timeUnit>None</imaer:timeUnit>
<imaer:description>None</imaer:description>
</imaer:CustomVehicle>
Expand Down

0 comments on commit 7a9a014

Please sign in to comment.