Package testGenerator.testMethodModel

Examples of testGenerator.testMethodModel.TestCondition


    }

    @Override
    public void addDoWhileSlot(int level)
    {
        TestCondition cond = new TestCondition("??", EnumCondType.DOWHILE);
        doWhileCondtions.push(cond);
        this.addTestConditionAtLevel(cond, level);

    }
View Full Code Here


    }

    @Override
    public void addDoWhileCondition(String doWhileCond, int level)
    {
        TestCondition cond = doWhileCondtions.pop();

        cond.setCondtion("while: " + doWhileCond);
        addDoWhileConditionAtLevel("Not " + doWhileCond, level);
    }
View Full Code Here

     * @param condition
     * @param level
     */
    private void addTestConditionAtLevel(String condition, int level, EnumCondType type)
    {
        addTestConditionAtLevel(new TestCondition(condition, type), level);
    }
View Full Code Here

        doWhileCondtions = new Stack<TestCondition>();
    }

    private void addDefaultCondition()
    {
        TestCondition defaultCond = new TestCondition("Default", EnumCondType.DEFAULT);
        TestPath defaultBranch = new TestPath();
        defaultBranch.conditions.add(defaultCond);
        this.currBranchList.add(0, defaultBranch);
    }
View Full Code Here

        {
            CondColumn columnValues = condColumns.get(guiRowPosition);

            for (int guiColPosition = 0; guiColPosition < columnValues.getConds().size(); guiColPosition++)
            {
                TestCondition currTestCond = columnValues.getConds().get(guiColPosition);

                String vertex = currTestCond.getCondition();
                g.addVertex(vertex);

                positionVertexAt(vertex, guiColPosition * 200, guiRowPosition * 100);


 
View Full Code Here

    private void drawEdges(ArrayList<TestPath> testBranches)
    {
        for (TestPath path : testBranches)
        {
            TestCondition lastCond = null;
            for (TestCondition cond : path.conditions)
            {
                if (lastCond != null)
                {
                    g.addEdge(lastCond.getCondition(), cond.getCondition(), new MyEdge(lastCond.getCondition(),cond.getCondition()));
        

                }
                lastCond = cond;
            }
View Full Code Here

TOP

Related Classes of testGenerator.testMethodModel.TestCondition

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.