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

GzipTest

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

Fields Summary
Constructors Summary
public GzipTest(String name)

        super(name);
    
Methods Summary
public voidsetUp()

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

        executeTarget("cleanup");
    
public voidtest1()

        expectBuildException("test1", "required argument missing");
    
public voidtest2()

        expectBuildException("test2", "required argument missing");
    
public voidtest3()

        expectBuildException("test3", "required argument missing");
    
public voidtest4()

        expectBuildException("test4", "zipfile must not point to a directory");
    
public voidtestDateCheck()

        executeTarget("testDateCheck");
        String log = getLog();
        assertTrue(
            "Expecting message ending with 'asf-logo.gif.gz is up to date.' but got '" + log + "'",
            log.endsWith("asf-logo.gif.gz is up to date."));
    
public voidtestGZip()

        executeTarget("realTest");
        String log = getLog();
        assertTrue("Expecting message starting with 'Building:' but got '"
            + log + "'", log.startsWith("Building:"));
        assertTrue("Expecting message ending with 'asf-logo.gif.gz' but got '"
            + log + "'", log.endsWith("asf-logo.gif.gz"));
    
public voidtestResource()

        executeTarget("realTestWithResource");