Skip to content

Commit a0e6324

Browse files
ThomasVitaleglefloch
authored andcommitted
Update tests for default spec version
Fixes gh-361 Signed-off-by: Thomas Vitale <[email protected]>
1 parent 5efaf99 commit a0e6324

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/test/groovy/org/cyclonedx/gradle/PluginConfigurationSpec.groovy

+4-4
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ class PluginConfigurationSpec extends Specification {
249249
assert log4jCore.getBomRef() == 'pkg:maven/org.apache.logging.log4j/[email protected]?type=jar'
250250
}
251251

252-
def "multi-module should output boms in build/reports with version 1.4"() {
252+
def "multi-module should output boms in build/reports with default version"() {
253253
given:
254254
File testDir = TestUtils.duplicate("multi-module")
255255

@@ -266,10 +266,10 @@ class PluginConfigurationSpec extends Specification {
266266
assert reportDir.exists()
267267
reportDir.listFiles().length == 2
268268
File jsonBom = new File(reportDir, "bom.json")
269-
assert jsonBom.text.contains("\"specVersion\" : \"1.4\"")
269+
assert jsonBom.text.contains("\"specVersion\" : \"${CycloneDxUtils.DEFAULT_SCHEMA_VERSION.versionString}\"")
270270
}
271271

272-
def "multi-module with plugin in subproject should output boms in build/reports with version 1.4"() {
272+
def "multi-module with plugin in subproject should output boms in build/reports with default version"() {
273273
given:
274274
File testDir = TestUtils.duplicate("multi-module-subproject")
275275

@@ -286,7 +286,7 @@ class PluginConfigurationSpec extends Specification {
286286
assert reportDir.exists()
287287
reportDir.listFiles().length == 2
288288
File jsonBom = new File(reportDir, "bom.json")
289-
assert jsonBom.text.contains("\"specVersion\" : \"1.4\"")
289+
assert jsonBom.text.contains("\"specVersion\" : \"${CycloneDxUtils.DEFAULT_SCHEMA_VERSION.versionString}\"")
290290
}
291291

292292
def "kotlin-dsl-project should allow configuring all properties"() {

0 commit comments

Comments
 (0)