@Test public void testGetSensors() throws InternalServiceException { assertTrue(getSensorPluginsFrom(sensorInstanceProvider).isEmpty()); SensorPlugin testPlugin = SimpleSensorPluginTestInstance.createInstance(); ((SensorInstanceProviderSeam) sensorInstanceProvider).addSensor(testPlugin); SensorPlugin anotherTestPlugin = SimpleSensorPluginTestInstance.createInstance(); ((SensorInstanceProviderSeam) sensorInstanceProvider).addSensor(anotherTestPlugin); assertTrue( !getSensorPluginsFrom(sensorInstanceProvider).isEmpty()); assertTrue(getSensorPluginsFrom(sensorInstanceProvider).size() == 2); }
public Iterable<SensorPlugin> getSensors() { return sensorInstances; }
SensorInstanceProvider implements InsertSensorOfferingListener { public Iterable<SensorPlugin> getSensors() { return sensorInstances; } }
SensorInstanceProvider implements InsertSensorOfferingListener { public Iterable<SensorPlugin> getSensors() { return sensorInstances; }  }
SensorInstanceProvider implements InsertSensorOfferingListener { public Iterable<SensorPlugin> getSensors() { return sensorInstances; }  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 Iterable<SensorPlugin> getSensors() { return sensorInstances; }  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);  }