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 464774b2c6c8979d01b96027afe9246bc21bd6bd Author: Rene Cordier <rcord...@linagora.com> AuthorDate: Fri Jul 31 13:57:27 2020 +0700 [Refactoring] Migrate DispositionSendingModeTest to JUnit5 --- .../james/mdn/sending/mode/DispositionSendingModeTest.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mdn/src/test/java/org/apache/james/mdn/sending/mode/DispositionSendingModeTest.java b/mdn/src/test/java/org/apache/james/mdn/sending/mode/DispositionSendingModeTest.java index 9be6779..6f5a57f 100644 --- a/mdn/src/test/java/org/apache/james/mdn/sending/mode/DispositionSendingModeTest.java +++ b/mdn/src/test/java/org/apache/james/mdn/sending/mode/DispositionSendingModeTest.java @@ -21,29 +21,29 @@ package org.apache.james.mdn.sending.mode; import static org.assertj.core.api.Assertions.assertThat; -import org.junit.Test; +import org.junit.jupiter.api.Test; -public class DispositionSendingModeTest { +class DispositionSendingModeTest { @Test - public void fromStringShouldReturnEmptyWhenUnknown() { + void fromStringShouldReturnEmptyWhenUnknown() { assertThat(DispositionSendingMode.fromString("unknown")) .isEmpty(); } @Test - public void fromStringShouldRetrieveAutomatic() { + void fromStringShouldRetrieveAutomatic() { assertThat(DispositionSendingMode.fromString(DispositionSendingMode.Automatic.getValue())) .contains(DispositionSendingMode.Automatic); } @Test - public void fromStringShouldRetrieveManual() { + void fromStringShouldRetrieveManual() { assertThat(DispositionSendingMode.fromString(DispositionSendingMode.Manual.getValue())) .contains(DispositionSendingMode.Manual); } @Test - public void fromStringShouldNotBeCaseSensitive() { + void fromStringShouldNotBeCaseSensitive() { assertThat(DispositionSendingMode.fromString("mdn-sent-automatically")) .contains(DispositionSendingMode.Automatic); } --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org