FileDocCategorySizeDatePackage
JDependTest.javaAPI DocApache Ant 1.702533Wed Dec 13 06:16:24 GMT 2006org.apache.tools.ant.taskdefs.optional.jdepend

JDependTest

public class JDependTest extends org.apache.tools.ant.BuildFileTest
Testcase for the JDepend optional task.

Fields Summary
public static final String
RESULT_FILESET
Constructors Summary
public JDependTest(String name)


       
        super(name);
    
Methods Summary
protected voidexpectOutputContaining(java.lang.String target, java.lang.String substring)
Assert that the given message has been outputted

        executeTarget(target);
        assertOutputContaining(substring);
    
public voidsetUp()

        configureProject(
            "src/etc/testcases/taskdefs/optional/jdepend/jdepend.xml");
    
public voidtestFork()
Test fork - forked output goes to log

        expectLogContaining(
            "fork", "Package: org.apache.tools.ant.util.facade");
    
public voidtestForkXml()
Test fork xml

        expectLogContaining(
            "fork-xml", "<DependsUpon>");
    
public voidtestSimple()
Test simple

        expectOutputContaining(
            "simple", "Package: org.apache.tools.ant.util.facade");
    
public voidtestTimeout()
Test timeout

        expectLogContaining(
            "fork-timeout", "JDepend FAILED - Timed out");
    
public voidtestTimeoutNot()
Test timeout without timing out

        expectLogContaining(
            "fork-timeout-not", "Package: org.apache.tools.ant.util.facade");
    
public voidtestXml()
Test xml

        expectOutputContaining(
            "xml", "<DependsUpon>");