Examples of moveFile()


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

    clientB.down();
    assertFileListEquals(clientA.getLocalFilesExcludeLockedAndNoRead(), clientB.getLocalFilesExcludeLockedAndNoRead());
    assertSqlDatabaseEquals(clientA.getDatabaseFile(), clientB.getDatabaseFile());
   
    clientB.moveFile("A-file1.jpg", "A-file1-moved.jpg");
    clientB.moveFile("A-file1-with-different-modified-date.jpg", "A-file1-with-different-modified-date-moved.jpg");       
    clientB.up();
   
    TestSqlDatabase clientDatabaseB = clientB.loadLocalDatabase();
   
    PartialFileHistory file1Orig = clientDatabaseB.getFileHistoryWithFileVersions("A-file1-moved.jpg");
View Full Code Here

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

    // A moves, and up
    clientA.deleteFile("A-original");
    clientA.up();
   
    // B deletes, then down; this should not fail or throw exceptions
    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();   
View Full Code Here

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

    clientA.up();
   
    clientB.down();
    assertFileEquals(clientA.getLocalFile("file"), clientB.getLocalFile("file"));
   
    clientB.moveFile("file", "moved");
    clientB.up();
   
    clientA.down();
    assertFalse("Originally moved file should not exist.", clientA.getLocalFile("file").exists());
    assertFileEquals(clientA.getLocalFile("moved"), clientB.getLocalFile("moved"));
View Full Code Here

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

    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();
   
    // A just upped, so there should not be changes.
    assertFalse(clientA.status().getChangeSet().hasChanges());
   
View Full Code Here

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

   
    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.