Пример #1
0
  /** 同じ名前のファイルとディレクトリがあった場合のテスト:時刻違いのファイル比較付き。 doCompare(), compareTouchList(), doExecute() */
  @Test
  public void testSimpleDir2() throws Exception {
    BackuperEx target = prepareSimple();

    target.compareTouchList(System.out);

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

    assertDirectory(
        new File(tempdir.getRoot(), "b"),
        new String[][] {
          {"1", "1"},
          {"2", "2"},
          {"4/1", "4/1"},
          {"5", "5"},
          {"6/1", "6/1"},
          {"6/2", "6/2"},
        });
  }