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

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-net.git


The following commit(s) were added to refs/heads/master by this push:
     new 1dca8d30 Declutter unit test code
1dca8d30 is described below

commit 1dca8d3036abaea2366c16200edfacccc460594c
Author: Gary D. Gregory <[email protected]>
AuthorDate: Sun Mar 16 16:01:23 2025 -0400

    Declutter unit test code
---
 src/test/java/org/apache/commons/net/imap/IMAPTest.java | 15 +++++----------
 1 file changed, 5 insertions(+), 10 deletions(-)

diff --git a/src/test/java/org/apache/commons/net/imap/IMAPTest.java 
b/src/test/java/org/apache/commons/net/imap/IMAPTest.java
index b8a5428f..a0293acb 100644
--- a/src/test/java/org/apache/commons/net/imap/IMAPTest.java
+++ b/src/test/java/org/apache/commons/net/imap/IMAPTest.java
@@ -17,7 +17,6 @@
 
 package org.apache.commons.net.imap;
 
-import static org.junit.jupiter.api.Assertions.assertAll;
 import static org.junit.jupiter.api.Assertions.assertEquals;
 import static org.junit.jupiter.api.Assertions.assertNull;
 import static org.junit.jupiter.api.Assertions.assertTrue;
@@ -47,10 +46,8 @@ public class IMAPTest {
     @MethodSource("mailboxNamesToBeQuoted")
     public void quoteMailboxName(final String input) {
         final String quotedMailboxName = IMAP.quoteMailboxName(input);
-        assertAll(
-                () -> assertTrue(quotedMailboxName.startsWith("\""), "quoted 
string should start with quotation mark"),
-                () -> assertTrue(quotedMailboxName.endsWith("\""), "quoted 
string should end with quotation mark")
-        );
+        assertTrue(quotedMailboxName.startsWith("\""), "quoted string should 
start with quotation mark");
+        assertTrue(quotedMailboxName.endsWith("\""), "quoted string should end 
with quotation mark");
     }
 
     @Test
@@ -81,11 +78,9 @@ public class IMAPTest {
     @Test
     public void testConstructDefaultIMAP() {
         final IMAP imap = new IMAP();
-        assertAll(
-                () -> assertEquals(IMAP.DEFAULT_PORT, imap.getDefaultPort()),
-                () -> assertEquals(IMAP.IMAPState.DISCONNECTED_STATE, 
imap.getState()),
-                () -> assertEquals(0, imap.getReplyStrings().length)
-        );
+        assertEquals(IMAP.DEFAULT_PORT, imap.getDefaultPort());
+        assertEquals(IMAP.IMAPState.DISCONNECTED_STATE, imap.getState());
+        assertEquals(0, imap.getReplyStrings().length);
     }
 
     @Test

Reply via email to