You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by bt...@apache.org on 2019/12/11 04:50:36 UTC

[james-project] 06/10: [Refactoring] Move SubjectsTest to JUnit 5

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

btellier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git

commit 08122d3f83776f4ab73717e9513c87810fcbe5ad
Author: Rene Cordier <rc...@linagora.com>
AuthorDate: Mon Dec 9 11:22:02 2019 +0700

    [Refactoring] Move SubjectsTest to JUnit 5
---
 .../james/mailbox/elasticsearch/json/SubjectsTest.java       | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/mailbox/elasticsearch/src/test/java/org/apache/james/mailbox/elasticsearch/json/SubjectsTest.java b/mailbox/elasticsearch/src/test/java/org/apache/james/mailbox/elasticsearch/json/SubjectsTest.java
index a4398d1..4c4b396 100644
--- a/mailbox/elasticsearch/src/test/java/org/apache/james/mailbox/elasticsearch/json/SubjectsTest.java
+++ b/mailbox/elasticsearch/src/test/java/org/apache/james/mailbox/elasticsearch/json/SubjectsTest.java
@@ -22,29 +22,29 @@ package org.apache.james.mailbox.elasticsearch.json;
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
 
 import com.google.common.base.Joiner;
 import com.google.common.collect.ImmutableSet;
 
-public class SubjectsTest {
+class SubjectsTest {
 
     @Test
-    public void fromShouldThrowWhenSetIsNull() {
+    void fromShouldThrowWhenSetIsNull() {
         assertThatThrownBy(() -> Subjects.from(null))
             .isInstanceOf(NullPointerException.class)
             .hasMessage("'subjects' is mandatory");
     }
 
     @Test
-    public void serializeShouldReturnEmptyWhenEmptySet() {
+    void serializeShouldReturnEmptyWhenEmptySet() {
         Subjects subjects = Subjects.from(ImmutableSet.of());
 
         assertThat(subjects.serialize()).isEmpty();
     }
 
     @Test
-    public void serializeShouldNotJoinWhenOneElement() {
+    void serializeShouldNotJoinWhenOneElement() {
         String expected = "subject";
         Subjects subjects = Subjects.from(ImmutableSet.of(expected));
 
@@ -52,7 +52,7 @@ public class SubjectsTest {
     }
 
     @Test
-    public void serializeShouldJoinWhenMultipleElements() {
+    void serializeShouldJoinWhenMultipleElements() {
         String subject = "subject";
         String subject2 = "subject2";
         String subject3 = "subject3";


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org