assertEquals("Repository should contain any files.", 5, repoPath.list().length);
}
private void runUpAndTestForEmptyDatabase(TransferSettings connection, TestClient client) throws Exception {
UpOperationResult upResult = client.up();
StatusOperationResult statusResult = upResult.getStatusResult();
// Test 1: Check result sets for inconsistencies
assertFalse("Status command expected to return NO changes.", statusResult.getChangeSet().hasChanges());
assertFalse("File should NOT be uploaded while it is locked.", upResult.getChangeSet().hasChanges());
// Test 2: Check database for inconsistencies
SqlDatabase database = client.loadLocalDatabase();