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 836f11e73 Migrate DOMFeatureTest to JUnit 5/AssertJ and remove old 
junit deps
836f11e73 is described below

commit 836f11e73ccd60fdafc09468f354f1ed575fe907
Author: Copilot <[email protected]>
AuthorDate: Mon May 25 09:35:28 2026 +0100

    Migrate DOMFeatureTest to JUnit 5/AssertJ and remove old junit deps
    
    Co-authored-by: Andreas Veithen-Knowles <[email protected]>
---
 implementations/axiom-dom/pom.xml                           | 13 ++++---------
 .../apache/axiom/om/impl/dom/factory/DOMFeatureTest.java    |  9 ++++++---
 implementations/axiom-impl/pom.xml                          | 10 ----------
 3 files changed, 10 insertions(+), 22 deletions(-)

diff --git a/implementations/axiom-dom/pom.xml 
b/implementations/axiom-dom/pom.xml
index 6e6a5f2cd..6ba63f53f 100644
--- a/implementations/axiom-dom/pom.xml
+++ b/implementations/axiom-dom/pom.xml
@@ -59,18 +59,13 @@
             <artifactId>woodstox-core</artifactId>
         </dependency>
         <dependency>
-            <groupId>junit</groupId>
-            <artifactId>junit</artifactId>
-            <scope>test</scope>
-        </dependency>
-        <dependency>
-            <groupId>org.junit.vintage</groupId>
-            <artifactId>junit-vintage-engine</artifactId>
+            <groupId>org.junit.jupiter</groupId>
+            <artifactId>junit-jupiter</artifactId>
             <scope>test</scope>
         </dependency>
         <dependency>
-            <groupId>org.junit.jupiter</groupId>
-            <artifactId>junit-jupiter</artifactId>
+            <groupId>org.assertj</groupId>
+            <artifactId>assertj-core</artifactId>
             <scope>test</scope>
         </dependency>
         <dependency>
diff --git 
a/implementations/axiom-dom/src/test/java/org/apache/axiom/om/impl/dom/factory/DOMFeatureTest.java
 
b/implementations/axiom-dom/src/test/java/org/apache/axiom/om/impl/dom/factory/DOMFeatureTest.java
index 85ce419a9..e5869f98c 100644
--- 
a/implementations/axiom-dom/src/test/java/org/apache/axiom/om/impl/dom/factory/DOMFeatureTest.java
+++ 
b/implementations/axiom-dom/src/test/java/org/apache/axiom/om/impl/dom/factory/DOMFeatureTest.java
@@ -18,14 +18,17 @@
  */
 package org.apache.axiom.om.impl.dom.factory;
 
-import junit.framework.TestCase;
+import static org.assertj.core.api.Assertions.assertThat;
+
 import org.apache.axiom.om.OMAbstractFactory;
 import org.apache.axiom.om.OMMetaFactory;
 import org.apache.axiom.om.dom.DOMMetaFactory;
+import org.junit.jupiter.api.Test;
 
-public class DOMFeatureTest extends TestCase {
+public class DOMFeatureTest {
+    @Test
     public void test() {
         OMMetaFactory metaFactory = 
OMAbstractFactory.getMetaFactory(OMAbstractFactory.FEATURE_DOM);
-        assertTrue(metaFactory instanceof DOMMetaFactory);
+        assertThat(metaFactory).isInstanceOf(DOMMetaFactory.class);
     }
 }
diff --git a/implementations/axiom-impl/pom.xml 
b/implementations/axiom-impl/pom.xml
index 4c8b7f0b4..cc956d301 100644
--- a/implementations/axiom-impl/pom.xml
+++ b/implementations/axiom-impl/pom.xml
@@ -57,16 +57,6 @@
             <groupId>commons-logging</groupId>
             <artifactId>commons-logging</artifactId>
         </dependency>
-        <dependency>
-            <groupId>junit</groupId>
-            <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.junit.jupiter</groupId>
             <artifactId>junit-jupiter</artifactId>

Reply via email to