Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

Commit

Permalink
Fix command line test and CLI cleanup output to reflect new cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
pimotte committed Aug 9, 2014
1 parent edf841d commit 2978c28
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -110,7 +110,7 @@ private void printResults(CleanupOperationResult operationResult) {

case OK:
if (operationResult.getMergedDatabaseFilesCount() > 0) {
out.println(operationResult.getMergedDatabaseFilesCount() + " database files merged into one.");
out.println(operationResult.getMergedDatabaseFilesCount() + " database files merged.");
}

if (operationResult.getRemovedMultiChunks().size() > 0) {
Expand Down
Expand Up @@ -102,18 +102,18 @@ public void testCliSyncUpWithCleanup() throws Exception {
}));

assertEquals(3, cliOut.length);
assertTrue(cliOut[0].contains("17 database files merged into one"));
assertTrue(cliOut[0].contains("22 database files merged"));
assertTrue(cliOut[1].contains("1 file histories shortened"));
assertTrue(cliOut[2].contains("Cleanup successful"));

for (int i=1; i<=16; i++) {
for (int i=1; i<=21; i++) {
DatabaseRemoteFile expectedDatabaseRemoteFile = new DatabaseRemoteFile("A", i);
File databaseFileInRepo = new File(connectionSettings.get("path")+"/databases/"+expectedDatabaseRemoteFile.getName());

assertFalse("Database file SHOULD NOT exist: "+databaseFileInRepo, databaseFileInRepo.exists());
}

for (int i=17; i<=22; i++) {
for (int i=22; i<=22; i++) {
DatabaseRemoteFile expectedDatabaseRemoteFile = new DatabaseRemoteFile("A", i);
File databaseFileInRepo = new File(connectionSettings.get("path")+"/databases/"+expectedDatabaseRemoteFile.getName());

Expand Down

0 comments on commit 2978c28

Please sign in to comment.