Package org.syncany.tests.util

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


    assertSqlDatabaseEquals(clientA.getDatabaseFile(), clientC.getDatabaseFile());

    // Tear down
    clientA.deleteTestData();
    clientB.deleteTestData();
    clientC.deleteTestData();
  }

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


    clientC.down();

    // Tear down
    clientA.deleteTestData();
    clientB.deleteTestData();
    clientC.deleteTestData();
  }

  @Test
  public void testIssue58_4() throws Exception {
    // Test for https://github.com/syncany/syncany/issues/58#issuecomment-43472118
View Full Code Here

    clientC.down(); // <<< "Cannot determine file content for checksum X"

    // Tear down
    clientA.deleteTestData();
    clientB.deleteTestData();
    clientC.deleteTestData();
  }

  @Test
  public void testIssue58_5() throws Exception {
    // Test for https://github.com/syncany/syncany/issues/58#issuecomment-43472118
View Full Code Here

    clientB.down();
    assertTrue(clientB.getLocalFile("folder/file").exists());

    // Tear down
    clientA.deleteTestData();
    clientB.deleteTestData();
  }
}
View Full Code Here

    assertEquals(0, cleanupOperationResult.getRemovedMultiChunks().size());
    assertEquals(0, cleanupOperationResult.getRemovedOldVersionsCount());

    // Tear down
    clientA.deleteTestData();
    clientB.deleteTestData();
  }

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

    assertEquals(0, cleanupOperationResult.getRemovedMultiChunks().size());
    assertEquals(0, repoActionsDir.listFiles().length);

    // Tear down
    clientA.deleteTestData();
    clientB.deleteTestData();
  }

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

    assertEquals(0, cleanupOperationResult.getRemovedMultiChunks().size());
    assertEquals(0, cleanupOperationResult.getRemovedOldVersionsCount());

    // Tear down
    clientA.deleteTestData();
    clientB.deleteTestData();
  }

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

    assertEquals("A-file1-with-different-modified-date.jpg", fileVersion1WithDiffLastModDateV1.getName());
    assertEquals("A-file1-with-different-modified-date-moved.jpg", fileVersion1WithDiffLastModDateV2.getName());
   
    // Tear down
    clientA.deleteTestData();
    clientB.deleteTestData();
  }
}
View Full Code Here

    assertEquals(16, cleanupOperationResult.getMergedDatabaseFilesCount());
    assertEquals(0, cleanupOperationResult.getRemovedMultiChunks().size());
    assertEquals(0, cleanupOperationResult.getRemovedOldVersionsCount());

    // Tear down
    clientA.deleteTestData();
  }

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

    }).length);
    assertEquals("5", TestSqlUtil.runSqlSelect("select count(*) from multichunk", databaseConnectionA));
   

    // Tear down
    clientA.deleteTestData();
  }
}
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.