Package ai.test.TestProject

Examples of ai.test.TestProject.ProjectFile


    performTest(pf.getCFG("Boxing", "unboxingVariableDeclaration20"));
  }
 
  @Test
  public void testUnboxingArrayAccess() throws CoreException {
    ProjectFile pf = project.openFile("domain.intervals", "Boxing.java");
    performTest(pf.getCFG("Boxing", "unboxingArrayAccess01"));
  }
View Full Code Here


    performTest(pf.getCFG("Various", "tryCatchFinally06"));
  }
 
  @Test
  public void testSwitch() throws CoreException {
    ProjectFile pf = project.openFile("domain.commons", "BooleanSwitch.java");
    performTest(pf.getCFG("BooleanSwitch", "switchVariableDef01"));
   
    performTest(pf.getCFG("BooleanSwitch", "switchEnumExprExecuteOnce01"));
    performTest(pf.getCFG("BooleanSwitch", "switchEnumExprExecuteOnce02"));
    performTest(pf.getCFG("BooleanSwitch", "switchEnumExprExecuteOnce03"));
    performTest(pf.getCFG("BooleanSwitch", "switchEnumExprExecuteOnce04"));
   
    performTest(pf.getCFG("BooleanSwitch", "switchIntExprExecuteOnce01"));
    performTest(pf.getCFG("BooleanSwitch", "switchIntExprExecuteOnce02"));
    performTest(pf.getCFG("BooleanSwitch", "switchIntExprExecuteOnce03"));
    performTest(pf.getCFG("BooleanSwitch", "switchIntExprExecuteOnce04"));

    pf = project.openFile("domain.commons", "IntegerSwitch.java");
    performTest(pf.getCFG("IntegerSwitch", "switchEnumExprExecuteOnce01"));
    performTest(pf.getCFG("IntegerSwitch", "switchEnumExprExecuteOnce02"));
    performTest(pf.getCFG("IntegerSwitch", "switchEnumExprExecuteOnce03"));
    performTest(pf.getCFG("IntegerSwitch", "switchEnumExprExecuteOnce04"));
   
    performTest(pf.getCFG("IntegerSwitch", "switchIntExprExecuteOnce01"));
    performTest(pf.getCFG("IntegerSwitch", "switchIntExprExecuteOnce02"));
    performTest(pf.getCFG("IntegerSwitch", "switchIntExprExecuteOnce03"));
    performTest(pf.getCFG("IntegerSwitch", "switchIntExprExecuteOnce04"));
  }
View Full Code Here

    performTest(pf.getCFG("Boxing", "unboxingArrayAccess01"));
  }

  @Test
  public void testUnboxingAssignment() throws CoreException {
    ProjectFile pf = project.openFile("domain.intervals", "Boxing.java");
    performTest(pf.getCFG("Boxing", "unboxingAssignment01"));
    performTest(pf.getCFG("Boxing", "unboxingAssignment02"));
    performTest(pf.getCFG("Boxing", "unboxingAssignment03"));
    performTest(pf.getCFG("Boxing", "unboxingAssignment04"));
    performTest(pf.getCFG("Boxing", "unboxingAssignment05"));
    performTest(pf.getCFG("Boxing", "unboxingAssignment06"));
    performTest(pf.getCFG("Boxing", "unboxingAssignment07"));
    performTest(pf.getCFG("Boxing", "unboxingAssignment08"));
  }
View Full Code Here

    performTest(pf.getCFG("Boxing", "unboxingAssignment08"));
  }

  @Test
  public void testUnboxingInfix() throws CoreException {
    ProjectFile pf = project.openFile("domain.intervals", "Boxing.java");
    performTest(pf.getCFG("Boxing", "unboxingInfix01"));
    performTest(pf.getCFG("Boxing", "unboxingInfix02"));
    performTest(pf.getCFG("Boxing", "unboxingInfix03"));
  }
View Full Code Here

    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("Boxing", "unboxingInfix03"));
  }

  @Test
  public void testUnboxingMethodInvocation() throws CoreException {
    ProjectFile pf = project.openFile("domain.intervals", "Boxing.java");
    performTest(pf.getCFG("Boxing", "unboxingMethodInvocation01"));
  }
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("Boxing", "unboxingMethodInvocation01"));
  }

  @Test
  public void testUnboxingSimpleName() throws CoreException {
    ProjectFile pf = project.openFile("domain.intervals", "Boxing.java");
    performTest(pf.getCFG("Boxing", "unboxingSimpleName01"));
  }
View Full Code Here

    performTest(pf.getCFG("Boxing", "unboxingSimpleName01"));
  }

  @Test
  public void testUnboxingPrefixExpression() throws CoreException {
    ProjectFile pf = project.openFile("domain.intervals", "Boxing.java");
    performTest(pf.getCFG("Boxing", "unboxingPrefix01"));
  }
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"));
   
    pf = project.openFile("domain.commons", "ConditionalExpressionNoInervalComparison.java");
    performTest(pf.getCFG("ConditionalExpressionNoInervalComparison", "booleanResult03"));

    pf = project.openFile("domain.commons", "ConditionalExpression.java");
    performTest(pf.getCFG("ConditionalExpression", "integerResult01"));
    performTest(pf.getCFG("ConditionalExpression", "integerResult02"));
    performTest(pf.getCFG("ConditionalExpression", "integerResult03"));
 
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.