Skip to content

Commit b57f440

Browse files
authored
Remove JUnit4 dependency (#706)
1 parent f633014 commit b57f440

File tree

4 files changed

+20
-399
lines changed

4 files changed

+20
-399
lines changed

pom.xml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,8 @@ alternative support for serializing POJOs as XML and deserializing XML as pojos.
8686
</exclusions>
8787
</dependency>
8888

89-
<!-- 20-Apr-2024, tatu: JUnit4 no longer from jackson-base, so: -->
90-
<dependency>
91-
<groupId>junit</groupId>
92-
<artifactId>junit</artifactId>
93-
<scope>test</scope>
94-
</dependency>
95-
89+
<!-- Test dependencies -->
90+
9691
<!-- 11-Jan-2025, joohyukkim: For JSTEP-10, migrate to JUnit5 -->
9792
<dependency>
9893
<groupId>org.junit.jupiter</groupId>

src/test/java/module-info.java

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,22 @@
1010
requires tools.jackson.core;
1111
requires tools.jackson.databind;
1212

13-
// Then test dependencies
14-
requires junit;
13+
/// // Actual Test dependencies
14+
15+
// Shared Jackson test functionality
16+
17+
// 15-Jan-2025, tatu: missing module-info for `tools.jackson.core` can't yet add
18+
// (but will be included in Class path just not Module path)
19+
//
20+
//requires tools.jackson.core.testutil;
21+
22+
// Test frameworks, libraries
23+
1524
requires org.junit.jupiter.api;
1625
requires org.junit.jupiter.params;
1726

27+
// Other Test dependencies
28+
1829
requires com.ctc.wstx; // woodstox
1930
requires jakarta.xml.bind; // Jakarta-binding
2031
requires tools.jackson.module.jakarta.xmlbind;

0 commit comments

Comments
 (0)