Package org.syncany.tests.util

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


    RestoreOperationOptions operationOptions = new RestoreOperationOptions();
   
    operationOptions.setFileHistoryId(originalFileHistoryId);
    operationOptions.setFileVersion(1);
   
    clientA.restore(operationOptions);
   
    assertTrue(clientA.getLocalFile("A-original (restored version 1)").exists());
    assertEquals(
        StringUtil.toHex(TestFileUtil.createChecksum(deletedFile)),
        StringUtil.toHex(TestFileUtil.createChecksum(clientA.getLocalFile("A-original (restored version 1)"))));
View Full Code Here


   
    operationOptions.setFileHistoryId(originalFileHistoryId);
    operationOptions.setFileVersion(1);
    operationOptions.setRelativeTargetPath("restored-file");
   
    clientA.restore(operationOptions);
   
    assertTrue(clientA.getLocalFile("restored-file").exists());
    assertEquals(
        StringUtil.toHex(TestFileUtil.createChecksum(deletedFile)),
        StringUtil.toHex(TestFileUtil.createChecksum(clientA.getLocalFile("restored-file"))));
View Full Code Here

    RestoreOperationOptions operationOptions = new RestoreOperationOptions();
   
    operationOptions.setFileHistoryId(originalFileHistoryId);
    operationOptions.setFileVersion(1);
   
    clientA.restore(operationOptions);
   
    assertTrue(clientA.getLocalFile("folder/subfolder").exists());
    assertTrue(clientA.getLocalFile("folder/subfolder/A-original (restored version 1)").exists());
   
    // Tear down
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.