UpOperationResult upResultB = clientB.up(upOperationOptionsWithForce); // (B1)
assertEquals(UpResultCode.OK_CHANGES_UPLOADED, upResultB.getResultCode());
assertEquals(8, upResultB.getChangeSet().getNewFiles().size());
DownOperationResult downResultA = clientA.down();
assertEquals(DownResultCode.OK_NO_REMOTE_CHANGES, downResultA.getResultCode());
assertEquals(0, downResultA.getDirtyDatabasesCreated().size());
assertEquals(false, downResultA.getChangeSet().hasChanges());
// For peaking (does NOT affect the test)
FileUtils.copyFile(new File(testConnection.getPath(), "databases/database-B-0000000001"),
new File(testConnection.getPath(), "databases/TEMP_db-B-0000000001"));
DownOperationResult downResultB = clientB.down(); // creates DIRTY; deletes (B1)
assertEquals(DownResultCode.OK_WITH_REMOTE_CHANGES, downResultB.getResultCode());
assertEquals(1, downResultB.getDirtyDatabasesCreated().size());
assertEquals(false, downResultB.getChangeSet().hasChanges()); // TODO [low] Shouldn't this be 'true'?
// For peaking (does NOT affect the test)
FileUtils.copyDirectory(clientB.getLocalFile(".syncany/db"), clientB.getLocalFile(".syncany/db_WITH_DIRTY_B1"));
Files.setPosixFilePermissions(clientB.getLocalFile("sphinxbase-0.8").toPath(), PosixFilePermissions.fromString("rwxrwxrwx"));