Package org.eclipse.jdt.core.dom

Examples of org.eclipse.jdt.core.dom.MethodDeclaration


    int z = 9;
  }

  @Test
  public void hasBodyTest() throws Exception {
    MethodDeclaration decl = methods.get("hasBody");
    Assert.assertTrue(CFGTestUtils.testAndCompareCFG(decl));
  }
View Full Code Here


    methods = CFGTestUtils.createMethodNameMap(compUnit);
  }

  @Test
  public void simpleReturningTest() throws Exception {
    MethodDeclaration decl = methods.get("simpleReturning");
    Assert.assertTrue(CFGTestUtils.testAndCompareCFG(decl));
  }
View Full Code Here

    }
  }

  @Test
  public void simpleTest() throws Exception {
    MethodDeclaration decl = methods.get("simple");
    Assert.assertTrue(CFGTestUtils.testAndCompareCFG(decl));
  }
View Full Code Here

    }
  }

  @Test
  public void simpleFinallyTest() throws Exception {
    MethodDeclaration decl = methods.get("simpleFinally");
    Assert.assertTrue(CFGTestUtils.testAndCompareCFG(decl));
  }
View Full Code Here

    }
  }

  @Test
  public void simpleFinallyReturningTest() throws Exception {
    MethodDeclaration decl = methods.get("simpleFinallyReturning");
    Assert.assertTrue(CFGTestUtils.testAndCompareCFG(decl));
  }
View Full Code Here

    }
  }

  @Test
  public void catchThrowsWithFinallyTest() throws Exception {
    MethodDeclaration decl = methods.get("catchThrowsWithFinally");
    Assert.assertTrue(CFGTestUtils.testAndCompareCFG(decl));
  }
View Full Code Here

    }
  }

  @Test
  public void nestTryFinallyTest() throws Exception {
    MethodDeclaration decl = methods.get("nestTryFinally");
    Assert.assertTrue(CFGTestUtils.testAndCompareCFG(decl));
  }
View Full Code Here

  }

  @Test
  public void catchUsingExceptionTest() throws Exception {
    MethodDeclaration decl = methods.get("catchUsingException");
    Assert.assertTrue(CFGTestUtils.testAndCompareCFG(decl));
  }
View Full Code Here

    throw new IOException();
  }

  @Test
  public void finallyHasTryTest() throws Exception {
    MethodDeclaration decl = methods.get("finallyHasTry");
    Assert.assertTrue(CFGTestUtils.testAndCompareCFG(decl));
  }
View Full Code Here

    }
  }

  @Test
  public void runtimeExpTest() throws Exception {
    MethodDeclaration decl = methods.get("runtimeExp");
    Assert.assertTrue(CFGTestUtils.testAndCompareCFG(decl));
  }
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.core.dom.MethodDeclaration

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.