@Test public void testRemoveSyncRoot() { this.props.put(KEY_ACTION, ACTION_REMOVE); this.props.put(KEY_SYNC_ROOT, new File("/virtual/root")); this.serviceSettings.removeSyncRoot(new File("/virtual/root")); verify(this.jobManager, times(1)).addJob(TOPIC_NAME, this.props); }
public void removeSyncRoot(final File syncRoot) throws IllegalStateException { logger.debug("removeSyncRoot(): syncRoot = {}", syncRoot); final Map<String, Object> props = new Hashtable<String, Object>(); props.put(ServiceSettingsConsumerImpl.KEY_ACTION, ServiceSettingsConsumerImpl.ACTION_REMOVE); props.put(ServiceSettingsConsumerImpl.KEY_SYNC_ROOT, syncRoot); jobManager.addJob(ServiceSettingsConsumerImpl.TOPIC_NAME, props); }
ServiceSettingsImpl { public void removeSyncRoot(final File syncRoot) throws IllegalStateException { logger.debug("removeSyncRoot(): syncRoot = {}", syncRoot); final Map<String, Object> props = new Hashtable<String, Object>(); props.put(ServiceSettingsConsumerImpl.KEY_ACTION, ServiceSettingsConsumerImpl.ACTION_REMOVE); props.put(ServiceSettingsConsumerImpl.KEY_SYNC_ROOT, syncRoot); jobManager.addJob(ServiceSettingsConsumerImpl.TOPIC_NAME, props); } }
ServiceSettingsImpl { public void removeSyncRoot(final File syncRoot) throws IllegalStateException { logger.debug("removeSyncRoot(): syncRoot = {}", syncRoot); final Map<String, Object> props = new Hashtable<String, Object>(); props.put(ServiceSettingsConsumerImpl.KEY_ACTION, ServiceSettingsConsumerImpl.ACTION_REMOVE); props.put(ServiceSettingsConsumerImpl.KEY_SYNC_ROOT, syncRoot); jobManager.addJob(ServiceSettingsConsumerImpl.TOPIC_NAME, props); }  }
ServiceSettingsImpl { public void removeSyncRoot(final File syncRoot) throws IllegalStateException { logger.debug("removeSyncRoot(): syncRoot = {}", syncRoot); final Map<String, Object> props = new Hashtable<String, Object>(); props.put(ServiceSettingsConsumerImpl.KEY_ACTION, ServiceSettingsConsumerImpl.ACTION_REMOVE); props.put(ServiceSettingsConsumerImpl.KEY_SYNC_ROOT, syncRoot); jobManager.addJob(ServiceSettingsConsumerImpl.TOPIC_NAME, props); }  void addSyncRoot(final File syncRoot, Long expectedSyncTime); void removeSyncRoot(final File syncRoot); }
ServiceSettingsImpl { public void removeSyncRoot(final File syncRoot) throws IllegalStateException { logger.debug("removeSyncRoot(): syncRoot = {}", syncRoot); final Map<String, Object> props = new Hashtable<String, Object>(); props.put(ServiceSettingsConsumerImpl.KEY_ACTION, ServiceSettingsConsumerImpl.ACTION_REMOVE); props.put(ServiceSettingsConsumerImpl.KEY_SYNC_ROOT, syncRoot); jobManager.addJob(ServiceSettingsConsumerImpl.TOPIC_NAME, props); }  void addSyncRoot(final File syncRoot, Long expectedSyncTime); void removeSyncRoot(final File syncRoot);  }