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 03aa79d8b5039f5b8253b7ec425e52b29968b268 Author: Rene Cordier <[email protected]> AuthorDate: Thu Aug 13 15:39:13 2020 +0700 [Refactoring] Migrate ConfigurationItemsRemovedTest to JUnit5 --- .../events/ConfigurationItemsRemovedTest.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/server/data/data-library/src/test/java/org/apache/james/dlp/eventsourcing/events/ConfigurationItemsRemovedTest.java b/server/data/data-library/src/test/java/org/apache/james/dlp/eventsourcing/events/ConfigurationItemsRemovedTest.java index a6d4ecc..486d13c 100644 --- a/server/data/data-library/src/test/java/org/apache/james/dlp/eventsourcing/events/ConfigurationItemsRemovedTest.java +++ b/server/data/data-library/src/test/java/org/apache/james/dlp/eventsourcing/events/ConfigurationItemsRemovedTest.java @@ -25,40 +25,40 @@ import static org.assertj.core.api.Assertions.assertThatThrownBy; import org.apache.james.core.Domain; import org.apache.james.dlp.eventsourcing.aggregates.DLPAggregateId; import org.apache.james.eventsourcing.EventId; -import org.junit.Test; +import org.junit.jupiter.api.Test; import com.google.common.collect.ImmutableList; import nl.jqno.equalsverifier.EqualsVerifier; -public class ConfigurationItemsRemovedTest { +class ConfigurationItemsRemovedTest { @Test - public void shouldMatchBeanContract() { + void shouldMatchBeanContract() { EqualsVerifier.forClass(ConfigurationItemsRemoved.class) .verify(); } @Test - public void constructorShouldThrowWhenNullAggregateId() { + void constructorShouldThrowWhenNullAggregateId() { assertThatThrownBy(() -> new ConfigurationItemsRemoved(null, EventId.first(), ImmutableList.of(RULE))) .isInstanceOf(NullPointerException.class); } @Test - public void constructorShouldThrowWhenNullEventId() { + void constructorShouldThrowWhenNullEventId() { assertThatThrownBy(() -> new ConfigurationItemsRemoved(new DLPAggregateId(Domain.LOCALHOST), null, ImmutableList.of())) .isInstanceOf(NullPointerException.class); } @Test - public void constructorShouldThrowWhenEmptyRulesList() { + void constructorShouldThrowWhenEmptyRulesList() { assertThatThrownBy(() -> new ConfigurationItemsRemoved(new DLPAggregateId(Domain.LOCALHOST), EventId.first(), ImmutableList.of())) .isInstanceOf(IllegalArgumentException.class); } @Test - public void constructorShouldThrowWhenNullRulesList() { + void constructorShouldThrowWhenNullRulesList() { assertThatThrownBy(() -> new ConfigurationItemsRemoved(new DLPAggregateId(Domain.LOCALHOST), EventId.first(), null)) .isInstanceOf(NullPointerException.class); } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
