Package org.syncany.tests.util

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


      assertTrue(clientA.getLocalFile("file" + i).exists());
      assertTrue(clientB.getLocalFile("file" + i).exists());
    }
   
    clientA.deleteTestData()
    clientB.deleteTestData();
  }
}
View Full Code Here


    clientA2.down();   
    assertFileListEquals(clientA1.getLocalFilesExcludeLockedAndNoRead(), clientA2.getLocalFilesExcludeLockedAndNoRead());
   
    // Cleanup
    clientA1.deleteTestData();
    clientA2.deleteTestData();
  }
 
  @Test
  public void testSingleFileNewNoConflicts() throws Exception {
    // Setup
View Full Code Here

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

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

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

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

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

    clientMOM.down(); // <<<<<<<< This should produce Pim's stack trace from issue #227

    // Tear down
    clientIH.deleteTestData();
    clientMOM.deleteTestData();
    clientHSE.deleteTestData();
  }

  @Test
  public void testIssue227_IH() throws Exception {
    // Setup
View Full Code Here

    // Tear down
    clientIH.deleteTestData();
    clientMOM.deleteTestData();
    clientHSE.deleteTestData();
    clientMee.deleteTestData();
  }


  @Test
  public void testIssue227_multiple_resolve() throws Exception {
View Full Code Here

    for (PartialFileHistory fileHistory : lsOperationResult.getFileVersions().values()) {
      assertTrue(fileHistory.getFileVersion(2).getPath().endsWith(fileHistory.getFileVersion(1).getPath()));
    }

    // Tear down
    clientA.deleteTestData();
  }
}
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.