Skip to content

Commit a7951a0

Browse files
committed
MLE-22591 Bumped junit to 5.13.4
1 parent 9a9faba commit a7951a0

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ gradle-local.properties
1717
snyk
1818
.vscode
1919
docker
20+
dep.txt

build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ subprojects {
2020
}
2121

2222
dependencies {
23+
// Without this, once using JUnit 5.12 or higher, Gradle will not find any tests and report an error of:
24+
// org.junit.platform.commons.JUnitException: TestEngine with ID 'junit-jupiter' failed to discover tests
25+
testRuntimeOnly "org.junit.platform:junit-platform-launcher:1.13.4"
26+
27+
testImplementation 'org.junit.jupiter:junit-jupiter:5.13.4'
28+
testImplementation "org.springframework:spring-test:${springVersion}"
29+
2330
// Forcing Spring to use logback instead of commons-logging
2431
testImplementation "ch.qos.logback:logback-classic:1.5.18"
2532
testImplementation 'org.slf4j:jcl-over-slf4j:2.0.17'

ml-app-deployer/build.gradle

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ dependencies {
2626
exclude module: "jackson-databind"
2727
}
2828

29-
// With 5.12.x, tests are somehow not found by Gradle.
30-
testImplementation 'org.junit.jupiter:junit-jupiter:5.11.2'
31-
testImplementation "org.springframework:spring-test:${springVersion}"
3229
testImplementation 'commons-io:commons-io:2.19.0'
3330
testImplementation 'xmlunit:xmlunit:1.6'
3431

ml-javaclient-util/build.gradle

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,7 @@ dependencies {
1111
implementation 'org.jdom:jdom2:2.0.6.1'
1212
implementation "com.fasterxml.jackson.core:jackson-databind:${jacksonVersion}"
1313

14-
// With 5.12.x, tests are somehow not found by Gradle.
15-
testImplementation 'org.junit.jupiter:junit-jupiter:5.11.2'
16-
testImplementation "org.springframework:spring-test:${springVersion}"
1714
testImplementation 'org.mockito:mockito-core:4.11.0'
18-
1915
// Used for testing loading modules from the classpath
2016
testImplementation files("lib/modules.jar")
2117
}

0 commit comments

Comments
 (0)