Examples of changeFile()


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

    clientA.createNewFile("file");

    clientA.up();

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

    CleanupOperationOptions cleanupOptions = new CleanupOperationOptions();
    cleanupOptions.setKeepVersionsCount(1);
    boolean cleanupFailed = false;
View Full Code Here

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

    clientA.createNewFile("file");

    clientA.up();

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

    CleanupOperationOptions cleanupOptions = new CleanupOperationOptions();
    cleanupOptions.setMaxDatabaseFiles(1);
    boolean cleanupFailed = false;
View Full Code Here

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

    clientA.createNewFile("file");

    clientA.up();

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

    CleanupOperationOptions cleanupOptions = new CleanupOperationOptions();
    cleanupOptions.setMaxDatabaseFiles(1);
    boolean cleanupFailed = false;
View Full Code Here

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

    TestFileUtil.copyFile(clientDzHome.getLocalFile("config.xml"), new File(tempDir, "config.xml")); // Make a copy (for later)   

    // work
    clientUxWork.down();

    clientUxWork.changeFile("config.xml");
    clientUxWork.upWithForceChecksum();
   
    clientUxWork.createNewFile("someotherfile1.xml");
    clientUxWork.upWithForceChecksum();
   
View Full Code Here

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

   
    clientB.createNewFile("A4,B1");
    clientB.up();
   
    clientC.createNewFile("C1"); // Evil. "up" without "down"
    clientC.changeFile("C1");
    clientC.up();
    clientC.changeFile("C1");
    clientC.up();
    clientC.changeFile("C1");
    clientC.up();
View Full Code Here

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

    clientB.up();
   
    clientC.createNewFile("C1"); // Evil. "up" without "down"
    clientC.changeFile("C1");
    clientC.up();
    clientC.changeFile("C1");
    clientC.up();
    clientC.changeFile("C1");
    clientC.up();
   
    clientA.down();
View Full Code Here

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

    clientC.createNewFile("C1"); // Evil. "up" without "down"
    clientC.changeFile("C1");
    clientC.up();
    clientC.changeFile("C1");
    clientC.up();
    clientC.changeFile("C1");
    clientC.up();
   
    clientA.down();
    assertFileListEquals(clientA.getLocalFilesExcludeLockedAndNoRead(), clientB.getLocalFilesExcludeLockedAndNoRead());
   
View Full Code Here

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

    }

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

    clientB.changeFile("file.jpg");

    CleanupOperationResult cleanupOperationResult = clientB.cleanup(cleanupOptions);
    assertEquals(CleanupResultCode.NOK_LOCAL_CHANGES, cleanupOperationResult.getResultCode());
    assertEquals(0, cleanupOperationResult.getMergedDatabaseFilesCount());
    assertEquals(0, cleanupOperationResult.getRemovedMultiChunks().size());
View Full Code Here

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

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

    // B: Change file.jpg (second step in creating a conflict)
    clientB.changeFile("file.jpg");
    clientB.up(noCleanupAndForceUpOperationOptions); // << creates conflict

    // B: Sync down (creates a local conflict file and marks local changes as DRITY)
    clientB.down(); // << creates DIRTY database entries
View Full Code Here

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

    // Run

    // A: Create some file versions
    clientA.createNewFile("file.jpg");
    for (int i = 1; i <= 4; i++) {
      clientA.changeFile("file.jpg");
      clientA.upWithForceChecksum();
    }

    // B: Cleanup
    CleanupOperationResult cleanupOperationResult = clientA.cleanup(options);
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.