// Setup
Config config = TestConfigUtil.createTestLocalConfig();
new File(config.getLocalDir()+"/somefolder").mkdir();
// Run 'status', this SHOULD list the folder
ChangeSet changeSet = (new StatusOperation(config).execute()).getChangeSet();
assertEquals(changeSet.getNewFiles().size(), 1);
assertEquals(changeSet.getChangedFiles().size(), 0);
assertEquals(changeSet.getDeletedFiles().size(), 0);
assertEquals(changeSet.getUnchangedFiles().size(), 0);
// Run 'up' to check in the folder
new UpOperation(config).execute();
// Run 'status', this SHOULD NOT list the folder in the changed/new files
changeSet = (new StatusOperation(config).execute()).getChangeSet();
assertEquals(changeSet.getNewFiles().size(), 0);
assertEquals(changeSet.getChangedFiles().size(), 0);
assertEquals(changeSet.getDeletedFiles().size(), 0);
assertEquals(changeSet.getUnchangedFiles().size(), 1);
// Cleanup
TestConfigUtil.deleteTestLocalConfigAndData(config);
}