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 43cbb29acb84397572b802170fc76d610fa8a6e8 Author: Rene Cordier <rcord...@linagora.com> AuthorDate: Thu Aug 13 15:38:01 2020 +0700 [Refactoring] Migrate StoreCommandTest to JUnit5 --- .../james/dlp/eventsourcing/commands/StoreCommandTest.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server/data/data-library/src/test/java/org/apache/james/dlp/eventsourcing/commands/StoreCommandTest.java b/server/data/data-library/src/test/java/org/apache/james/dlp/eventsourcing/commands/StoreCommandTest.java index f327caf..2f8e03c 100644 --- a/server/data/data-library/src/test/java/org/apache/james/dlp/eventsourcing/commands/StoreCommandTest.java +++ b/server/data/data-library/src/test/java/org/apache/james/dlp/eventsourcing/commands/StoreCommandTest.java @@ -24,28 +24,28 @@ import static org.assertj.core.api.Assertions.assertThatThrownBy; import org.apache.james.core.Domain; import org.apache.james.dlp.api.DLPRules; -import org.junit.Test; +import org.junit.jupiter.api.Test; import com.google.common.collect.ImmutableList; import nl.jqno.equalsverifier.EqualsVerifier; -public class StoreCommandTest { +class StoreCommandTest { @Test - public void shouldMatchBeanContract() { + void shouldMatchBeanContract() { EqualsVerifier.forClass(StoreCommand.class) .verify(); } @Test - public void constructorShouldThrowWhenNullDomain() { + void constructorShouldThrowWhenNullDomain() { assertThatThrownBy(() -> new StoreCommand(null, new DLPRules(ImmutableList.of(RULE)))) .isInstanceOf(NullPointerException.class); } @Test - public void constructorShouldThrowWhenNullRules() { + void constructorShouldThrowWhenNullRules() { assertThatThrownBy(() -> new StoreCommand(Domain.LOCALHOST, null)) .isInstanceOf(NullPointerException.class); } --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org