コード例 #1
0
  protected void setUp() throws Exception {
    super.setUp();
    _simpleTeam =
        getCompilationUnit(getTestProjectDir(), "src", "parameterMapping.teampkg", "MyTeam.java");

    _parser = ASTParser.newParser(JAVA_LANGUAGE_SPEC_LEVEL);
    _parser.setProject(super.getJavaProject(TEST_PROJECT));
    _parser.setSource(_simpleTeam);

    ASTNode root = _parser.createAST(new NullProgressMonitor());
    CompilationUnit compUnit = (CompilationUnit) root;
    _typeDecl = (TypeDeclaration) compUnit.types().get(0);
    _role = _typeDecl.getTypes()[0];
  }
コード例 #2
0
 public void setUpSuite() throws Exception {
   setTestProjectDir(TEST_PROJECT);
   super.setUpSuite();
 }