FileDocCategorySizeDatePackage
FlexIntegerTest.javaAPI DocApache Ant 1.702196Wed Dec 13 06:16:22 GMT 2006org.apache.tools.ant.types

FlexIntegerTest

public class FlexIntegerTest extends org.apache.tools.ant.BuildFileTest

Fields Summary
private org.apache.tools.ant.Project
taskProject
String
propName
private FlexInteger
value
Constructors Summary
public FlexIntegerTest(String name)

        super(name);
    
public FlexIntegerTest()
To make taskdef happy

        super("FlexIntegerTest");
    
Methods Summary
public voidexecute()

        if (propName == null || value == null) {
            throw new BuildException("name and value required");
        }

        taskProject.setNewProperty(propName, value.toString());
    
public voidsetProject(org.apache.tools.ant.Project project)

        taskProject = project;
    
public voidsetPropName(java.lang.String propName)

        this.propName = propName;
    
public voidsetUp()

        configureProject("src/etc/testcases/types/flexinteger.xml");
    
public voidsetValue(FlexInteger value)

        this.value = value;
    
public voidtestFlexInteger()

        executeTarget("test");
        assertEquals(project.getProperty("flexint.value1"), "10");
        assertEquals(project.getProperty("flexint.value2"), "8");