Package ai.test.TestProject

Examples of ai.test.TestProject.ProjectFile


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


 
  // ------------------------------ SWITCH -------------------------------------------
 
  @Test
  public void testSwitch() {
    ProjectFile pf = project.openFile("cfg", "Switch.java");
    TestCommentData.parseComments(pf.getCFG("Switch", "switch01"));
    TestCommentData.parseComments(pf.getCFG("Switch", "switch02"));
    TestCommentData.parseComments(pf.getCFG("Switch", "switch03"));
    TestCommentData.parseComments(pf.getCFG("Switch", "switch04"));
    TestCommentData.parseComments(pf.getCFG("Switch", "switch05"));
    TestCommentData.parseComments(pf.getCFG("Switch", "switch06"));
  }
View Full Code Here

  // ---------------------------------------------------------------------------------

  // ------------------------------ THROW -------------------------------------------
  @Test
  public void testThrow() {
    ProjectFile pf = project.openFile("cfg", "Throw.java");
    TestCommentData.parseComments(pf.getCFG("Throw", "throwCought01"));
    TestCommentData.parseComments(pf.getCFG("Throw", "throwCought02"));
    TestCommentData.parseComments(pf.getCFG("Throw", "throwCought03"));
    TestCommentData.parseComments(pf.getCFG("Throw", "throwUncought01"));
    TestCommentData.parseComments(pf.getCFG("Throw", "throwUncought02"));
  }
View Full Code Here

  // ---------------------------------------------------------------------------------

  // ------------------------------ SYNCHRONIZES -------------------------------------
  @Test
  public void testSynchronized() {
    ProjectFile pf = project.openFile("cfg", "Synchronized.java");
    TestCommentData.parseComments(pf.getCFG("Synchronized", "stmtSynchronized01"));
    TestCommentData.parseComments(pf.getCFG("Synchronized", "stmtSynchronized02"));
  }
View Full Code Here

  // --------------------------------------------------------------------------------- 
 
  // ------------------------------ Break -------------------------------------
  @Test
  public void testBreakWithoutLoop() {
    ProjectFile pf = project.openFile("cfg", "WeirdConstructions.java");
    TestCommentData.parseComments(pf.getCFG("WeirdConstructions", "breakBlock01"));
  }
View Full Code Here

    testBooleans(cfg);
  }

  @Test
  public void testVariableDeclaration() throws CoreException {
    ProjectFile pf = project.openFile("domain.booleans", "Boxing.java");
    performTest(pf.getCFG("Boxing", "unboxingVariableDeclaration01"));
    performTest(pf.getCFG("Boxing", "unboxingVariableDeclaration02"));
    performTest(pf.getCFG("Boxing", "unboxingVariableDeclaration03"));
    performTest(pf.getCFG("Boxing", "unboxingVariableDeclaration04"));
    performTest(pf.getCFG("Boxing", "unboxingVariableDeclaration05"));
    performTest(pf.getCFG("Boxing", "unboxingVariableDeclaration06"));
  }
View Full Code Here

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

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

  @Test
  public void testUnboxingAssignment() throws CoreException {
    ProjectFile pf = project.openFile("domain.booleans", "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"));
  }
View Full Code Here

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

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

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

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