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/17 09:11:28 UTC
[james-project] 17/26: [Refactoring] Migrate StoreCommandTest 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 43cbb29acb84397572b802170fc76d610fa8a6e8
Author: Rene Cordier <rc...@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-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org