Package org.eclipse.jdt.core.dom

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


    methods = CFGTestUtils.createMethodNameMap(compUnit);
  }

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


      a = 3;
  }

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

    }
  }

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

      return b;
  }

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

    methods = CFGTestUtils.createMethodNameMap(compUnit);
  }

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

  public void completelyEmpty() {}

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

    public abstract void abstractMethod();
  }

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

  public void withParams(String str, int a) {}

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

  public void throwsExceptions(String str, int a) throws IOException {}

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

  public void throwsExceptionsNoParams() throws IOException {}

  @Test
  public void varsTest() throws Exception {
    MethodDeclaration decl = methods.get("vars");
    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.