Пример #1
0
  /** ディレクトリ内のファイル移動があった場合のテスト:ディレクトリ違いのファイルの比較付き。 doCompare(), compareMoveList(), doExecute(); */
  @Test
  public void testMove2() throws Exception {
    File dir = tempdir.getRoot();
    BackuperEx target = prepareMove(dir);
    target.compareMoveList(System.out);

    System.out.println("----------------------------------------");
    target.doExecute(System.out);

    assertDirectory(
        new File(dir, "b"),
        new String[][] {
          {"1/1", "data 11"},
          {"1/2", "data 2222"},
          {"1/3", "data 333333"},
        });
  }