Package ai.test.TestProject

Examples of ai.test.TestProject.ProjectFile


    testAllMethods("domain.commons.constructor", "SuperConstructorInvocation03.java");
  }

  @Test
  public void testAssignToField() throws CoreException {
    ProjectFile pf = project.openFile("domain.commons", "Various.java");
    performTest(pf.getCFG("Various", "assignToField01"));
    performTest(pf.getCFG("Various", "assignToField02"));
  }
View Full Code Here


    performTest(pf.getCFG("Various", "assignToField02"));
  }

  @Test
  public void testEnhancedFor() throws CoreException {
    ProjectFile pf = project.openFile("domain.commons", "Various.java");
    performTest(pf.getCFG("Various", "enhancedFor01"));
    performTest(pf.getCFG("Various", "enhancedFor02"));
    performTest(pf.getCFG("Various", "enhancedFor03"));
 
View Full Code Here

    performTest(pf.getCFG("Various", "enhancedFor03"));
 

  @Test
  public void testConditionalExpression() throws CoreException {
    ProjectFile pf = project.openFile("domain.commons", "ConditionalExpression.java");
    performTest(pf.getCFG("ConditionalExpression", "notInterestingResultAndCondition01"));
    performTest(pf.getCFG("ConditionalExpression", "notInterestingResultAndCondition02"));
    performTest(pf.getCFG("ConditionalExpression", "notInterestingResultAndCondition03"));
    performTest(pf.getCFG("ConditionalExpression", "notInterestingResultAndCondition04"));
    performTest(pf.getCFG("ConditionalExpression", "notInterestingResultAndCondition05"));
    performTest(pf.getCFG("ConditionalExpression", "notInterestingResultAndCondition06"));
    performTest(pf.getCFG("ConditionalExpression", "notInterestingResultAndCondition07"));
    performTest(pf.getCFG("ConditionalExpression", "notInterestingResultAndCondition08"));
    performTest(pf.getCFG("ConditionalExpression", "notInterestingResultAndCondition09"));
    performTest(pf.getCFG("ConditionalExpression", "notInterestingResultAndCondition10"));
    performTest(pf.getCFG("ConditionalExpression", "notInterestingResultAndCondition11"));

    performTest(pf.getCFG("ConditionalExpression", "booleanResult01"));
    performTest(pf.getCFG("ConditionalExpression", "booleanResult02"));
    performTest(pf.getCFG("ConditionalExpression", "booleanResult03"));

    performTest(pf.getCFG("ConditionalExpression", "integerResult01"));
    performTest(pf.getCFG("ConditionalExpression", "integerResult02"));
    performTest(pf.getCFG("ConditionalExpression", "integerResult03"));
 
View Full Code Here

    testIntervals(cfg);
  }

  @Test
  public void testNewVariables() throws CoreException{
    ProjectFile pf = project.openFile("domain.intervals", "Variables.java");
    performTest(pf.getCFG("Variables", "initialValues"));
    performTest(pf.getCFG("Variables", "byteVariableWithSimpleAssignment"));
    performTest(pf.getCFG("Variables", "shortVariableWithSimpleAssignment"));
    performTest(pf.getCFG("Variables", "intVariableWithSimpleAssignment"));
    performTest(pf.getCFG("Variables", "longVariableWithSimpleAssignment1"));
    performTest(pf.getCFG("Variables", "longVariableWithSimpleAssignment2"));
    performTest(pf.getCFG("Variables", "floatVariableWithSimpleAssignment1"));
    performTest(pf.getCFG("Variables", "floatVariableWithSimpleAssignment2"));
    performTest(pf.getCFG("Variables", "doubleVariableWithSimpleAssignment"));
  }
View Full Code Here

  }
 
  // ---------- BLOCK VARIABLES HANDLING ----------------
  @Test
  public void testBlockVariablesHandling() {
    ProjectFile pf = project.openFile("cfg", "VariableBlock.java");
    TestCommentData.parseComments(pf.getCFG("VariableBlock", "methodBody"));
    TestCommentData.parseComments(pf.getCFG("VariableBlock", "statementIf"));
  }
View Full Code Here

    TestCommentData.parseComments(project.getControlFlowGraph("cfg", "Return.java", "Return:simpleReturn"));
  }

  @Test
  public void testReturnIf() {
    ProjectFile pf = project.openFile("cfg", "Return.java");
    TestCommentData.parseComments(pf.getCFG("Return", "returnFromIf01"));
    TestCommentData.parseComments(pf.getCFG("Return", "returnFromIf02"));
  }
View Full Code Here

 
  // ------------------------------- ENHANCED FOR ------------------------------------
 
  @Test
  public void testEnhancedFor() {
    ProjectFile pf = project.openFile("cfg", "EnhancedFor.java");
    TestCommentData.parseComments(pf.getCFG("EnhancedFor", "enhancedForArray01"));
    TestCommentData.parseComments(pf.getCFG("EnhancedFor", "enhancedForArray02"));
    TestCommentData.parseComments(pf.getCFG("EnhancedFor", "enhancedForCollection01"));
    TestCommentData.parseComments(pf.getCFG("EnhancedFor", "enhancedForCollection02"));
  }
View Full Code Here

    TestCommentData.parseComments(pf.getCFG("EnhancedFor", "enhancedForCollection02"));
  }

  @Test
  public void testEnhancedForWithBreak() {
    ProjectFile pf = project.openFile("cfg", "EnhancedFor.java");
    TestCommentData.parseComments(pf.getCFG("EnhancedFor", "enhancedForArrayWithBreak01"));
    TestCommentData.parseComments(pf.getCFG("EnhancedFor", "enhancedForCollectionWithBreak01"));
  }
View Full Code Here

    TestCommentData.parseComments(pf.getCFG("EnhancedFor", "enhancedForCollectionWithBreak01"));
  }

  @Test
  public void testEnhancedForWithContinue() {
    ProjectFile pf = project.openFile("cfg", "EnhancedFor.java");
    TestCommentData.parseComments(pf.getCFG("EnhancedFor", "enhancedForArrayWithContinue01"));
    TestCommentData.parseComments(pf.getCFG("EnhancedFor", "enhancedForCollectionWithContinue01"));
  }
View Full Code Here

  // ------------------------- Constructor invocation --------------------------------
 
  @Test
  public void testConstructorInvocation() {
    ProjectFile pf = project.openFile("cfg", "ConstructorInvocation.java");
    for(MethodControlFlowGraph cfg: pf.getAllMethodGraphs()){
      TestCommentData.parseComments(cfg);
    }
  }
View Full Code Here

TOP

Related Classes of ai.test.TestProject.ProjectFile

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.