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:15 UTC
[james-project] 16/20: JAMES-2543 Junit 4 -> 5 migration for
server/protocols/imap
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 c51bb1bb5a6c475b72d9196df70a2b7d5eb22ca4
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Thu Dec 31 09:07:23 2020 +0700
JAMES-2543 Junit 4 -> 5 migration for server/protocols/imap
---
.../org/apache/james/imapserver/netty/IMAPServerTest.java | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/server/protocols/protocols-imap4/src/test/java/org/apache/james/imapserver/netty/IMAPServerTest.java b/server/protocols/protocols-imap4/src/test/java/org/apache/james/imapserver/netty/IMAPServerTest.java
index 2a29157..888f9fa 100644
--- a/server/protocols/protocols-imap4/src/test/java/org/apache/james/imapserver/netty/IMAPServerTest.java
+++ b/server/protocols/protocols-imap4/src/test/java/org/apache/james/imapserver/netty/IMAPServerTest.java
@@ -27,18 +27,13 @@ import org.apache.commons.configuration2.BaseHierarchicalConfiguration;
import org.apache.commons.configuration2.HierarchicalConfiguration;
import org.apache.commons.configuration2.tree.ImmutableNode;
import org.apache.james.imap.api.ImapConfiguration;
-import org.junit.Rule;
-import org.junit.Test;
-import org.junit.rules.ExpectedException;
+import org.junit.jupiter.api.Test;
import com.google.common.collect.ImmutableSet;
public class IMAPServerTest {
- @Rule
- public ExpectedException expectedException = ExpectedException.none();
-
@Test
- public void getImapConfigurationShouldReturnDefaultValuesWhenEmpty() throws Exception {
+ public void getImapConfigurationShouldReturnDefaultValuesWhenEmpty() {
ImapConfiguration imapConfiguration = IMAPServer.getImapConfiguration(new BaseHierarchicalConfiguration());
ImapConfiguration expectImapConfiguration = ImapConfiguration.builder()
@@ -52,7 +47,7 @@ public class IMAPServerTest {
}
@Test
- public void getImapConfigurationShouldReturnSetValue() throws Exception {
+ public void getImapConfigurationShouldReturnSetValue() {
HierarchicalConfiguration<ImmutableNode> configurationBuilder = new BaseHierarchicalConfiguration();
configurationBuilder.addProperty("enableIdle", "false");
configurationBuilder.addProperty("idleTimeInterval", "1");
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org