This is an automated email from the ASF dual-hosted git repository. gnodet pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
commit c3e170e059387dae969b399a20043b7ff93ec875 Author: Guillaume Nodet <[email protected]> AuthorDate: Mon Jun 29 18:31:49 2020 +0200 [CAMEL-11807] Upgrade camel-ical to junit5 --- components/camel-ical/pom.xml | 2 +- .../org/apache/camel/component/ical/ICalDataFormatTest.java | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/components/camel-ical/pom.xml b/components/camel-ical/pom.xml index a18fd77..c3583b2 100644 --- a/components/camel-ical/pom.xml +++ b/components/camel-ical/pom.xml @@ -52,7 +52,7 @@ </dependency> <dependency> <groupId>org.apache.camel</groupId> - <artifactId>camel-test</artifactId> + <artifactId>camel-test-junit5</artifactId> <scope>test</scope> </dependency> <dependency> diff --git a/components/camel-ical/src/test/java/org/apache/camel/component/ical/ICalDataFormatTest.java b/components/camel-ical/src/test/java/org/apache/camel/component/ical/ICalDataFormatTest.java index 15df760..46a89a8 100644 --- a/components/camel-ical/src/test/java/org/apache/camel/component/ical/ICalDataFormatTest.java +++ b/components/camel-ical/src/test/java/org/apache/camel/component/ical/ICalDataFormatTest.java @@ -44,10 +44,10 @@ import net.fortuna.ical4j.model.property.Version; import org.apache.camel.builder.RouteBuilder; import org.apache.camel.component.mock.MockEndpoint; import org.apache.camel.converter.IOConverter; -import org.apache.camel.test.junit4.CamelTestSupport; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; +import org.apache.camel.test.junit5.CamelTestSupport; +import org.junit.jupiter.api.AfterEach; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; /** * Small unit test which verifies ical data format. @@ -57,7 +57,7 @@ public class ICalDataFormatTest extends CamelTestSupport { private java.util.TimeZone defaultTimeZone; @Override - @Before + @BeforeEach public void setUp() throws Exception { defaultTimeZone = java.util.TimeZone.getDefault(); java.util.TimeZone.setDefault(java.util.TimeZone.getTimeZone("America/New_York")); @@ -66,7 +66,7 @@ public class ICalDataFormatTest extends CamelTestSupport { } @Override - @After + @AfterEach public void tearDown() throws Exception { java.util.TimeZone.setDefault(defaultTimeZone);
