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 faf4003c34c53697a4c4afebffd2bc62c929decf Author: Guillaume Nodet <[email protected]> AuthorDate: Mon Jul 27 12:50:16 2020 +0200 [CAMEL-11807] Upgrade camel-lzf to junit5 --- components/camel-lzf/pom.xml | 2 +- .../java/org/apache/camel/dataformat/lzf/LZFDataFormatTest.java | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/components/camel-lzf/pom.xml b/components/camel-lzf/pom.xml index b0e9078..1420ad8 100644 --- a/components/camel-lzf/pom.xml +++ b/components/camel-lzf/pom.xml @@ -58,7 +58,7 @@ </dependency> <dependency> <groupId>org.apache.camel</groupId> - <artifactId>camel-test-spring</artifactId> + <artifactId>camel-test-spring-junit5</artifactId> <scope>test</scope> </dependency> <dependency> diff --git a/components/camel-lzf/src/test/java/org/apache/camel/dataformat/lzf/LZFDataFormatTest.java b/components/camel-lzf/src/test/java/org/apache/camel/dataformat/lzf/LZFDataFormatTest.java index 4ef43ee..991edca 100644 --- a/components/camel-lzf/src/test/java/org/apache/camel/dataformat/lzf/LZFDataFormatTest.java +++ b/components/camel-lzf/src/test/java/org/apache/camel/dataformat/lzf/LZFDataFormatTest.java @@ -24,8 +24,10 @@ import org.apache.camel.RoutesBuilder; 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.Test; +import org.apache.camel.test.junit5.CamelTestSupport; +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.assertEquals; public class LZFDataFormatTest extends CamelTestSupport { private static final String TEXT = "Hamlet by William Shakespeare\n" @@ -41,7 +43,7 @@ public class LZFDataFormatTest extends CamelTestSupport { InputStream stream = new LZFInputStream(new ByteArrayInputStream(output)); String result = IOConverter.toString(stream, null); - assertEquals("Uncompressed something different than compressed", TEXT, result); + assertEquals(TEXT, result, "Uncompressed something different than compressed"); } @Test
