Skip to content
Permalink
Browse files
Fix broken tests.
  • Loading branch information
garydgregory committed May 5, 2022
1 parent fce2e1a commit daeaff00bdb3001f69d969b3f918fd761d4089b3
Showing 1 changed file with 5 additions and 5 deletions.
@@ -20,6 +20,7 @@

import static org.apache.commons.compress.AbstractTestCase.getFile;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertThrows;
import static org.junit.Assert.fail;

import java.io.File;
@@ -46,7 +47,8 @@
*/
public class Maven221MultiVolumeTest {

private static final String [] ENTRIES = new String [] {
private static final String[] ENTRIES = {
// @formatter:off
"apache-maven-2.2.1/",
"apache-maven-2.2.1/LICENSE.txt",
"apache-maven-2.2.1/NOTICE.txt",
@@ -62,6 +64,7 @@ public class Maven221MultiVolumeTest {
"apache-maven-2.2.1/conf/",
"apache-maven-2.2.1/conf/settings.xml",
"apache-maven-2.2.1/lib/"
// @formatter:on
};

private static final String LAST_ENTRY_NAME =
@@ -117,9 +120,6 @@ public void testRead7ZipMultiVolumeArchiveForStream() throws IOException {

@Test
public void testRead7ZipMultiVolumeArchiveForFile() throws IOException {
final File file = getFile("apache-maven-2.2.1.zip.001");
try (final ZipFile zf = new ZipFile(file)) {
// empty
}
assertThrows(IOException.class, () -> new ZipFile(getFile("apache-maven-2.2.1.zip.001")));
}
}

0 comments on commit daeaff0

Please sign in to comment.