Package org.syncany.tests.util

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


    clientA.down(); // double-down, has caused problems   
    assertFileListEquals("No change in file lists expected. Nothing changed", beforeSyncDownFileList, clientA.getLocalFilesExcludeLockedAndNoRead());        
   
    // Tear down
    clientA.deleteTestData();
    clientB.deleteTestData();
  }
}
View Full Code Here


      assertTrue(clientB.getLocalFile("folder \"with\" quotes/file").exists());
    }
   
    // Tear down
    clientA.deleteTestData();
    clientB.deleteTestData();
  }
}
View Full Code Here

    assertEquals("File list count does not match.", 19, clientA.getLocalFilesExcludeLockedAndNoRead().size());
   
    // Tear down
    clientA.deleteTestData();
    clientB.deleteTestData();
    clientC.deleteTestData();
  }
}
View Full Code Here

   
    assertNotNull(fileSystemActions);
    assertEquals(0, fileSystemActions.size());   
   
    // Tear down
    clientA.deleteTestData();
  }
}
View Full Code Here

    assertFileListEquals(clientA.getLocalFilesExcludeLockedAndNoRead(), clientB.getLocalFilesExcludeLockedAndNoRead());
    assertSqlDatabaseEquals(clientA.getDatabaseFile(), clientB.getDatabaseFile());   
   
    // Tear down
    clientA.deleteTestData();
    clientB.deleteTestData();
  }
 
  @Test
  public void testManySyncUpsAndOtherClientSyncDownSameFileAddRemove() throws Exception {
    // Setup
View Full Code Here

    assertFileListEquals(clientA.getLocalFilesExcludeLockedAndNoRead(), clientB.getLocalFilesExcludeLockedAndNoRead());
    assertSqlDatabaseEquals(clientA.getDatabaseFile(), clientB.getDatabaseFile());   
   
    // Tear down
    clientA.deleteTestData();
    clientB.deleteTestData();
  }
}
View Full Code Here

    assertEquals(0, transferManager.list(TransactionRemoteFile.class).size());
    assertEquals(0, new File(testConnection.getPath(), "transactions").list().length);
    assertEquals(0, transferManager.list(ActionRemoteFile.class).size());
    assertEquals(0, new File(testConnection.getPath(), "actions").list().length);

    clientA.deleteTestData();
  }

  @Test
  public void testUnreliableCleanup_Test2_databaseFileMerge() throws Exception {
    // Setup
View Full Code Here

    assertTrue(clientA.getLocalFile("nonignoredfile.txt").exists());
    assertTrue(clientB.getLocalFile("ignoredfile.txt").exists());
    assertTrue(clientB.getLocalFile("nonignoredfile.txt").exists());
    // Tear down
    clientA.deleteTestData();
    clientB.deleteTestData();
    TestFileUtil.deleteDirectory(tempDir);
  }
 
  @Test
  public void testIgnoredFileRegex() throws Exception {
View Full Code Here

    assertFalse(clientB.getLocalFile("ignoredfile.bak").exists());
   
   
    // Tear down
    clientA.deleteTestData();
    clientB.deleteTestData();
    TestFileUtil.deleteDirectory(tempDir);
  }
 
  @Test
  public void testIgnoredDirectory() throws Exception {
View Full Code Here

    assertFalse(clientB.getLocalFile("builds/test.txt").exists());
   
   
    // Tear down
    clientA.deleteTestData();
    clientB.deleteTestData();
    TestFileUtil.deleteDirectory(tempDir);
  }
 
  @Test
  public void testIgnoredFileWildcard() throws Exception {
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.