bb.io
Class TarUtil.UnitTest

java.lang.Object
  extended by bb.io.TarUtil.UnitTest
Enclosing class:
TarUtil

public static class TarUtil.UnitTest
extends Object

See the Overview page of the project's javadocs for a general description of this unit test class.


Constructor Summary
TarUtil.UnitTest()
           
 
Method Summary
private  void archive_extract(File dirToArchive, String type)
           
private  void archiveWithDifferentProgram(File dirToArchive, File tarFile)
           
private  void confirmExtraction(File dirToArchive, File directoryExtraction)
           
private  void extractWithDifferentProgram(File tarFile, File directoryExtraction)
           
private  void printEntries(File tarFile)
           
private  String tarCommand(File dirToArchive, File tarFile)
           
 void test_archive_extract_fileSizeLimit_shouldFail()
           
 void test_archive_extract_fileSizeLimit_shouldPass()
           
 void test_archive_extract_pathLengthLimit()
           
 void test_archive_extract()
           
private  String unTarCommand(File tarFile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TarUtil.UnitTest

public TarUtil.UnitTest()
Method Detail

test_archive_extract

public void test_archive_extract()
                          throws Exception
Throws:
Exception

archive_extract

private void archive_extract(File dirToArchive,
                             String type)
                      throws Exception
Throws:
Exception

confirmExtraction

private void confirmExtraction(File dirToArchive,
                               File directoryExtraction)
                        throws Exception
Throws:
Exception

extractWithDifferentProgram

private void extractWithDifferentProgram(File tarFile,
                                         File directoryExtraction)
                                  throws Exception
Throws:
Exception

unTarCommand

private String unTarCommand(File tarFile)
                     throws Exception
Throws:
Exception

archiveWithDifferentProgram

private void archiveWithDifferentProgram(File dirToArchive,
                                         File tarFile)
                                  throws Exception
Throws:
Exception

tarCommand

private String tarCommand(File dirToArchive,
                          File tarFile)
                   throws Exception
Throws:
Exception

test_archive_extract_fileSizeLimit_shouldPass

public void test_archive_extract_fileSizeLimit_shouldPass()
                                                   throws Exception
Throws:
Exception

test_archive_extract_fileSizeLimit_shouldFail

public void test_archive_extract_fileSizeLimit_shouldFail()
                                                   throws Exception
Throws:
Exception

test_archive_extract_pathLengthLimit

public void test_archive_extract_pathLengthLimit()
                                          throws Exception
Throws:
Exception

printEntries

private void printEntries(File tarFile)
                   throws Exception
Throws:
Exception