@Test public void testContainsSensorWith() throws InternalServiceException { SensorPlugin testPlugin = SimpleSensorPluginTestInstance.createInstance(sensorInstanceProvider); ((SensorInstanceProviderSeam) sensorInstanceProvider).addSensor(testPlugin); assertTrue(sensorInstanceProvider.containsSensorWith(testPlugin.getProcedure())); }
public boolean containsSensorWith(String procedure) { return getSensorForProcedure(procedure) != null; }
SensorInstanceProvider implements InsertSensorOfferingListener { public boolean containsSensorWith(String procedure) { return getSensorForProcedure(procedure) != null; } }
SensorInstanceProvider implements InsertSensorOfferingListener { public boolean containsSensorWith(String procedure) { return getSensorForProcedure(procedure) != null; }  }
SensorInstanceProvider implements InsertSensorOfferingListener { public boolean containsSensorWith(String procedure) { return getSensorForProcedure(procedure) != 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 containsSensorWith(String procedure) { return getSensorForProcedure(procedure) != 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);  }