@Test public void testContainsTaskWith() throws InternalServiceException { SensorPlugin testPlugin = SimpleSensorPluginTestInstance.createInstance(sensorInstanceProvider); ((SensorInstanceProviderSeam) sensorInstanceProvider).addSensor(testPlugin); SensorTask testTask = testPlugin.getSensorTaskService().createNewTask(); assertTrue(sensorInstanceProvider.containsTaskWith(testTask.getTaskId())); }
public boolean containsTaskWith(String taskId) { return getTaskForTaskId(taskId) != null; }
SensorInstanceProvider implements InsertSensorOfferingListener { public boolean containsTaskWith(String taskId) { return getTaskForTaskId(taskId) != null; } }
SensorInstanceProvider implements InsertSensorOfferingListener { public boolean containsTaskWith(String taskId) { return getTaskForTaskId(taskId) != null; }  }
SensorInstanceProvider implements InsertSensorOfferingListener { public boolean containsTaskWith(String taskId) { return getTaskForTaskId(taskId) != null; }  void init(); Iterable<SensorPlugin> getSensors(); boolean containsTaskWith(String taskId); SensorTask getTaskForTaskId(String taskId); boolean containsSensorWith(String procedure); SensorPlugin getSensorForProcedure(String procedure); SensorPlugin getSensorForTaskId(String taskId); SensorConfigurationRepository getSensorConfigurationRepository(); void setSensorConfigurationRepository(SensorConfigurationRepository sensorConfigurationRepository); SensorTaskRepository getSensorTaskRepository(); void setSensorTaskRepository(SensorTaskRepository sensorTaskRepository); void handleInsertSensorOffering(InsertSensorOfferingEvent insertSensorOfferingEvent); }
SensorInstanceProvider implements InsertSensorOfferingListener { public boolean containsTaskWith(String taskId) { return getTaskForTaskId(taskId) != null; }  void init(); Iterable<SensorPlugin> getSensors(); boolean containsTaskWith(String taskId); SensorTask getTaskForTaskId(String taskId); boolean containsSensorWith(String procedure); SensorPlugin getSensorForProcedure(String procedure); SensorPlugin getSensorForTaskId(String taskId); SensorConfigurationRepository getSensorConfigurationRepository(); void setSensorConfigurationRepository(SensorConfigurationRepository sensorConfigurationRepository); SensorTaskRepository getSensorTaskRepository(); void setSensorTaskRepository(SensorTaskRepository sensorTaskRepository); void handleInsertSensorOffering(InsertSensorOfferingEvent insertSensorOfferingEvent);  }