Skip to content

Commit 9afcf83

Browse files
committed
[SPARK-53712] Fix spark-operator to use JUnit 5 instead of JUnit 4
1 parent a0929a4 commit 9afcf83

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

spark-operator/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ dependencies {
6565
exclude group: "org.apache.logging.log4j"
6666
exclude group: "org.slf4j"
6767
}
68-
testImplementation(libs.mockwebserver)
68+
testImplementation(libs.mockwebserver) {
69+
exclude group: 'junit'
70+
}
6971
testImplementation platform(libs.junit.bom)
7072
testImplementation(libs.junit.jupiter)
7173
testRuntimeOnly(libs.junit.platform.launcher)

spark-operator/src/test/java/org/apache/spark/k8s/operator/metrics/MetricsSystemFactoryTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
package org.apache.spark.k8s.operator.metrics;
2121

2222
import static org.apache.spark.k8s.operator.metrics.MetricsSystemFactory.parseSinkProperties;
23-
import static org.junit.Assert.assertThrows;
23+
import static org.junit.jupiter.api.Assertions.assertThrows;
2424

2525
import java.util.Properties;
2626

spark-operator/src/test/java/org/apache/spark/k8s/operator/metrics/source/KubernetesMetricsInterceptorTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
package org.apache.spark.k8s.operator.metrics.source;
2121

22-
import static org.junit.Assert.assertThrows;
22+
import static org.junit.jupiter.api.Assertions.assertThrows;
2323

2424
import java.util.Arrays;
2525
import java.util.Collections;

0 commit comments

Comments
 (0)