Beispiel #1
0
  public static void deleteTestLocalConfigAndData(Config config) {
    TestFileUtil.deleteDirectory(config.getLocalDir());
    TestFileUtil.deleteDirectory(config.getCacheDir());
    TestFileUtil.deleteDirectory(config.getDatabaseDir());

    if (config.getAppDir() != null) {
      TestFileUtil.deleteDirectory(config.getAppDir());
    }

    // TODO [low] workaround: delete empty parent folder of getAppDir() --> ROOT/app/.. --> ROOT/
    config.getLocalDir().getParentFile().delete(); // if empty!

    deleteTestLocalConnection(config);
  }
Beispiel #2
0
 private static void deleteTestLocalConnection(Config config) {
   LocalConnection connection = (LocalConnection) config.getConnection();
   TestFileUtil.deleteDirectory(connection.getRepositoryPath());
 }