Package org.syncany.tests.util

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


    // 7. This should remove DIRTY database versions from the database
    //    and ADD the multichunks from the previous database versions to the new database version (<< this is what kills MOM)
    clientIH.up(upOptionsWithForce);

    clientIHtwo.up(upOptionsWithForce);

    /*clientIH.down();
    clientIH.copyFile("file2.jpg", "file2copy.jpg"); // <<< This copies a file for which the filecontent has been deleted
    clientIH.up();*/

 
View Full Code Here


   
    // Create identical files
    clientA.createNewFile("folder/subfolder1/A-file1.jpg", 100);
    clientA.copyFile("folder/subfolder1/A-file1.jpg", "folder/subfolder2/A-file1.jpg");
   
    clientA.up();   
   
    // Move the two identical files
    clientA.moveFile("folder", "moved_folder");
    clientA.up();
   
View Full Code Here

   
    clientA.up();   
   
    // Move the two identical files
    clientA.moveFile("folder", "moved_folder");
    clientA.up();
   
    // A just upped, so there should not be changes.
    assertFalse(clientA.status().getChangeSet().hasChanges());
   
    // Check if the file histories were based on the correct originals
View Full Code Here

    clientB.down();
    assertFileListEquals(clientA.getLocalFilesExcludeLockedAndNoRead(), clientB.getLocalFilesExcludeLockedAndNoRead());
    assertSqlDatabaseEquals(clientA.getDatabaseFile(), clientB.getDatabaseFile());
   
    clientB.moveFile("A-folder1/A-subfolder1", "A-folder1/A-subfolder2/B-subsubfolder1");
    clientB.up();
   
    clientA.down();
    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.