Package org.syncany.tests.util

Examples of org.syncany.tests.util.TestClient.deleteTestData()


      assertTrue("Database file SHOULD exist: "+expectedDatabaseFile, expectedDatabaseFile.exists());
   
   
    // Tear down
    // TODO [medium] Test the content of these database files
    clientA.deleteTestData();   
  }
}
View Full Code Here


    assertFileListEquals(clientA.getLocalFilesExcludeLockedAndNoRead(), clientB.getLocalFilesExcludeLockedAndNoRead());
    assertSqlDatabaseEquals(clientA.getDatabaseFile(), clientB.getDatabaseFile());
   
    // Tear down
    clientA.deleteTestData();
    clientB.deleteTestData();
  }
}
View Full Code Here

    assertFileEquals(clientA.getLocalFile("File|\u0002|"), clientB.getLocalFile("File|\u0002|"));
    assertEquals(clientB.getLocalFile("File|\u0002|").length(), 100);

    // Tear down
    clientA.deleteTestData();
    clientB.deleteTestData();
  }
}
View Full Code Here

    assertFileListEquals(clientA.getLocalFilesExcludeLockedAndNoRead(), clientB.getLocalFilesExcludeLockedAndNoRead());
    assertSqlDatabaseEquals(clientA.getDatabaseFile(), clientB.getDatabaseFile());   
   
    // Tear down
    clientA.deleteTestData();
    clientB.deleteTestData();
  }
}
View Full Code Here

    assertFileListEquals(clientA.getLocalFilesExcludeLockedAndNoRead(), clientB.getLocalFilesExcludeLockedAndNoRead());
    assertSqlDatabaseEquals(clientA.getDatabaseFile(), clientB.getDatabaseFile());   
   
    // Tear down
    clientA.deleteTestData();
    clientB.deleteTestData();
  }
}
View Full Code Here

      assertEquals(LimitedDosFileAttributes.toString(expectedDosAttrs), LimitedDosFileAttributes.toString(actualDosAttrs));     
    }
   
    // Tear down
    clientA.deleteTestData();
    clientB.deleteTestData();
  }   
}
View Full Code Here

        StringUtil.toHex(TestFileUtil.createChecksum(clientA.getLocalFile("A-original (restored version 1)"))));
    assertEquals(deletedFile.lastModified(), clientA.getLocalFile("A-original (restored version 1)").lastModified());
    assertEquals(deletedFile.length(), clientA.getLocalFile("A-original (restored version 1)").length());
   
    // Tear down
    clientA.deleteTestData();
    TestFileUtil.deleteDirectory(tempDir);
  }
 
  @Test
  public void testRestoreDeletedFileWithTargetFile() throws Exception {
View Full Code Here

        StringUtil.toHex(TestFileUtil.createChecksum(clientA.getLocalFile("restored-file"))));
    assertEquals(deletedFile.lastModified(), clientA.getLocalFile("restored-file").lastModified());
    assertEquals(deletedFile.length(), clientA.getLocalFile("restored-file").length());
   
    // Tear down
    clientA.deleteTestData();
    TestFileUtil.deleteDirectory(tempDir);
  }
 
  @Test
  public void testRestoreDeletedWithSubfolders() throws Exception {
View Full Code Here

   
    assertTrue(clientA.getLocalFile("folder/subfolder").exists());
    assertTrue(clientA.getLocalFile("folder/subfolder/A-original (restored version 1)").exists());
   
    // Tear down
    clientA.deleteTestData();
    TestFileUtil.deleteDirectory(tempDir);
  }
}
View Full Code Here

    assertFileListEquals(clientA.getLocalFilesExcludeLockedAndNoRead(), clientB.getLocalFilesExcludeLockedAndNoRead());
    assertSqlDatabaseEquals(clientA.getDatabaseFile(), clientB.getDatabaseFile());
   
    // Tear down
    clientA.deleteTestData();
    clientB.deleteTestData();
 
 
  @Test
  public void testNewFileWithDifferingAttributes() throws Exception {   
    // Setup
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.