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 8fadbc57b4a8e32257dd39a6c3492ea58ff755d0
Author: Rene Cordier <rcord...@linagora.com>
AuthorDate: Thu Aug 13 15:35:00 2020 +0700

    [Refactoring] Migrate DLPAggregateIdTest to JUnit5
---
 .../dlp/eventsourcing/aggregates/DLPAggregateIdTest.java      | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git 
a/server/data/data-library/src/test/java/org/apache/james/dlp/eventsourcing/aggregates/DLPAggregateIdTest.java
 
b/server/data/data-library/src/test/java/org/apache/james/dlp/eventsourcing/aggregates/DLPAggregateIdTest.java
index a5f740b..d74b8f6 100644
--- 
a/server/data/data-library/src/test/java/org/apache/james/dlp/eventsourcing/aggregates/DLPAggregateIdTest.java
+++ 
b/server/data/data-library/src/test/java/org/apache/james/dlp/eventsourcing/aggregates/DLPAggregateIdTest.java
@@ -23,26 +23,25 @@ import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 
 import org.apache.james.core.Domain;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
 
 import nl.jqno.equalsverifier.EqualsVerifier;
 
-public class DLPAggregateIdTest {
-
+class DLPAggregateIdTest {
     @Test
-    public void shouldMatchBeanContract() {
+    void shouldMatchBeanContract() {
         EqualsVerifier.forClass(DLPAggregateId.class)
             .verify();
     }
 
     @Test
-    public void constructorShouldThrowWhenNullDomain() {
+    void constructorShouldThrowWhenNullDomain() {
         assertThatThrownBy(() -> new DLPAggregateId(null))
             .isInstanceOf(NullPointerException.class);
     }
 
     @Test
-    public void 
asAggregateKeyShouldReturnAStringContainingThePrefixAndTheDomain() {
+    void asAggregateKeyShouldReturnAStringContainingThePrefixAndTheDomain() {
         assertThat(new DLPAggregateId(Domain.LOCALHOST).asAggregateKey())
             .isEqualTo("DLPRule/localhost");
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org

Reply via email to