Ejemplo n.º 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());
  }
Ejemplo n.º 2
0
 @AfterClass
 public static void shutdown() {
   app.shutdown();
 }
Ejemplo n.º 3
0
 @BeforeClass
 public static void setup() {
   app.startUp();
 }