Examples of deleteTestData()


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

        return name.contains("temp-");
      }
    }).length);

    // Tear down
    clientA.deleteTestData();
  }

  @Test
  public void testUnreliableUpload_Test4_3_FailsAtTXCommitDuring2ndMultiChunkMoveAndDuringTXRollback() throws Exception {
    /*
 
View Full Code Here

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

    assertEquals(0, new File(testConnection.getPath() + "/actions/").listFiles().length); // cleaned
    assertEquals(0, new File(testConnection.getPath() + "/transactions/").listFiles().length);
    assertEquals(4, new File(testConnection.getPath() + "/temporary/").listFiles().length); // cleaned

    // Tear down
    clientA.deleteTestData();
  }

}
View Full Code Here

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

    assertTrue("Local symlink file should be a SYMLINK.", FileUtil.isSymlink(localSymlinkFile));
    assertEquals("Local symlink file should point to actual target.", "/etc/hosts", FileUtil.readSymlinkTarget(localSymlinkFile));

    // Tear down
    clientA.deleteTestData();
    clientB.deleteTestData();
  }

  @Test
  public void testSymlinkMultipleUpsAndDowns() throws Exception {
    if (!EnvironmentUtil.symlinksSupported()) {
View Full Code Here

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

    assertTrue("Local symlink file should be a SYMLINK.", FileUtil.isSymlink(localSymlinkFile));
    assertEquals("Local symlink file should point to actual target.", "symlink-target", FileUtil.readSymlinkTarget(localSymlinkFile));

    // Tear down
    clientA.deleteTestData();
    clientB.deleteTestData();
  }

  @Test
  public void testSymlinkSyncToNonExistingFolder() throws Exception {
    if (!EnvironmentUtil.symlinksSupported()) {
View Full Code Here

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

    assertTrue(FileUtil.exists(clientB.getLocalFile("folder1/symlink-name")));
    assertFileListEquals(clientA.getLocalFilesExcludeLockedAndNoRead(), clientB.getLocalFilesExcludeLockedAndNoRead());

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

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

    clientA.down(); // double-down, has caused problems   
    assertFileListEquals("No change in file lists expected. Nothing changed", beforeSyncDownFileList, clientA.getLocalFilesExcludeLockedAndNoRead());        
   
    // Tear down
    clientA.deleteTestData();
    clientB.deleteTestData();
  }
}
View Full Code Here

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

    clientB.down();
    assertFileEquals(clientA.getLocalFile("folder"), clientB.getLocalFile("folder"));   
   
    // Cleanup
    clientA.deleteTestData();
    clientB.deleteTestData();
  }   
 
  @Test
  public void testFolderEmptyMoveNoConflicts() throws Exception {
    // Setup
View Full Code Here

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

    assertFileEquals(clientA.getLocalFile("moved"), clientB.getLocalFile("moved"))
    assertFileListEquals(clientA.getLocalFilesExcludeLockedAndNoRead(), clientB.getLocalFilesExcludeLockedAndNoRead());
   
    // Cleanup
    clientA.deleteTestData();
    clientB.deleteTestData();
  }     
 
  @Test
  public void testFolderEmptyDeleteNoConflicts() throws Exception {
    // Setup
View Full Code Here

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

    assertFalse("Deleted folder should not exist.", clientA.getLocalFile("folder").exists());   
    assertFileListEquals(clientA.getLocalFilesExcludeLockedAndNoRead(), clientB.getLocalFilesExcludeLockedAndNoRead());
   
    // Cleanup
    clientA.deleteTestData();
    clientB.deleteTestData();
 
 
  @Test
  public void testFolderNonEmptyNewNoConflicts() throws Exception {
    // Setup
View Full Code Here

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

    assertFileEquals(clientA.getLocalFile("folder/file"), clientB.getLocalFile("folder/file"));
    assertFileListEquals(clientA.getLocalFilesExcludeLockedAndNoRead(), clientB.getLocalFilesExcludeLockedAndNoRead());
   
    // Cleanup
    clientA.deleteTestData();
    clientB.deleteTestData();
  }   
 
  @Test
  public void testFolderNonEmptyMove1NoConflicts() 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.