Package org.syncany.tests.util

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


    // Check if the file histories were based on the correct originals
    LsOperationOptions options = new LsOperationOptions();
    options.setFetchHistories(true);
    options.setPathExpression("moved_folder/subfolder1/");
   
    LsOperationResult lsOperationResult = clientA.ls(options);
   
    for (PartialFileHistory fileHistory : lsOperationResult.getFileVersions().values()) {
      assertTrue(fileHistory.getFileVersion(2).getPath().endsWith(fileHistory.getFileVersion(1).getPath()));
    }
   
View Full Code Here


      assertTrue(fileHistory.getFileVersion(2).getPath().endsWith(fileHistory.getFileVersion(1).getPath()));
    }
   
    options.setPathExpression("moved_folder/subfolder2/");
   
    lsOperationResult = clientA.ls(options);
   
    for (PartialFileHistory fileHistory : lsOperationResult.getFileVersions().values()) {
      assertTrue(fileHistory.getFileVersion(2).getPath().endsWith(fileHistory.getFileVersion(1).getPath()));
    }
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.