~ubuntu-branches/debian/stretch/libcommons-compress-java/stretch

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Emmanuel Bourg
  • Date: 2015-08-31 23:22:38 UTC
  • mfrom: (1.1.9)
  • Revision ID: package-import@ubuntu.com-20150831232238-gz3ynyvs68tok1a3
Tags: 1.10-1
* New upstream release
* Updated the OSGi metadata

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 */
19
19
package org.apache.commons.compress.archivers;
20
20
 
 
21
import static org.junit.Assert.*;
 
22
 
21
23
import java.io.BufferedInputStream;
22
24
import java.io.ByteArrayOutputStream;
23
25
import java.io.File;
31
33
import org.apache.commons.compress.archivers.ar.ArArchiveInputStream;
32
34
import org.apache.commons.compress.archivers.ar.ArArchiveOutputStream;
33
35
import org.apache.commons.compress.utils.IOUtils;
 
36
import org.junit.Ignore;
 
37
import org.junit.Test;
34
38
 
35
39
public final class ArTestCase extends AbstractTestCase {
36
40
 
 
41
    @Test
37
42
    public void testArArchiveCreation() throws Exception {
38
43
        final File output = new File(dir, "bla.ar");
39
44
 
53
58
        os.close();
54
59
    }
55
60
 
 
61
    @Test
56
62
    public void testArUnarchive() throws Exception {
57
63
        final File output = new File(dir, "bla.ar");
58
64
        {
88
94
        is.close();
89
95
    }
90
96
 
 
97
    @Test
91
98
    public void testArDelete() throws Exception {
92
99
        final File output = new File(dir, "bla.ar");
93
100
 
182
189
    }
183
190
 
184
191
    // TODO: revisit - does AR not support storing directories?
 
192
    @Ignore
 
193
    @Test
185
194
    public void XtestDirectoryEntryFromFile() throws Exception {
186
195
        File[] tmp = createTempDirAndFile();
187
196
        File archive = null;
222
231
    }
223
232
 
224
233
    // TODO: revisit - does AR not support storing directories?
 
234
    @Ignore
 
235
    @Test
225
236
    public void XtestExplicitDirectoryEntry() throws Exception {
226
237
        File[] tmp = createTempDirAndFile();
227
238
        File archive = null;
261
272
        }
262
273
    }
263
274
 
 
275
    @Test
264
276
    public void testFileEntryFromFile() throws Exception {
265
277
        File[] tmp = createTempDirAndFile();
266
278
        File archive = null;
310
322
        }
311
323
    }
312
324
 
 
325
    @Test
313
326
    public void testExplicitFileEntry() throws Exception {
314
327
        File[] tmp = createTempDirAndFile();
315
328
        File archive = null;