Package org.syncany.tests.util

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


    // Run
   
    // Prepare, create file at A, sync it to B
    clientA.createNewFile("A-file1");
    clientA.sync();   
    clientB.sync();
       
    // Now move file, and sync
    clientA.moveFile("A-file1", "A-file-moved1");
    clientA.up();
   
View Full Code Here


    clientB.createNewFile("A-moved"); // << same as above
    clientB.down();
    assertConflictingFileExists("A-moved", clientB.getLocalFilesExcludeLockedAndNoRead());

    // Sync them
    clientB.sync();   
    clientA.sync();
    assertFileListEquals(clientA.getLocalFilesExcludeLockedAndNoRead(), clientB.getLocalFilesExcludeLockedAndNoRead());
    assertSqlDatabaseEquals(clientA.getDatabaseFile(), clientB.getDatabaseFile());   
   
    // Tear down
View Full Code Here

    clientB.moveFile("A-original", "B-moved");
    clientB.down();
    assertFalse("File A-orginal should not be recreated.", clientB.getLocalFile("A-original").exists());

    // Sync them
    clientB.sync();   
    clientA.sync();
    assertFalse("File A-orginal should not be recreated.", clientA.getLocalFile("A-original").exists());
    assertFalse("File A-orginal should not be recreated.", clientB.getLocalFile("A-original").exists());
    assertFileListEquals(clientA.getLocalFilesExcludeLockedAndNoRead(), clientB.getLocalFilesExcludeLockedAndNoRead());
    assertSqlDatabaseEquals(clientA.getDatabaseFile(), clientB.getDatabaseFile());   
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.