Skip to content

Commit b6453dd

Browse files
authored
tests: Adding 1.6 valid and invalid test files in the Java tests (#482)
2 parents 7c630cc + 22e0861 commit b6453dd

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

tools/src/test/java/org/cyclonedx/schema/BaseSchemaVerificationTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ List<String> getAllResources() throws Exception {
2929
files.addAll(getResources("1.3/"));
3030
files.addAll(getResources("1.4/"));
3131
files.addAll(getResources("1.5/"));
32+
files.addAll(getResources("1.6/"));
3233
return files;
3334
}
3435

tools/src/test/java/org/cyclonedx/schema/JsonSchemaVerificationTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ Collection<DynamicTest> dynamicTestsWithCollection() throws Exception {
4343
schemaVersion = Version.VERSION_14;
4444
} else if (file.endsWith("-1.5.json")) {
4545
schemaVersion = Version.VERSION_15;
46+
} else if (file.endsWith("-1.6.json")) {
47+
schemaVersion = Version.VERSION_16;
4648
} else {
4749
schemaVersion = null;
4850
}

tools/src/test/java/org/cyclonedx/schema/XmlSchemaVerificationTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ Collection<DynamicTest> dynamicTestsWithCollection() throws Exception {
5353
schemaVersion = Version.VERSION_14;
5454
} else if (file.endsWith("-1.5.xml")) {
5555
schemaVersion = Version.VERSION_15;
56+
} else if (file.endsWith("-1.6.xml")) {
57+
schemaVersion = Version.VERSION_16;
5658
} else {
5759
schemaVersion = null;
5860
}

0 commit comments

Comments
 (0)