Package testGenerator.testMethodModel

Examples of testGenerator.testMethodModel.AutoJUnitMethod


        assertEquals("JavaTestClass1", control.getClassName());

        //Check number of methods
        assertEquals(1, control.getMethods().size());

        AutoJUnitMethod method = control.getCurrMethod();

        //Check method name
        assertEquals("ifTest", method.name);

        //Check method return type
View Full Code Here


        assertEquals("JavaTestClass2", control.getClassName());

        //Check number of methods
        assertEquals(1, control.getMethods().size());

        AutoJUnitMethod method = control.getCurrMethod();

        //Check method name
        assertEquals("getVol", method.name);

        //Check method return type
View Full Code Here

        assertEquals("JavaTestClass3", control.getClassName());

        //Check number of methods
        assertEquals(1, control.getMethods().size());

        AutoJUnitMethod method = control.getCurrMethod();

        //Check method name
        assertEquals("getVol", method.name);

        //Check method return type
View Full Code Here

        assertEquals("JavaTestClass4", control.getClassName());

        //Check number of methods
        assertEquals(1, control.getMethods().size());

        AutoJUnitMethod method = control.getCurrMethod();

        //Check method name
        assertEquals("getVol", method.name);

        //Check method return type
View Full Code Here

        assertEquals("JavaTestClass5", control.getClassName());

        //Check number of methods
        assertEquals(1, control.getMethods().size());

        AutoJUnitMethod method = control.getCurrMethod();

        //Check method name
        assertEquals("getName", method.name);

        //Check method return type
View Full Code Here

        assertEquals("JavaTestClass6", control.getClassName());

        //Check number of methods
        assertEquals(1, control.getMethods().size());

        AutoJUnitMethod method = control.getCurrMethod();

        //Check method name
        assertEquals("getVersion", method.name);

        //Check method return type
        assertEquals("String", method.returnType);

        assertEquals(true, method.hasModifier("static"));

        //Check method params
        assertEquals(0, method.params.size());

        //Check test branches
View Full Code Here

        assertEquals("JavaTestClass7", control.getClassName());

        //Check number of methods
        assertEquals(3, control.getMethods().size());

        AutoJUnitMethod method = control.getCurrMethod();

        //Check method name
        assertEquals("JavaTestClass7", method.name);

        //Check method return type
View Full Code Here

        assertEquals("JavaTestClass8", control.getClassName());

        //Check number of methods
        assertEquals(1, control.getMethods().size());

        AutoJUnitMethod method = control.getCurrMethod();

        //Check method name
        assertEquals("method2", method.name);

        //Check method return type
        assertEquals("void", method.returnType);

        assertEquals(false, method.hasModifier("abstract"));

        //Check method params
        assertEquals(0, method.params.size());

        //Check test branches
View Full Code Here

        assertEquals("JavaTestClass9", control.getClassName());

        //Check number of methods
        assertEquals(1, control.getMethods().size());

        AutoJUnitMethod method = control.getCurrMethod();

        //Check method name
        assertEquals("testMethod", method.name);

        //Check method return type
View Full Code Here

    }

    private AutoJUnitMethod getVoidMethod()
    {
        //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"));
View Full Code Here

TOP

Related Classes of testGenerator.testMethodModel.AutoJUnitMethod

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.