Skip to content

Commit

Permalink
Fix tests in Commons IO. (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
radcortez authored Jul 24, 2020
1 parent 5783619 commit 4078421
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
14 changes: 7 additions & 7 deletions io/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@
</dependencies>
<build>
<plugins>
<!-- Skip default Surefire runner. Tests will run with JDK profiles -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>3.0.0-M5</version>
<artifactId>maven-surefire-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
<id>default-test</id>
<configuration>
<skipTests>true</skipTests>
</configuration>
</execution>
</executions>
</plugin>
Expand Down Expand Up @@ -67,4 +67,4 @@
</profile>
</profiles>

</project>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -32,5 +30,4 @@ public void shouldUseName() throws IOException {
JarEntry jarEntry = jarFile.getJarEntry("foo.txt");
assertEquals("foo.txt", JarEntries.getRealName(jarEntry));
}

}

0 comments on commit 4078421

Please sign in to comment.