wt.step
Class PackagerTests

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bywt.step.STEPTestCase
              extended bywt.step.PackagerTests
All Implemented Interfaces:
junit.framework.Test

public class PackagerTests
extends STEPTestCase


Field Summary
private  File _packageFile
           
private static StepPackager _packager
           
private  File _testRoot
           
private  File _tmpDir
           
private static int TEST_FILE_SIZE
           
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
PackagerTests(String name)
           
 
Method Summary
private  void collectFilenames(File dir, HashSet set, int prefixSize)
           
private  void makeFile(String path)
           
private  void recursiveDelete(File file)
           
 void setUp()
           
static junit.framework.Test suite()
           
 void testExtraction()
           
 void testOption1()
           
 void testOption2()
           
 void testOption3()
           
 void testPackagerOption(boolean includeRootDir, boolean ignoreDirectories, String[] expectedResult)
           
 void testSpecificPackage()
           
 
Methods inherited from class wt.step.STEPTestCase
assertSTEPTrue, assertSTEPTrue
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TEST_FILE_SIZE

private static final int TEST_FILE_SIZE
See Also:
Constant Field Values

_packager

private static StepPackager _packager

_tmpDir

private File _tmpDir

_packageFile

private File _packageFile

_testRoot

private File _testRoot
Constructor Detail

PackagerTests

public PackagerTests(String name)
Method Detail

setUp

public void setUp()

makeFile

private void makeFile(String path)

testPackagerOption

public void testPackagerOption(boolean includeRootDir,
                               boolean ignoreDirectories,
                               String[] expectedResult)
                        throws Exception
Throws:
Exception

testOption1

public void testOption1()
                 throws Exception
Throws:
Exception

testOption2

public void testOption2()
                 throws Exception
Throws:
Exception

testOption3

public void testOption3()
                 throws Exception
Throws:
Exception

testExtraction

public void testExtraction()
                    throws Exception
Throws:
Exception

collectFilenames

private void collectFilenames(File dir,
                              HashSet set,
                              int prefixSize)

recursiveDelete

private void recursiveDelete(File file)

testSpecificPackage

public void testSpecificPackage()
                         throws Exception
Throws:
Exception

suite

public static final junit.framework.Test suite()