Package org.syncany.tests.util

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


    // A
    clientA.createNewFolder("folder1");   
    clientA.up();

    // B
    clientB.down();
    assertFileListEquals(clientA.getLocalFilesExcludeLockedAndNoRead(), clientB.getLocalFilesExcludeLockedAndNoRead());
   
    // A
    clientA.createNewFile("folder1/file1")
    clientA.up();
View Full Code Here


      clientA.changeFile("file.jpg");
      clientA.upWithForceChecksum();
    }

    // B: Sync down, add something
    clientB.down();

    // A: Add something
    clientA.changeFile("file.jpg");
    clientA.upWithForceChecksum();
View Full Code Here

   
    // B
    clientB.deleteFile("folder1");
    assertFalse(clientB.getLocalFile("folder1").exists());
   
    clientB.down();
    assertFileListEquals(clientA.getLocalFilesExcludeLockedAndNoRead(), clientB.getLocalFilesExcludeLockedAndNoRead());
   
    // Tear down
    clientA.deleteTestData();
    clientB.deleteTestData();
View Full Code Here

      clientA.changeFile("file.jpg");
      clientA.upWithForceChecksum();
    }

    // B: Sync down, add something
    clientB.down();

    // B: Cleanup
    CleanupOperationResult cleanupOperationResult = clientB.cleanup(options);
    assertEquals(CleanupResultCode.OK_NOTHING_DONE, cleanupOperationResult.getResultCode());
    assertEquals(0, cleanupOperationResult.getMergedDatabaseFilesCount());
View Full Code Here

      clientA.changeFile("file.jpg");
      clientA.upWithForceChecksum();
    }

    // B: Sync down
    clientB.down();

    // A: Cleanup
    CleanupOperationResult cleanupOperationResult = clientA.cleanup(options);
    assertEquals(CleanupResultCode.OK, cleanupOperationResult.getResultCode());
    assertEquals(0, cleanupOperationResult.getMergedDatabaseFilesCount());
View Full Code Here

      clientA.changeFile("file2.jpg");
      clientA.upWithForceChecksum();
    }

    // B: Sync down
    clientB.down();
    TestAssertUtil.assertSqlDatabaseEquals(clientA.getDatabaseFile(), clientB.getDatabaseFile());

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

       
    // Now move file, and sync
    clientA.moveFile("A-file1", "A-file-moved1");
    clientA.up();
   
    DownOperationResult downOperationResult = clientB.down();   
    assertEquals("No multichunks should have been downloaded.", 0, downOperationResult.getDownloadedMultiChunks().size());
    assertTrue("Moved files should exist.", clientB.getLocalFile("A-file-moved1").exists());   
    assertFileListEquals(clientA.getLocalFilesExcludeLockedAndNoRead(), clientB.getLocalFilesExcludeLockedAndNoRead());
    assertSqlDatabaseEquals(clientA.getDatabaseFile(), clientB.getDatabaseFile());
   
View Full Code Here

      clientA.changeFile("file.jpg");
      clientA.upWithForceChecksum();
    }

    // B: Sync down, add something
    clientB.down();

    // A: Change file.jpg (first step in creating a conflict)
    clientA.changeFile("file.jpg");
    clientA.up(noCleanupAndForceUpOperationOptions);
View Full Code Here

    assertFalse(new File(testConnection.getPath(), "databases/database-A-0000000010").exists());
    assertFalse(new File(testConnection.getPath(), "databases/database-A-0000000030").exists());
    assertTrue(new File(testConnection.getPath(), "databases/database-A-0000000031").exists());

    // Run
    clientC.down(); // <<< Here is/was the issue: Client C failed when downloading
    assertSqlDatabaseEquals(clientA.getDatabaseFile(), clientC.getDatabaseFile());

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

        databaseConnectionB));

    assertSqlDatabaseEquals(clientA.getDatabaseFile(), clientB.getDatabaseFile());

    // Run
    clientC.down(); // <<< Here is/was the issue: Client C failed when downloading
    assertSqlDatabaseEquals(clientA.getDatabaseFile(), clientC.getDatabaseFile());

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