Skip to content

Commit 3f62635

Browse files
Ban JUnit 4 imports
1 parent 21bdbba commit 3f62635

File tree

5 files changed

+2
-43
lines changed

5 files changed

+2
-43
lines changed

core/pom.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -446,11 +446,6 @@ THE SOFTWARE.
446446
<artifactId>junit-jupiter</artifactId>
447447
<scope>test</scope>
448448
</dependency>
449-
<dependency>
450-
<groupId>org.junit.vintage</groupId>
451-
<artifactId>junit-vintage-engine</artifactId>
452-
<scope>test</scope>
453-
</dependency>
454449
<dependency>
455450
<groupId>org.mockito</groupId>
456451
<artifactId>mockito-junit-jupiter</artifactId>

core/src/test/java/jenkins/Junit4TestsRanTest.java

Lines changed: 0 additions & 13 deletions
This file was deleted.

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ THE SOFTWARE.
9696
<antlr.version>4.13.2</antlr.version>
9797
<bridge-method-injector.version>1.32</bridge-method-injector.version>
9898
<spotless.check.skip>false</spotless.check.skip>
99+
<ban-junit4-imports.skip>false</ban-junit4-imports.skip>
99100
<!-- Make sure to keep the jetty-ee9-maven-plugin version in war/pom.xml in sync with the Jetty release in Winstone: -->
100101
<winstone.version>8.13</winstone.version>
101102
<node.version>24.6.0</node.version>

test/pom.xml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -282,20 +282,9 @@ THE SOFTWARE.
282282
<artifactId>junit-jupiter</artifactId>
283283
<scope>test</scope>
284284
</dependency>
285-
<dependency>
286-
<groupId>org.junit.vintage</groupId>
287-
<artifactId>junit-vintage-engine</artifactId>
288-
<scope>test</scope>
289-
<exclusions>
290-
<exclusion>
291-
<groupId>org.hamcrest</groupId>
292-
<artifactId>hamcrest-core</artifactId>
293-
</exclusion>
294-
</exclusions>
295-
</dependency>
296285
<dependency>
297286
<groupId>org.mockito</groupId>
298-
<artifactId>mockito-core</artifactId>
287+
<artifactId>mockito-junit-jupiter</artifactId>
299288
<scope>test</scope>
300289
</dependency>
301290
</dependencies>

test/src/test/java/jenkins/Junit4TestsRanTest.java

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)