FileDocCategorySizeDatePackage
ContainsTest.javaAPI DocApache Ant 1.701324Wed Dec 13 06:16:18 GMT 2006org.apache.tools.ant.taskdefs.condition

ContainsTest

public class ContainsTest extends TestCase
Testcase for the <contains> condition.

Fields Summary
Constructors Summary
public ContainsTest(String name)

        super(name);
    
Methods Summary
public voidtestCaseSensitive()

        Contains con = new Contains();
        con.setString("abc");
        con.setSubstring("A");
        assertTrue(!con.eval());

        con.setCasesensitive(false);
        assertTrue(con.eval());