Package org.syncany.tests.util

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


    Files.setPosixFilePermissions(filePath, perms);

    runUpAndTestForConsistentDatabase(testConnection, clientA);

    // Tear down
    clientA.deleteTestData();
  }

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


    noReadPermissionFile.setWritable(false, false);

    runUpAndTestForConsistentDatabase(testConnection, clientA);

    // Tear down
    clientA.deleteTestData();
  }

  private void runUpAndTestForConsistentDatabase(TransferSettings connection, TestClient client) throws Exception {
    UpOperationResult upResult = client.up();
    StatusOperationResult statusResult = upResult.getStatusResult();
View Full Code Here

        assertSqlDatabaseEquals(clientA.getDatabaseFile(), clientB.getDatabaseFile());
      }
    });

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

    fail("No asserts yet.");
   
    // Tear down
    clientA.deleteTestData();
    clientB.deleteTestData();
  }
}
View Full Code Here

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

      assertSqlDatabaseEquals(clientA.getDatabaseFile(), clientB.getDatabaseFile());
    }
    finally {
      // Tear down
      clientA.deleteTestData();
      clientB.deleteTestData();
   
  } 
 
  private void logln(String s) {
    System.out.println(new Date()+" "+s);
View Full Code Here

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

        }     
      }
    );
   
    clientA.deleteTestData();
    clientB.deleteTestData();
  }
 
  @Test
  public void testChangeTypeSymlinkWithTargetFileToFolder() throws Exception {   
    final TransferSettings testConnection = TestConfigUtil.createTestLocalConnection();   
View Full Code Here

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

    assertFileListEquals(clientA.getLocalFilesExcludeLockedAndNoRead(), clientB.getLocalFilesExcludeLockedAndNoRead());
    assertSqlDatabaseEquals(clientA.getDatabaseFile(), clientB.getDatabaseFile());       
   
    // 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.