Package testGenerator.testMethodModel

Examples of testGenerator.testMethodModel.ParamBinding


    {
        //Construct void method
        AutoJUnitMethod voidMethod = new AutoJUnitMethod();
        voidMethod.returnType = "void";
        voidMethod.name = "voidMethod";
        voidMethod.params.add(new ParamBinding("int", "var1"));
        voidMethod.params.add(new ParamBinding("int", "var2"));

        TestPath branch = new TestPath();
        branch.constructor = "new TestClass();";

        branch.additionalConstraints = "System.out.println('Test');";
View Full Code Here


    {
        //Construct non void method
        AutoJUnitMethod nonVoid = new AutoJUnitMethod();
        nonVoid.returnType = "int";
        nonVoid.name = "nonVoidMethod";
        nonVoid.params.add(new ParamBinding("int", "var1"));
        nonVoid.params.add(new ParamBinding("int", "var2"));

        TestPath branch = new TestPath();
        branch.constructor = "new TestClass();";

        branch.additionalConstraints = "System.out.println('Test');";
View Full Code Here

        //Construct non void method
        AutoJUnitMethod nonVoid = new AutoJUnitMethod();
        nonVoid.addModifier("static");
        nonVoid.returnType = "int";
        nonVoid.name = "nonVoidMethod";
        nonVoid.params.add(new ParamBinding("int", "var1"));
        nonVoid.params.add(new ParamBinding("int", "var2"));

        TestPath branch = new TestPath();
        branch.constructor = "new TestClass();";

        branch.additionalConstraints = "System.out.println('Test');";
View Full Code Here

        //Construct void method
        AutoJUnitMethod voidMethod = new AutoJUnitMethod();
        voidMethod.addModifier("static");
        voidMethod.returnType = "void";
        voidMethod.name = "voidMethod";
        voidMethod.params.add(new ParamBinding("int", "var1"));
        voidMethod.params.add(new ParamBinding("int", "var2"));

        TestPath branch = new TestPath();
        branch.constructor = "new TestClass();";

        branch.additionalConstraints = "System.out.println('Test');";
View Full Code Here

    }

    @Override
    public void addParam(String type, String id)
    {
        this.params.add(new ParamBinding(type, id));
    }
View Full Code Here

TOP

Related Classes of testGenerator.testMethodModel.ParamBinding

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.