FileDocCategorySizeDatePackage
ImplementationSpecificArgumentTest.javaAPI DocApache Ant 1.701939Wed Dec 13 06:16:20 GMT 2006org.apache.tools.ant.util.facade

ImplementationSpecificArgumentTest

public class ImplementationSpecificArgumentTest extends TestCase
since
Ant 1.5

Fields Summary
Constructors Summary
public ImplementationSpecificArgumentTest(String name)

        super(name);
    
Methods Summary
public voidtestDependsOnImplementation()

        ImplementationSpecificArgument ia =
            new ImplementationSpecificArgument();
        ia.setLine("A B");
        String[] parts = ia.getParts();
        assertNotNull(parts);
        assertEquals(2, parts.length);
        assertEquals("A", parts[0]);
        assertEquals("B", parts[1]);

        parts = ia.getParts(null);
        assertNotNull(parts);
        assertEquals(2, parts.length);
        assertEquals("A", parts[0]);
        assertEquals("B", parts[1]);

        ia.setImplementation("foo");
        parts = ia.getParts(null);
        assertNotNull(parts);
        assertEquals(0, parts.length);

        parts = ia.getParts("foo");
        assertNotNull(parts);
        assertEquals(2, parts.length);
        assertEquals("A", parts[0]);
        assertEquals("B", parts[1]);