This is an automated email from the ASF dual-hosted git repository.

veithen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ws-axiom.git


The following commit(s) were added to refs/heads/master by this push:
     new afe297c15 Migrate core-streams tests from JUnit 4 to JUnit 5 and from 
Google Truth to AssertJ
afe297c15 is described below

commit afe297c154d950ac778e216cf74d1cf1f2caf25d
Author: Andreas Veithen-Knowles <[email protected]>
AuthorDate: Sun Mar 8 12:17:29 2026 +0000

    Migrate core-streams tests from JUnit 4 to JUnit 5 and from Google Truth to 
AssertJ
---
 components/core-streams/pom.xml                                      | 5 -----
 .../org/apache/axiom/core/stream/NamespaceRepairingFilterTest.java   | 2 +-
 .../java/org/apache/axiom/core/stream/dom/input/DOMReaderTest.java   | 4 ++--
 .../java/org/apache/axiom/core/stream/serializer/SerializerTest.java | 4 ++--
 .../core/stream/serializer/writer/OutputStreamXmlWriterTest.java     | 4 ++--
 .../org/apache/axiom/core/stream/stax/pull/output/StAXPivotTest.java | 4 ++--
 6 files changed, 9 insertions(+), 14 deletions(-)

diff --git a/components/core-streams/pom.xml b/components/core-streams/pom.xml
index f51981389..954b7b926 100644
--- a/components/core-streams/pom.xml
+++ b/components/core-streams/pom.xml
@@ -50,11 +50,6 @@
             <artifactId>junit</artifactId>
             <scope>test</scope>
         </dependency>
-        <dependency>
-            <groupId>org.junit.vintage</groupId>
-            <artifactId>junit-vintage-engine</artifactId>
-            <scope>test</scope>
-        </dependency>
         <dependency>
             <groupId>org.assertj</groupId>
             <artifactId>assertj-core</artifactId>
diff --git 
a/components/core-streams/src/test/java/org/apache/axiom/core/stream/NamespaceRepairingFilterTest.java
 
b/components/core-streams/src/test/java/org/apache/axiom/core/stream/NamespaceRepairingFilterTest.java
index bca64fd99..0eeb71519 100644
--- 
a/components/core-streams/src/test/java/org/apache/axiom/core/stream/NamespaceRepairingFilterTest.java
+++ 
b/components/core-streams/src/test/java/org/apache/axiom/core/stream/NamespaceRepairingFilterTest.java
@@ -20,7 +20,7 @@ package org.apache.axiom.core.stream;
 
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
 
 public class NamespaceRepairingFilterTest {
     @Test
diff --git 
a/components/core-streams/src/test/java/org/apache/axiom/core/stream/dom/input/DOMReaderTest.java
 
b/components/core-streams/src/test/java/org/apache/axiom/core/stream/dom/input/DOMReaderTest.java
index e6ca582f6..0601f5c01 100644
--- 
a/components/core-streams/src/test/java/org/apache/axiom/core/stream/dom/input/DOMReaderTest.java
+++ 
b/components/core-streams/src/test/java/org/apache/axiom/core/stream/dom/input/DOMReaderTest.java
@@ -18,14 +18,14 @@
  */
 package org.apache.axiom.core.stream.dom.input;
 
-import static com.google.common.truth.Truth.assertThat;
+import static org.assertj.core.api.Assertions.assertThat;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.verify;
 import static org.mockito.Mockito.verifyNoMoreInteractions;
 
 import org.apache.axiom.core.stream.XmlHandler;
 import org.apache.axiom.ts.jaxp.dom.DOMImplementation;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
 import org.w3c.dom.Document;
 import org.w3c.dom.Element;
 
diff --git 
a/components/core-streams/src/test/java/org/apache/axiom/core/stream/serializer/SerializerTest.java
 
b/components/core-streams/src/test/java/org/apache/axiom/core/stream/serializer/SerializerTest.java
index 0bc39207f..830a24fe4 100644
--- 
a/components/core-streams/src/test/java/org/apache/axiom/core/stream/serializer/SerializerTest.java
+++ 
b/components/core-streams/src/test/java/org/apache/axiom/core/stream/serializer/SerializerTest.java
@@ -18,7 +18,7 @@
  */
 package org.apache.axiom.core.stream.serializer;
 
-import static com.google.common.truth.Truth.assertThat;
+import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 
 import java.io.ByteArrayOutputStream;
@@ -28,7 +28,7 @@ import java.nio.charset.StandardCharsets;
 import org.apache.axiom.core.stream.StreamException;
 import org.apache.commons.io.output.NullOutputStream;
 import org.apache.commons.io.output.NullWriter;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
 
 public class SerializerTest {
     @Test
diff --git 
a/components/core-streams/src/test/java/org/apache/axiom/core/stream/serializer/writer/OutputStreamXmlWriterTest.java
 
b/components/core-streams/src/test/java/org/apache/axiom/core/stream/serializer/writer/OutputStreamXmlWriterTest.java
index 7ad7dce0a..36746505b 100644
--- 
a/components/core-streams/src/test/java/org/apache/axiom/core/stream/serializer/writer/OutputStreamXmlWriterTest.java
+++ 
b/components/core-streams/src/test/java/org/apache/axiom/core/stream/serializer/writer/OutputStreamXmlWriterTest.java
@@ -18,12 +18,12 @@
  */
 package org.apache.axiom.core.stream.serializer.writer;
 
-import static com.google.common.truth.Truth.assertThat;
+import static org.assertj.core.api.Assertions.assertThat;
 
 import java.io.ByteArrayOutputStream;
 import java.nio.charset.StandardCharsets;
 
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
 
 public class OutputStreamXmlWriterTest {
     @Test
diff --git 
a/components/core-streams/src/test/java/org/apache/axiom/core/stream/stax/pull/output/StAXPivotTest.java
 
b/components/core-streams/src/test/java/org/apache/axiom/core/stream/stax/pull/output/StAXPivotTest.java
index 707d6aee1..c16d11a92 100644
--- 
a/components/core-streams/src/test/java/org/apache/axiom/core/stream/stax/pull/output/StAXPivotTest.java
+++ 
b/components/core-streams/src/test/java/org/apache/axiom/core/stream/stax/pull/output/StAXPivotTest.java
@@ -18,7 +18,7 @@
  */
 package org.apache.axiom.core.stream.stax.pull.output;
 
-import static com.google.common.truth.Truth.assertThat;
+import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 
 import javax.xml.stream.XMLStreamConstants;
@@ -27,7 +27,7 @@ import javax.xml.stream.XMLStreamReader;
 
 import org.apache.axiom.core.stream.StreamException;
 import org.apache.axiom.core.stream.XmlHandler;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
 
 public class StAXPivotTest {
     private static StAXPivot createStAXPivot(Action... actions) throws 
StreamException {

Reply via email to