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 rc...@apache.org on 2019/12/09 03:09:32 UTC

[james-project] 07/42: [Refactoring] Move PropertyBuilderTest to JUnit 5

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 644c75e51ce3984e16397ef0266cf7f42af4b66a
Author: Rene Cordier <rc...@linagora.com>
AuthorDate: Thu Dec 5 15:55:14 2019 +0700

    [Refactoring] Move PropertyBuilderTest to JUnit 5
---
 .../mailbox/store/mail/model/impl/PropertyBuilderTest.java     | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/mailbox/store/src/test/java/org/apache/james/mailbox/store/mail/model/impl/PropertyBuilderTest.java b/mailbox/store/src/test/java/org/apache/james/mailbox/store/mail/model/impl/PropertyBuilderTest.java
index 320faf6..1317441 100644
--- a/mailbox/store/src/test/java/org/apache/james/mailbox/store/mail/model/impl/PropertyBuilderTest.java
+++ b/mailbox/store/src/test/java/org/apache/james/mailbox/store/mail/model/impl/PropertyBuilderTest.java
@@ -22,17 +22,17 @@ package org.apache.james.mailbox.store.mail.model.impl;
 import static org.assertj.core.api.Assertions.assertThat;
 
 import org.apache.james.mailbox.store.mail.model.Property;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
 
-public class PropertyBuilderTest {
+class PropertyBuilderTest {
 
     @Test
-    public void emptyPropertyBuilderShouldCreateEmptyProperties() {
+    void emptyPropertyBuilderShouldCreateEmptyProperties() {
         assertThat(new PropertyBuilder().toProperties()).isEmpty();
     }
 
     @Test
-    public void setHasAttachmentShouldAddFalseWhenCalledWithFalse() {
+    void setHasAttachmentShouldAddFalseWhenCalledWithFalse() {
         PropertyBuilder propertyBuilder = new PropertyBuilder();
         propertyBuilder.setHasAttachment(false);
         assertThat(propertyBuilder.toProperties())
@@ -40,7 +40,7 @@ public class PropertyBuilderTest {
     }
 
     @Test
-    public void setHasAttachmentShouldAddTrueWhenCalledWithTrue() {
+    void setHasAttachmentShouldAddTrueWhenCalledWithTrue() {
         PropertyBuilder propertyBuilder = new PropertyBuilder();
         propertyBuilder.setHasAttachment(true);
         assertThat(propertyBuilder.toProperties())


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