Package org.syncany.plugins.transfer

Examples of org.syncany.plugins.transfer.TransferSettings


    assertEquals("Repository should NOT contain any files.", 0, repoFileList.length);
  }

  @Test
  public void testLockUnlockFile() throws Exception {
    final TransferSettings testConnection = TestConfigUtil.createTestLocalConnection();
    final TestClient clientA = new TestClient("A", testConnection);
    final TestClient clientB = new TestClient("B", testConnection);

    ClientActions.run(clientA, null, new CreateFileTree(), new Executable() {
      @Override
View Full Code Here


  private static final Logger logger = Logger.getLogger(LongRunningNewAndDeleteScenarioTest.class.getSimpleName());
 
  @Test
  public void testLongRunningNewAndDeleteFilesNoConflicts() throws Exception {
    // Setup
    TransferSettings testConnection = TestConfigUtil.createTestLocalConnection();
   
    TestClient clientA = new TestClient("A", testConnection);
    TestClient clientB = new TestClient("B", testConnection);
   
    // Disable logging
View Full Code Here

public class ChangedModifiedDateScenarioTest {
  @Test
  public void testChangeModifiedDate() throws Exception {   
    // Setup
    TransferSettings testConnection = TestConfigUtil.createTestLocalConnection();   
    TestClient clientA = new TestClient("A", testConnection);
    TestClient clientB = new TestClient("B", testConnection);

    // Run
    clientA.createNewFile("file1.jpg");
View Full Code Here

    testLargeFile(SIZE_2500_MB);
  }
 
  private void testLargeFile(long size) throws Exception {
    // Setup
    TransferSettings testConnection = TestConfigUtil.createTestLocalConnection();
   
    TestClient clientA = new TestClient("A", testConnection);
    TestClient clientB = new TestClient("B", testConnection);     
   
    Logging.disableLogging();
View Full Code Here

*
*/   
public class AllFilePossibilitiesScenarioTest
  @Test
  public void testAllPossibilities() throws Exception {   
    final TransferSettings testConnection = TestConfigUtil.createTestLocalConnection();   
    final TestClient clientA = new TestClient("A", testConnection);
    final TestClient clientB = new TestClient("B", testConnection);
   
    ClientActions.run(clientA,
      new Executable() {
View Full Code Here

public class LongRunningLotsOfSmallFilesScenarioTest {
  @Test
  public void testLotsOfSmallFiles() throws Exception {   
    // Setup
    TransferSettings testConnection = TestConfigUtil.createTestLocalConnection();   
    TestClient clientA = new TestClient("A", testConnection);
    TestClient clientB = new TestClient("B", testConnection);

    for (int i=0; i<10000; i++) {
      clientA.createNewFile("file"+i, 100+i);
View Full Code Here

    clientB.deleteTestData();
  }
 
  @Test
  public void testChangeTypeSymlinkWithTargetFileToFolder() throws Exception {   
    final TransferSettings testConnection = TestConfigUtil.createTestLocalConnection();   
    final TestClient clientA = new TestClient("A", testConnection);
    final TestClient clientB = new TestClient("B", testConnection);
   
    ClientActions.run(clientA, null, new CreateFileTree(), null);
    ClientActions.run(clientA, null, new ChangeTypeFileToSymlinkWithTargetFolder(), null);
View Full Code Here

public class CreateSimilarFileParallelScenarioTest {
  @Test
  public void testEmptyFileCreateAndSync() throws Exception {
    // Setup
    TransferSettings testConnection = TestConfigUtil.createTestLocalConnection();
   
    TestClient clientA = new TestClient("A", testConnection);
    TestClient clientB = new TestClient("B", testConnection);
   
    // A
View Full Code Here

public class SingleFileNoConflictsScenarioTest {
  @Test
  public void testSingleClientLocalBackupAndRestoreNoConflicts() throws Exception {
    // Setup
    TransferSettings testConnection = TestConfigUtil.createTestLocalConnection();   
    TestClient clientA1 = new TestClient("A", testConnection);
    TestClient clientA2 = new TestClient("A", testConnection); // same client!

    // Create files and upload
    clientA1.createNewFiles();   
View Full Code Here

  }
 
  @Test
  public void testSingleFileNewNoConflicts() throws Exception {
    // Setup
    TransferSettings testConnection = TestConfigUtil.createTestLocalConnection();   
    TestClient clientA = new TestClient("A", testConnection);
    TestClient clientB = new TestClient("B", testConnection);

    // Create files and upload
    clientA.createNewFile("file");   
View Full Code Here

TOP

Related Classes of org.syncany.plugins.transfer.TransferSettings

Copyright © 2018 www.massapicom. 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.