Examples of deleteTestData()


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

    assertTrue(new File(testConnection.getPath() + "/databases/database-A-0000000003").exists());
    assertFalse(new File(testConnection.getPath() + "/databases/database-A-0000000004").exists());
    assertFalse(new File(testConnection.getPath() + "/databases/database-A-0000000005").exists());

    // Tear down
    clientA.deleteTestData();
  }

  @Test
  public void testUnreliableUpload_Test2_FailsAtMultichunk() throws Exception {
    /*
 
View Full Code Here

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

    assertFileEquals(clientA.getLocalFile("moved/file"), clientB.getLocalFile("moved/file"));
    assertFileListEquals(clientA.getLocalFilesExcludeLockedAndNoRead(), clientB.getLocalFilesExcludeLockedAndNoRead());
   
    // Cleanup
    clientA.deleteTestData();
    clientB.deleteTestData();
  }   
 
  @Test
  public void testFolderNonEmptyMove2NoConflicts() throws Exception {
    // Setup
View Full Code Here

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

    assertEquals(2, transactionTO.getActions().size());
    assertTrue(transactionTO.getActions().get(0).getRemoteFile().getName().contains("multichunk-"));
    assertTrue(transactionTO.getActions().get(1).getRemoteFile().getName().contains("database-"));

    // Tear down
    clientA.deleteTestData();
  }

  @Test
  public void testUnreliableUpload_Test3_FailsAtDatabaseFile() throws Exception {
    /*
 
View Full Code Here

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

    assertFileEquals(clientA.getLocalFile("moved/file"), clientB.getLocalFile("moved/file"));
    assertFileListEquals(clientA.getLocalFilesExcludeLockedAndNoRead(), clientB.getLocalFilesExcludeLockedAndNoRead());
   
    // Cleanup
    clientA.deleteTestData();
    clientB.deleteTestData();
  }     
}
View Full Code Here

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

    assertEquals(0, new File(testConnection.getPath() + "/transactions/").listFiles().length);

    assertEquals(0, new File(testConnection.getPath() + "/temporary/").listFiles().length);

    // Tear down
    clientA.deleteTestData();
  }

  @Test
  public void testUnreliableUpload_Test4_1_FailsAtSecondMultiChunkUpload() throws Exception {
    /*
 
View Full Code Here

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

    assertEquals(0, new File(testConnection.getPath() + "/transactions/").listFiles().length);

    assertEquals(0, new File(testConnection.getPath() + "/temporary/").listFiles().length);

    // Tear down
    clientA.deleteTestData();
  }

  @Test
  public void testUnreliableUpload_Test4_2_FailsAtTXCommitDuring2ndMultiChunkMove() throws Exception {
    /*
 
View Full Code Here

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

    assertSqlDatabaseEquals(clientA.getDatabaseFile(), clientB.getDatabaseFile());
    assertConflictingFileExists("A-file1.jpg", clientA.getLocalFilesExcludeLockedAndNoRead());
   
    // Tear down
    clientA.deleteTestData();
    clientB.deleteTestData();
  }

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

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

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

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

    byte[] restoreChecksum = FileUtil.createChecksum(restoreResponse.getResult().getTargetFile(), "SHA1");
   
    assertArrayEquals(copyChecksum, restoreChecksum);
    watchServer.stop();
    clientA.deleteTestData();
    clientB.deleteTestData();
  }
 
 
  private void registerWithBus() {
    if (eventBus == null) {
View Full Code Here

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

    clientB.down(); // <<<< This creates the exception in #143
                    // integrity constraint violation: foreign key no parent; SYS_FK_10173 table: FILEVERSION
   
    // Tear down
    clientA.deleteTestData();
    clientB.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.