~ubuntu-branches/ubuntu/utopic/libcommons-compress-java/utopic

« back to all changes in this revision

Viewing changes to src/test/java/org/apache/commons/compress/archivers/ZipTestCase.java

  • Committer: Package Import Robot
  • Author(s): tony mancill
  • Date: 2013-05-17 07:53:06 UTC
  • mfrom: (7.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20130517075306-4yt0jyr782vasejl
Tags: 1.5-1
* Team upload.
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
116
116
    }
117
117
 
118
118
    /**
 
119
     * Test case for 
 
120
     * <a href="https://issues.apache.org/jira/browse/COMPRESS-208"
 
121
     * >COMPRESS-208</a>.
 
122
     */
 
123
    public void testSkipsPK00Prefix() throws Exception {
 
124
        final File input = getFile("COMPRESS-208.zip");
 
125
        InputStream is = new FileInputStream(input);
 
126
        ArrayList<String> al = new ArrayList<String>();
 
127
        al.add("test1.xml");
 
128
        al.add("test2.xml");
 
129
        try {
 
130
            checkArchiveContent(new ZipArchiveInputStream(is), al);
 
131
        } finally {
 
132
            is.close();
 
133
        }
 
134
    }
 
135
 
 
136
    /**
119
137
     * Test case for
120
138
     * <a href="https://issues.apache.org/jira/browse/COMPRESS-93"
121
139
     * >COMPRESS-93</a>.
149
167
            try {
150
168
                assertNull(zip.getNextZipEntry());
151
169
            } catch (IOException e) {
 
170
                e.printStackTrace();
152
171
                fail("COMPRESS-93: Unable to skip an unsupported zip entry");
153
172
            }
154
173
        } finally {