From 407842137dacca131e8e0bc91867ac18d19874a3 Mon Sep 17 00:00:00 2001 From: Roberto Cortez Date: Fri, 24 Jul 2020 17:41:56 +0100 Subject: [PATCH] Fix tests in Commons IO. (#46) --- io/pom.xml | 14 +++++++------- .../jar/{JarEntriesIT.java => JarEntriesTest.java} | 5 +---- 2 files changed, 8 insertions(+), 11 deletions(-) rename io/src/test/java/io/smallrye/common/io/jar/{JarEntriesIT.java => JarEntriesTest.java} (93%) diff --git a/io/pom.xml b/io/pom.xml index d679294b..73061522 100644 --- a/io/pom.xml +++ b/io/pom.xml @@ -26,16 +26,16 @@ + org.apache.maven.plugins - maven-failsafe-plugin - 3.0.0-M5 + maven-surefire-plugin - - integration-test - verify - + default-test + + true + @@ -67,4 +67,4 @@ - \ No newline at end of file + diff --git a/io/src/test/java/io/smallrye/common/io/jar/JarEntriesIT.java b/io/src/test/java/io/smallrye/common/io/jar/JarEntriesTest.java similarity index 93% rename from io/src/test/java/io/smallrye/common/io/jar/JarEntriesIT.java rename to io/src/test/java/io/smallrye/common/io/jar/JarEntriesTest.java index d4811ba5..0604697a 100644 --- a/io/src/test/java/io/smallrye/common/io/jar/JarEntriesIT.java +++ b/io/src/test/java/io/smallrye/common/io/jar/JarEntriesTest.java @@ -12,9 +12,7 @@ import org.junit.jupiter.api.condition.EnabledOnJre; import org.junit.jupiter.api.condition.JRE; -// This needs to be run as an integration-test -public class JarEntriesIT { - +public class JarEntriesTest { @Test @DisabledOnJre(JRE.JAVA_8) public void shouldUseMultiReleaseName() throws IOException { @@ -32,5 +30,4 @@ public void shouldUseName() throws IOException { JarEntry jarEntry = jarFile.getJarEntry("foo.txt"); assertEquals("foo.txt", JarEntries.getRealName(jarEntry)); } - }