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/11/25 02:19:37 UTC
[james-project] 09/10: JAMES-2988 MessagePropertiesTest migration
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 6b2a542b8806fcb9f816b28b6e1d20822b69da2d
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Thu Nov 21 15:23:40 2019 +0700
JAMES-2988 MessagePropertiesTest migration to Junit 5
---
.../james/jmap/draft/model/MessagePropertiesTest.java | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/server/protocols/jmap-draft/src/test/java/org/apache/james/jmap/draft/model/MessagePropertiesTest.java b/server/protocols/jmap-draft/src/test/java/org/apache/james/jmap/draft/model/MessagePropertiesTest.java
index 6514f69..78bb1e7 100644
--- a/server/protocols/jmap-draft/src/test/java/org/apache/james/jmap/draft/model/MessagePropertiesTest.java
+++ b/server/protocols/jmap-draft/src/test/java/org/apache/james/jmap/draft/model/MessagePropertiesTest.java
@@ -25,26 +25,26 @@ import java.util.Optional;
import org.apache.james.jmap.draft.model.MessageProperties.HeaderProperty;
import org.apache.james.jmap.draft.model.MessageProperties.MessageProperty;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import com.google.common.collect.ImmutableSet;
-public class MessagePropertiesTest {
+class MessagePropertiesTest {
@Test
- public void toOutputPropertiesShouldReturnAllMessagePropertiesWhenAbsent() {
+ void toOutputPropertiesShouldReturnAllMessagePropertiesWhenAbsent() {
MessageProperties actual = new MessageProperties(Optional.empty()).toOutputProperties();
assertThat(actual.getOptionalMessageProperties()).hasValue(MessageProperty.allOutputProperties());
}
@Test
- public void toOutputPropertiesShouldReturnEmptyHeaderPropertiesWhenAbsent() {
+ void toOutputPropertiesShouldReturnEmptyHeaderPropertiesWhenAbsent() {
MessageProperties actual = new MessageProperties(Optional.empty()).toOutputProperties();
assertThat(actual.getOptionalHeadersProperties()).isEmpty();
}
@Test
- public void toOutputPropertiesShouldReturnTextBodyWhenBodyRequested() {
+ void toOutputPropertiesShouldReturnTextBodyWhenBodyRequested() {
MessageProperties actual = new MessageProperties(Optional.of(ImmutableSet.of("body"))).toOutputProperties();
assertThat(actual.getOptionalMessageProperties())
.hasValueSatisfying(value ->
@@ -52,7 +52,7 @@ public class MessagePropertiesTest {
}
@Test
- public void toOutputPropertiesShouldReturnIsUnread() {
+ void toOutputPropertiesShouldReturnIsUnread() {
MessageProperties actual = new MessageProperties(Optional.of(ImmutableSet.of("isUnread"))).toOutputProperties();
assertThat(actual.getOptionalMessageProperties())
.hasValueSatisfying(value ->
@@ -60,14 +60,14 @@ public class MessagePropertiesTest {
}
@Test
- public void toOutputPropertiesShouldReturnMandatoryPropertiesWhenEmptyRequest() {
+ void toOutputPropertiesShouldReturnMandatoryPropertiesWhenEmptyRequest() {
MessageProperties actual = new MessageProperties(Optional.of(ImmutableSet.of())).toOutputProperties();
assertThat(actual.getOptionalMessageProperties())
.hasValue(ImmutableSet.of(MessageProperty.id));
}
@Test
- public void toOutputPropertiesShouldReturnAllHeadersWhenHeadersAndIndividualHeadersRequested() {
+ void toOutputPropertiesShouldReturnAllHeadersWhenHeadersAndIndividualHeadersRequested() {
MessageProperties actual = new MessageProperties(
Optional.of(ImmutableSet.of("headers.X-Spam-Score", "headers"))).toOutputProperties();
assertThat(actual.getOptionalMessageProperties()).hasValueSatisfying(
@@ -77,7 +77,7 @@ public class MessagePropertiesTest {
}
@Test
- public void toOutputPropertiesShouldReturnHeadersMessagePropertyWhenIndividualHeadersRequested() {
+ void toOutputPropertiesShouldReturnHeadersMessagePropertyWhenIndividualHeadersRequested() {
MessageProperties actual = new MessageProperties(
Optional.of(ImmutableSet.of("headers.X-Spam-Score"))).toOutputProperties();
assertThat(actual.getOptionalMessageProperties()).hasValueSatisfying(
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org