Пример #1
0
  private void migrateExample(String datasetName) throws IOException {
    File testBaseDir = new File("target/test/" + datasetName);
    if (testBaseDir.exists()) {
      FileUtils.deleteDirectory(testBaseDir);
    }
    testBaseDir.mkdirs();
    testBaseDir = testBaseDir.getCanonicalFile();

    File outputVfsRepository = new File(testBaseDir, "outputVfs");

    app.migrate(
        "-r", "drools-wb-jcr2vfs-migration-another",
        "-i", getClass().getResource(datasetName + ".jcr").getFile(),
        "-o", outputVfsRepository.getCanonicalPath());
  }
Пример #2
0
 @AfterClass
 public static void shutdown() {
   app.shutdown();
 }
Пример #3
0
 @BeforeClass
 public static void setup() {
   app.startUp();
 }