FileDocCategorySizeDatePackage
RhinoScriptTest.javaAPI DocApache Ant 1.702137Wed Dec 13 06:16:22 GMT 2006org.apache.tools.ant.taskdefs.optional

RhinoScriptTest

public class RhinoScriptTest extends org.apache.tools.ant.BuildFileTest
Tests the examples of the <script> task docs.
since
Ant 1.5.2

Fields Summary
Constructors Summary
public RhinoScriptTest(String name)

        super(name);
    
Methods Summary
public voidsetUp()
The JUnit setup method

        configureProject("src/etc/testcases/taskdefs/optional/script.xml");
    
public voidtestExample1()

        executeTarget("example1");
        int index = getLog().indexOf("1");
        assertTrue(index > -1);
        index = getLog().indexOf("4", index);
        assertTrue(index > -1);
        index = getLog().indexOf("9", index);
        assertTrue(index > -1);
        index = getLog().indexOf("16", index);
        assertTrue(index > -1);
        index = getLog().indexOf("25", index);
        assertTrue(index > -1);
        index = getLog().indexOf("36", index);
        assertTrue(index > -1);
        index = getLog().indexOf("49", index);
        assertTrue(index > -1);
        index = getLog().indexOf("64", index);
        assertTrue(index > -1);
        index = getLog().indexOf("81", index);
        assertTrue(index > -1);
        index = getLog().indexOf("100", index);
        assertTrue(index > -1);