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 2020/08/10 02:47:35 UTC
[james-project] 05/23: [Refactoring] Migrate DispositionTypeTest to
JUnit5
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 d8a83a5f5ae721a20848e98624cd7115cb52657c
Author: Rene Cordier <rc...@linagora.com>
AuthorDate: Fri Jul 31 13:56:53 2020 +0700
[Refactoring] Migrate DispositionTypeTest to JUnit5
---
.../org/apache/james/mdn/type/DispositionTypeTest.java | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/mdn/src/test/java/org/apache/james/mdn/type/DispositionTypeTest.java b/mdn/src/test/java/org/apache/james/mdn/type/DispositionTypeTest.java
index fa8a532..333074e 100644
--- a/mdn/src/test/java/org/apache/james/mdn/type/DispositionTypeTest.java
+++ b/mdn/src/test/java/org/apache/james/mdn/type/DispositionTypeTest.java
@@ -21,41 +21,41 @@ package org.apache.james.mdn.type;
import static org.assertj.core.api.Assertions.assertThat;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
-public class DispositionTypeTest {
+class DispositionTypeTest {
@Test
- public void fromStringShouldReturnEmptyWhenUnknown() {
+ void fromStringShouldReturnEmptyWhenUnknown() {
assertThat(DispositionType.fromString("unknown"))
.isEmpty();
}
@Test
- public void fromStringShouldRetrieveDeleted() {
+ void fromStringShouldRetrieveDeleted() {
assertThat(DispositionType.fromString(DispositionType.Deleted.getValue()))
.contains(DispositionType.Deleted);
}
@Test
- public void fromStringShouldRetrieveDispatched() {
+ void fromStringShouldRetrieveDispatched() {
assertThat(DispositionType.fromString(DispositionType.Dispatched.getValue()))
.contains(DispositionType.Dispatched);
}
@Test
- public void fromStringShouldRetrieveDisplayed() {
+ void fromStringShouldRetrieveDisplayed() {
assertThat(DispositionType.fromString(DispositionType.Displayed.getValue()))
.contains(DispositionType.Displayed);
}
@Test
- public void fromStringShouldRetrieveProcessed() {
+ void fromStringShouldRetrieveProcessed() {
assertThat(DispositionType.fromString(DispositionType.Processed.getValue()))
.contains(DispositionType.Processed);
}
@Test
- public void fromStringShouldNotBeCaseSensitive() {
+ void fromStringShouldNotBeCaseSensitive() {
assertThat(DispositionType.fromString("Deleted"))
.contains(DispositionType.Deleted);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org