Skip to content

Commit

Permalink
fix: JUnit 4 tests were not running as the junit-vintage-engine was n…
Browse files Browse the repository at this point in the history
…ot on the test classpath
  • Loading branch information
rholshausen committed Jan 17, 2023
1 parent 7935300 commit a8877b2
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ dependencies {
testImplementation 'ch.qos.logback:logback-core:1.4.4'
testImplementation 'net.bytebuddy:byte-buddy:1.12.7'
testImplementation 'com.github.tomakehurst:wiremock-jre8:2.34.0'
testImplementation 'org.junit.vintage:junit-vintage-engine:5.9.2'
}

// Align versions of all Kotlin components
Expand All @@ -74,7 +75,7 @@ testing {
// Configure the built-in test suite
test {
// Use JUnit Jupiter test framework
useJUnitJupiter('5.9.0')
useJUnitJupiter('5.9.2')
}
}
}
Expand Down
3 changes: 1 addition & 2 deletions consumer/junit/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ dependencies {
testImplementation 'ch.qos.logback:logback-core'
testImplementation 'ch.qos.logback:logback-classic'
testImplementation 'org.apache.commons:commons-collections4'

testImplementation 'org.apache.commons:commons-collections4'
testImplementation 'org.junit.vintage:junit-vintage-engine'
testImplementation 'com.fasterxml.jackson.core:jackson-databind:2.13.4.2'
testImplementation('io.rest-assured:rest-assured:5.2.0') {
exclude group: 'org.apache.groovy'
Expand Down
2 changes: 1 addition & 1 deletion consumer/junit5/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ group = 'au.com.dius.pact.consumer'

dependencies {
api project(":consumer")
api 'org.junit.jupiter:junit-jupiter-api:5.9.0'
api 'org.junit.jupiter:junit-jupiter-api:5.9.2'

implementation 'org.slf4j:slf4j-api'

Expand Down
1 change: 1 addition & 0 deletions provider/junit/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ dependencies {
testImplementation 'com.github.tomakehurst:wiremock-jre8'
testImplementation 'ch.qos.logback:logback-classic'
testImplementation 'org.apache.commons:commons-collections4'
testImplementation 'org.junit.vintage:junit-vintage-engine'

// Required for Java 9
testImplementation 'javax.xml.bind:jaxb-api:2.3.0'
Expand Down
2 changes: 1 addition & 1 deletion provider/junit5/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ dependencies {
api project(':core:support')
api project(':core:pactbroker')
api project(':core:model')
api 'org.junit.jupiter:junit-jupiter-api:5.9.0'
api 'org.junit.jupiter:junit-jupiter-api:5.9.2'

implementation 'org.slf4j:slf4j-api'
implementation('io.pact.plugin.driver:core:0.2.1') {
Expand Down

0 comments on commit a8877b2

Please sign in to comment.