You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by rc...@apache.org on 2021/01/12 11:02:16 UTC
[james-project] 17/20: JAMES-2543 Junit 4 -> 5 migration for
server/protocols/pop3
This is an automated email from the ASF dual-hosted git repository.
rcordier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git
commit 192ff4e0b559f4e1b43efe7986e7a1fd0385305d
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Thu Dec 31 09:09:47 2020 +0700
JAMES-2543 Junit 4 -> 5 migration for server/protocols/pop3
---
.../org/apache/james/pop3server/POP3ServerTest.java | 18 +++++++-----------
1 file changed, 7 insertions(+), 11 deletions(-)
diff --git a/server/protocols/protocols-pop3/src/test/java/org/apache/james/pop3server/POP3ServerTest.java b/server/protocols/protocols-pop3/src/test/java/org/apache/james/pop3server/POP3ServerTest.java
index bc3b7f3..980f290 100644
--- a/server/protocols/protocols-pop3/src/test/java/org/apache/james/pop3server/POP3ServerTest.java
+++ b/server/protocols/protocols-pop3/src/test/java/org/apache/james/pop3server/POP3ServerTest.java
@@ -50,10 +50,10 @@ import org.apache.james.user.api.UsersRepository;
import org.apache.james.user.api.UsersRepositoryException;
import org.apache.james.user.memory.MemoryUsersRepository;
import org.jboss.netty.util.HashedWheelTimer;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Ignore;
-import org.junit.Test;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Disabled;
+import org.junit.jupiter.api.Test;
import com.google.inject.name.Names;
@@ -73,7 +73,7 @@ public class POP3ServerTest {
private POP3Server pop3Server;
private HashedWheelTimer hashedWheelTimer;
- @Before
+ @BeforeEach
public void setUp() throws Exception {
hashedWheelTimer = new HashedWheelTimer();
setUpServiceManager();
@@ -81,7 +81,7 @@ public class POP3ServerTest {
pop3Configuration = new POP3TestConfiguration();
}
- @After
+ @AfterEach
public void tearDown() throws Exception {
try {
if (pop3Client != null) {
@@ -422,12 +422,8 @@ public class POP3ServerTest {
}
- /**
- * Test for JAMES-1202 - This was failing before as the more then one connection to the same
- * mailbox was not handled the right way
- */
@Test
- @Ignore
+ @Disabled("Test for JAMES-1202 - This was failing before as the more then one connection to the same mailbox was not handled the right way")
public void testStatUidlListTwoConnections() throws Exception {
finishSetUp(pop3Configuration);
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org