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 fa21c8056 Migrate wss4j-tests from JUnit 4/Truth to JUnit 5/AssertJ
fa21c8056 is described below

commit fa21c8056c77553791c9fd55a4f6f153adaa9de4
Author: Andreas Veithen-Knowles <[email protected]>
AuthorDate: Sun Mar 8 10:01:33 2026 +0000

    Migrate wss4j-tests from JUnit 4/Truth to JUnit 5/AssertJ
---
 systests/wss4j-tests/pom.xml                      | 13 ++++---------
 systests/wss4j-tests/src/test/java/WSS4JTest.java |  8 ++++----
 2 files changed, 8 insertions(+), 13 deletions(-)

diff --git a/systests/wss4j-tests/pom.xml b/systests/wss4j-tests/pom.xml
index 6fdaee2d8..97083246b 100644
--- a/systests/wss4j-tests/pom.xml
+++ b/systests/wss4j-tests/pom.xml
@@ -50,18 +50,13 @@
             <scope>test</scope>
         </dependency>
         <dependency>
-            <groupId>junit</groupId>
-            <artifactId>junit</artifactId>
+            <groupId>org.junit.jupiter</groupId>
+            <artifactId>junit-jupiter</artifactId>
             <scope>test</scope>
         </dependency>
         <dependency>
-            <groupId>org.junit.vintage</groupId>
-            <artifactId>junit-vintage-engine</artifactId>
-            <scope>test</scope>
-        </dependency>
-        <dependency>
-            <groupId>com.google.truth</groupId>
-            <artifactId>truth</artifactId>
+            <groupId>org.assertj</groupId>
+            <artifactId>assertj-core</artifactId>
             <scope>test</scope>
         </dependency>
     </dependencies>
diff --git a/systests/wss4j-tests/src/test/java/WSS4JTest.java 
b/systests/wss4j-tests/src/test/java/WSS4JTest.java
index e8e63f75c..f27cdf525 100644
--- a/systests/wss4j-tests/src/test/java/WSS4JTest.java
+++ b/systests/wss4j-tests/src/test/java/WSS4JTest.java
@@ -16,7 +16,7 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-import static com.google.common.truth.Truth.assertThat;
+import static org.assertj.core.api.Assertions.assertThat;
 
 import java.util.Vector;
 
@@ -33,14 +33,14 @@ import 
org.apache.ws.security.components.crypto.CryptoFactory;
 import org.apache.ws.security.message.WSSecEncrypt;
 import org.apache.ws.security.message.WSSecHeader;
 import org.apache.ws.security.message.WSSecSignature;
-import org.junit.Before;
-import org.junit.Test;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
 import org.w3c.dom.Document;
 
 public class WSS4JTest {
     private Crypto crypto;
 
-    @Before
+    @BeforeEach
     public void setUp() throws WSSecurityException {
         crypto = CryptoFactory.getInstance();
     }

Reply via email to