FileDocCategorySizeDatePackage
UntarTest.javaAPI DocApache Ant 1.703144Wed Dec 13 06:16:22 GMT 2006org.apache.tools.ant.taskdefs

UntarTest

public class UntarTest extends org.apache.tools.ant.BuildFileTest

Fields Summary
private static final org.apache.tools.ant.util.FileUtils
FILE_UTILS
Utilities used for file operations
Constructors Summary
public UntarTest(String name)


       
        super(name);
    
Methods Summary
public voidsetUp()

        configureProject("src/etc/testcases/taskdefs/untar.xml");
    
public voidtearDown()

        executeTarget("cleanup");
    
public voidtestDocumentationClaimsOnCopy()

        executeTarget("testDocumentationClaimsOnCopy");
        assertFalse(getProject().resolveFile("untartestout/1/foo").exists());
        assertTrue(getProject().resolveFile("untartestout/2/bar").exists());
    
public voidtestEncoding()

        expectSpecificBuildException("encoding",
                                     "<untar> overrides setEncoding.",
                                     "The untar task doesn't support the "
                                     + "encoding attribute");
    
private voidtestLogoExtraction(java.lang.String target)

        executeTarget(target);
        assertTrue(FILE_UTILS.contentEquals(project.resolveFile("../asf-logo.gif"),
                                           project.resolveFile("asf-logo.gif")));
    
public voidtestRealBzip2Test()

        testLogoExtraction("realBzip2Test");
    
public voidtestRealGzipTest()

        testLogoExtraction("realGzipTest");
    
public voidtestRealTest()

        testLogoExtraction("realTest");
    
public voidtestResourceCollection()

        testLogoExtraction("resourceCollection");
    
public voidtestSrcDirTest()

        expectBuildException("srcDirTest", "Src cannot be a directory.");
    
public voidtestTestBzip2TarTask()

        testLogoExtraction("testBzip2TarTask");
    
public voidtestTestGzipTarTask()

        testLogoExtraction("testGzipTarTask");
    
public voidtestTestTarTask()

        testLogoExtraction("testTarTask");