Skip to content

Commit 67a6b83

Browse files
committed
Removed accidental commit
1 parent 5ef2592 commit 67a6b83

File tree

1 file changed

+0
-44
lines changed

1 file changed

+0
-44
lines changed

src/test/java/org/codehaus/plexus/archiver/tar/TarUnArchiverTest.java

-44
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,12 @@
11
package org.codehaus.plexus.archiver.tar;
22

3-
import org.apache.commons.compress.compressors.bzip2.BZip2CompressorOutputStream;
4-
import org.apache.commons.io.IOUtils;
5-
import org.apache.commons.io.output.NullOutputStream;
63
import org.codehaus.plexus.PlexusTestCase;
74
import org.codehaus.plexus.archiver.UnArchiver;
8-
import org.codehaus.plexus.archiver.util.Streams;
95
import org.codehaus.plexus.components.io.fileselectors.FileSelector;
106
import org.codehaus.plexus.components.io.fileselectors.IncludeExcludeFileSelector;
117
import org.codehaus.plexus.util.FileUtils;
128

139
import java.io.File;
14-
import java.io.FileInputStream;
15-
import java.io.FileNotFoundException;
16-
import java.io.IOException;
17-
import java.io.InputStream;
18-
import java.io.OutputStream;
1910

2011
/**
2112
* @author <a href="mailto:[email protected]">Viktor Sadovnikov</a>
@@ -75,39 +66,4 @@ public void testSelectors()
7566
runUnarchiver( new FileSelector[]{ fileSelector }, new boolean[]{ true, false, false } );
7667
}
7768

78-
79-
private InputStream fis()
80-
throws FileNotFoundException
81-
{
82-
File file = new File( "/Users/kristian/testFile.tar" );
83-
return Streams.bufferedInputStream( new FileInputStream( file ) );
84-
}
85-
86-
private InputStream fisub()
87-
throws FileNotFoundException
88-
{
89-
File file = new File( "/Users/kristian/testFile.tar" );
90-
return new FileInputStream( file );
91-
}
92-
93-
public void testStreams()
94-
throws IOException
95-
{
96-
long start = System.currentTimeMillis();
97-
OutputStream bzin = new BZip2CompressorOutputStream( new NullOutputStream() );
98-
IOUtils.copy( fis(), bzin );
99-
System.out.println( "((System.currentTimeMillis() - start)) = " + ( ( System.currentTimeMillis() - start ) ) );
100-
start = System.currentTimeMillis();
101-
bzin = new BZip2CompressorOutputStream( new NullOutputStream() );
102-
IOUtils.copy( fisub(), bzin );
103-
System.out.println( "((System.currentTimeMillis() - start)) = " + ( ( System.currentTimeMillis() - start ) ) );
104-
start = System.currentTimeMillis();
105-
bzin = new BZip2CompressorOutputStream( new NullOutputStream() );
106-
IOUtils.copy( fis(), bzin );
107-
System.out.println( "((System.currentTimeMillis() - start)) = " + ( ( System.currentTimeMillis() - start ) ) );
108-
start = System.currentTimeMillis();
109-
bzin = new BZip2CompressorOutputStream( new NullOutputStream() );
110-
IOUtils.copy( fisub(), bzin );
111-
System.out.println( "((System.currentTimeMillis() - start)) = " + ( ( System.currentTimeMillis() - start ) ) );
112-
}
11369
}

0 commit comments

Comments
 (0)