FileDocCategorySizeDatePackage
AptTest.javaAPI DocApache Ant 1.702314Wed Dec 13 06:16:18 GMT 2006None

AptTest

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

Fields Summary
Constructors Summary
public AptTest(String name)

        super(name);
    
Methods Summary
private voidassertProcessed()

        assertLogContaining("DistributedAnnotationProcessor-is-go");
        assertLogContaining("[-Abuild.dir=");
        assertLogContaining("visiting DistributedAnnotationFactory");
    
public voidsetUp()

        configureProject("src/etc/testcases/taskdefs/apt.xml");
    
protected voidtearDown()
Tears down the fixture, for example, close a network connection. This method is called after a test is executed.

        executeTarget("clean");
    
public voidtestApt()

        executeTarget("testApt");
    
public voidtestAptFork()

        executeTarget("testAptFork");
    
public voidtestAptForkFalse()

        executeTarget("testAptForkFalse");
        assertLogContaining(Apt.WARNING_IGNORING_FORK);
    
public voidtestAptNewFactory()

        executeTarget("testAptNewFactory");
        assertProcessed();
    
public voidtestAptNewFactoryFork()

        executeTarget("testAptNewFactoryFork");
        assertProcessed();
    
public voidtestListAnnotationTypes()

        executeTarget("testListAnnotationTypes");
        assertLogContaining("Set of annotations found:");
        assertLogContaining("Distributed");