Package org.evolizer.core.util.projecthandling

Examples of org.evolizer.core.util.projecthandling.JavaProjectHelper.addSourceFile()


   
        helper.addSourceFile("testPackage.ae", "SimpleTemplate.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/ae/SimpleTemplate.java")), null);
        helper.addSourceFile("testPackage.ae", "UseTemplates.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/ae/UseTemplates.java")), null);
        helper.addSourceFile("testPackage", "IBase.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/IBase.java")), null);
        helper.addSourceFile("testPackage", "Base.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/Base.java")), null);
        helper.addSourceFile("testPackage.ae", "IImplementTemplate.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/ae/IImplementTemplate.java")), null);
        helper.addSourceFile("testPackage.ae", "ImplementTemplate.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/ae/ImplementTemplate.java")), null);
    }

    @Test
    public void testModelContainer() {
View Full Code Here


        helper.addSourceFile("testPackage.ae", "SimpleTemplate.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/ae/SimpleTemplate.java")), null);
        helper.addSourceFile("testPackage.ae", "UseTemplates.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/ae/UseTemplates.java")), null);
        helper.addSourceFile("testPackage", "IBase.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/IBase.java")), null);
        helper.addSourceFile("testPackage", "Base.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/Base.java")), null);
        helper.addSourceFile("testPackage.ae", "IImplementTemplate.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/ae/IImplementTemplate.java")), null);
        helper.addSourceFile("testPackage.ae", "ImplementTemplate.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/ae/ImplementTemplate.java")), null);
    }

    @Test
    public void testModelContainer() {
        // output all entities and source anchors
View Full Code Here

    JavaProjectHelper helper = new JavaProjectHelper();
    helper.createProject("TestProject1", "bin", null);
    helper.addStandartSourceFolder(null);
    helper.addPackage("testPackage", null);
   
    helper.addSourceFile("testPackage", "Base.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/Base.java")), null);
    helper.addSourceFile("testPackage", "IBase.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/IBase.java")), null);
    helper.addSourceFile("testPackage", "InnerAnonym.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/InnerAnonym.java")), null);
    helper.addSourceFile("testPackage", "Sum.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/Sum.java")), null);
    helper.addSourceFile("testPackage", "Variables.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/Variables.java")), null);
  }
View Full Code Here

    helper.createProject("TestProject1", "bin", null);
    helper.addStandartSourceFolder(null);
    helper.addPackage("testPackage", null);
   
    helper.addSourceFile("testPackage", "Base.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/Base.java")), null);
    helper.addSourceFile("testPackage", "IBase.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/IBase.java")), null);
    helper.addSourceFile("testPackage", "InnerAnonym.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/InnerAnonym.java")), null);
    helper.addSourceFile("testPackage", "Sum.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/Sum.java")), null);
    helper.addSourceFile("testPackage", "Variables.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/Variables.java")), null);
  }
 
View Full Code Here

    helper.addStandartSourceFolder(null);
    helper.addPackage("testPackage", null);
   
    helper.addSourceFile("testPackage", "Base.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/Base.java")), null);
    helper.addSourceFile("testPackage", "IBase.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/IBase.java")), null);
    helper.addSourceFile("testPackage", "InnerAnonym.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/InnerAnonym.java")), null);
    helper.addSourceFile("testPackage", "Sum.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/Sum.java")), null);
    helper.addSourceFile("testPackage", "Variables.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/Variables.java")), null);
  }
 
  protected static void setUpProject2() throws CoreException, IOException{
View Full Code Here

    helper.addPackage("testPackage", null);
   
    helper.addSourceFile("testPackage", "Base.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/Base.java")), null);
    helper.addSourceFile("testPackage", "IBase.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/IBase.java")), null);
    helper.addSourceFile("testPackage", "InnerAnonym.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/InnerAnonym.java")), null);
    helper.addSourceFile("testPackage", "Sum.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/Sum.java")), null);
    helper.addSourceFile("testPackage", "Variables.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/Variables.java")), null);
  }
 
  protected static void setUpProject2() throws CoreException, IOException{
    JavaProjectHelper helper = new JavaProjectHelper();
View Full Code Here

   
    helper.addSourceFile("testPackage", "Base.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/Base.java")), null);
    helper.addSourceFile("testPackage", "IBase.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/IBase.java")), null);
    helper.addSourceFile("testPackage", "InnerAnonym.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/InnerAnonym.java")), null);
    helper.addSourceFile("testPackage", "Sum.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/Sum.java")), null);
    helper.addSourceFile("testPackage", "Variables.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/Variables.java")), null);
  }
 
  protected static void setUpProject2() throws CoreException, IOException{
    JavaProjectHelper helper = new JavaProjectHelper();
    helper.createProject("TestProject2", "bin", null);
View Full Code Here

    JavaProjectHelper helper = new JavaProjectHelper();
    helper.createProject("TestProject2", "bin", null);
    helper.addStandartSourceFolder(null);
    helper.addPackage("testPackage.ae", null);
   
    helper.addSourceFile("testPackage.ae", "Test.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/ae/Test.java")), null);
  }

  @Test
  public void testModelContainer(){
    assertNotNull(aModel);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.