Skip to content

Commit 853b7c7

Browse files
authored
tests: java tests run agsinst CDX1.5 (#356)
2 parents cf6b1bc + 7b7ea13 commit 853b7c7

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

tools/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
<lib.commons.lang3.version>3.6</lib.commons.lang3.version>
5656
<lib.commons.text.version>1.2</lib.commons.text.version>
5757
<lib.unirest.version>1.4.9</lib.unirest.version>
58-
<lib.cyclonedx.core.java.version>7.2.0</lib.cyclonedx.core.java.version>
58+
<lib.cyclonedx.core.java.version>8.0.3</lib.cyclonedx.core.java.version>
5959
</properties>
6060

6161
<scm>

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

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

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ Collection<DynamicTest> dynamicTestsWithCollection() throws Exception {
4040
schemaVersion = CycloneDxSchema.Version.VERSION_13;
4141
} else if (file.endsWith("-1.4.json")) {
4242
schemaVersion = CycloneDxSchema.Version.VERSION_14;
43+
} else if (file.endsWith("-1.5.json")) {
44+
schemaVersion = CycloneDxSchema.Version.VERSION_15;
4345
} else {
4446
schemaVersion = null;
4547
}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ Collection<DynamicTest> dynamicTestsWithCollection() throws Exception {
4444
schemaVersion = CycloneDxSchema.Version.VERSION_13;
4545
} else if (file.endsWith("-1.4.xml")) {
4646
schemaVersion = CycloneDxSchema.Version.VERSION_14;
47+
} else if (file.endsWith("-1.5.xml")) {
48+
schemaVersion = CycloneDxSchema.Version.VERSION_15;
4749
} else {
4850
schemaVersion = null;
4951
}

0 commit comments

Comments
 (0)