Package org.syncany.tests.util

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


      }     
    }, "A-up");
   
    // Before we start: init database (this takes a while)
    clientA.status();
    clientB.status();
   
    // Delete files and run up simultaneously
    // --> This will hopefully lead to a couple of 'vanished' files
    logger.log(Level.INFO, "Starting 'up' thread ...");   
    runUpThread.start();
View Full Code Here


    }
    else if (EnvironmentUtil.isUnixLikeOperatingSystem()) {
      Files.setPosixFilePermissions(bFilePath, PosixFilePermissions.fromString("rwxrwxrwx"));
    }   
   
    StatusOperationResult statusResult = clientB.status();
    assertNotNull(statusResult);
   
    ChangeSet changes = statusResult.getChangeSet();
   
    assertTrue("Status-Operation should return changes.", changes.hasChanges());
View Full Code Here

    Logging.setGlobalLogLevel(Level.SEVERE);

    // Before start: setup up databases (takes a while)
    clientA.status();
    clientB.status();

    // Run!
    writeFileThread.start();

    Thread.sleep(50);
View Full Code Here

    // 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
    LsOperationOptions options = new LsOperationOptions();
    options.setFetchHistories(true);
    options.setPathExpression("moved_folder/subfolder1/");
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.