Esempio n. 1
0
 private void copyData(String destPath, String srcPath) throws Exception {
   File sourceFolder = TestUtil.getPluginRelativeFolder(srcPath);
   File destFolder =
       new File(myProject.getProject().getLocation().toString() + "/" + destPath); // $NON-NLS-1$
   destFolder.mkdirs();
   FileUtil.copyFolder(sourceFolder, destFolder);
   myProject.getProject().refreshLocal(IResource.DEPTH_INFINITE, null);
 }
Esempio n. 2
0
  private void checkLibrary(Library library) {
    File libFile = new File(getDestinationFolder(), library.getName());
    TestUtil.assertPersistableAST(
        QvtOperationalStdLibrary.INSTANCE.getStdLibModule(),
        URI.createURI(libFile.toURI().toString(), true)); // $NON-NLS-1$

    assertTrue(
        "library file " + libFile + " must have been saved", libFile.exists()); // $NON-NLS-1$	
  }