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

slachiewicz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-ejb-plugin.git


The following commit(s) were added to refs/heads/master by this push:
     new 8ab7bae  JUnit Jupiter best practices (#185)
8ab7bae is described below

commit 8ab7bae16532e9c5b1863e90a4e312cab7afab64
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Sun Nov 9 22:38:42 2025 +0100

    JUnit Jupiter best practices (#185)
    
    Co-authored-by: Moderne <[email protected]>
---
 .../maven/plugins/ejb/IncludesExcludesTest.java    | 27 +++++++++++-----------
 1 file changed, 14 insertions(+), 13 deletions(-)

diff --git 
a/src/test/java/org/apache/maven/plugins/ejb/IncludesExcludesTest.java 
b/src/test/java/org/apache/maven/plugins/ejb/IncludesExcludesTest.java
index 1be23c2..1930c0c 100644
--- a/src/test/java/org/apache/maven/plugins/ejb/IncludesExcludesTest.java
+++ b/src/test/java/org/apache/maven/plugins/ejb/IncludesExcludesTest.java
@@ -21,9 +21,10 @@ package org.apache.maven.plugins.ejb;
 import java.util.Arrays;
 import java.util.Collections;
 
-import org.junit.Assert;
 import org.junit.Test;
 
+import static org.junit.Assert.assertArrayEquals;
+
 public class IncludesExcludesTest {
 
     @Test
@@ -32,8 +33,8 @@ public class IncludesExcludesTest {
                 Collections.<String>emptyList(), 
Collections.<String>emptyList(),
                 Collections.<String>emptyList(), 
Collections.<String>emptyList());
 
-        Assert.assertArrayEquals(ie.resultingIncludes(), new String[0]);
-        Assert.assertArrayEquals(ie.resultingExcludes(), new String[0]);
+        assertArrayEquals(new String[0], ie.resultingIncludes());
+        assertArrayEquals(new String[0], ie.resultingExcludes());
     }
 
     @Test
@@ -44,8 +45,8 @@ public class IncludesExcludesTest {
                 Collections.<String>emptyList(),
                 Collections.<String>emptyList());
 
-        Assert.assertArrayEquals(ie.resultingIncludes(), new String[0]);
-        Assert.assertArrayEquals(ie.resultingExcludes(), new String[0]);
+        assertArrayEquals(new String[0], ie.resultingIncludes());
+        assertArrayEquals(new String[0], ie.resultingExcludes());
     }
 
     @Test
@@ -56,8 +57,8 @@ public class IncludesExcludesTest {
                 Collections.<String>emptyList(),
                 Collections.<String>emptyList());
 
-        Assert.assertArrayEquals(ie.resultingIncludes(), new String[0]);
-        Assert.assertArrayEquals(ie.resultingExcludes(), new String[0]);
+        assertArrayEquals(new String[0], ie.resultingIncludes());
+        assertArrayEquals(new String[0], ie.resultingExcludes());
     }
 
     @Test
@@ -65,8 +66,8 @@ public class IncludesExcludesTest {
         IncludesExcludes ie =
                 new IncludesExcludes(null, null, 
Collections.<String>emptyList(), Arrays.asList("**/package.html"));
 
-        Assert.assertArrayEquals(ie.resultingIncludes(), new String[0]);
-        Assert.assertArrayEquals(ie.resultingExcludes(), new String[] 
{"**/package.html"});
+        assertArrayEquals(new String[0], ie.resultingIncludes());
+        assertArrayEquals(new String[] {"**/package.html"}, 
ie.resultingExcludes());
     }
 
     @Test
@@ -74,8 +75,8 @@ public class IncludesExcludesTest {
         IncludesExcludes ie =
                 new IncludesExcludes(null, null, 
Arrays.asList("**/package.html"), Collections.<String>emptyList());
 
-        Assert.assertArrayEquals(ie.resultingIncludes(), new String[] 
{"**/package.html"});
-        Assert.assertArrayEquals(ie.resultingExcludes(), new String[0]);
+        assertArrayEquals(new String[] {"**/package.html"}, 
ie.resultingIncludes());
+        assertArrayEquals(new String[0], ie.resultingExcludes());
     }
 
     @Test
@@ -84,7 +85,7 @@ public class IncludesExcludesTest {
                 Arrays.asList("**/package.html"), null,
                 Arrays.asList("**/site.html"), null);
 
-        Assert.assertArrayEquals(ie.resultingIncludes(), new String[] 
{"**/package.html"});
+        assertArrayEquals(new String[] {"**/package.html"}, 
ie.resultingIncludes());
     }
 
     @Test
@@ -93,6 +94,6 @@ public class IncludesExcludesTest {
                 null, Arrays.asList("**/package.html"),
                 null, Arrays.asList("**/site.html"));
 
-        Assert.assertArrayEquals(ie.resultingExcludes(), new String[] 
{"**/package.html"});
+        assertArrayEquals(new String[] {"**/package.html"}, 
ie.resultingExcludes());
     }
 }

Reply via email to