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

EqualsTest

public class EqualsTest extends TestCase
Testcase for the <equals> condition.

Fields Summary
Constructors Summary
public EqualsTest(String name)

        super(name);
    
Methods Summary
public voidtestCaseSensitive()

        Equals eq = new Equals();
        eq.setArg1("a");
        eq.setArg2("A");
        assertTrue(!eq.eval());

        eq.setCasesensitive(false);
        assertTrue(eq.eval());
    
public voidtestTrim()

        Equals eq = new Equals();
        eq.setArg1("a");
        eq.setArg2(" a");
        assertTrue(!eq.eval());

        eq.setTrim(true);
        assertTrue(eq.eval());

        eq.setArg2("a\t");
        assertTrue(eq.eval());