@Test public void testGetSensorTaskThrowingException() { try { operatorUnderTest.getSensorTask(INVALID_TASK); fail("Invalid task id returnd valid non null task instance!"); } catch (InvalidParameterValueException e) { } catch (OwsException e) { fail("Invalid task id returnd valid non null task instance!"); } }
protected SensorTask getSensorTask(String sensorTaskId) throws OwsException { if (!sensorInstanceProvider.containsTaskWith(sensorTaskId)) { handleInvalidParameter("task", sensorTaskId); } return sensorInstanceProvider.getTaskForTaskId(sensorTaskId); }
SpsOperator { protected SensorTask getSensorTask(String sensorTaskId) throws OwsException { if (!sensorInstanceProvider.containsTaskWith(sensorTaskId)) { handleInvalidParameter("task", sensorTaskId); } return sensorInstanceProvider.getTaskForTaskId(sensorTaskId); } }
SpsOperator { protected SensorTask getSensorTask(String sensorTaskId) throws OwsException { if (!sensorInstanceProvider.containsTaskWith(sensorTaskId)) { handleInvalidParameter("task", sensorTaskId); } return sensorInstanceProvider.getTaskForTaskId(sensorTaskId); }  }
SpsOperator { protected SensorTask getSensorTask(String sensorTaskId) throws OwsException { if (!sensorInstanceProvider.containsTaskWith(sensorTaskId)) { handleInvalidParameter("task", sensorTaskId); } return sensorInstanceProvider.getTaskForTaskId(sensorTaskId); }  SensorPlugin getSensorInstance(String procedure); SensorInstanceProvider getSensorInstanceProvider(); void setSensorInstanceProvider(SensorInstanceProvider sensorInstanceProvider); abstract boolean isSupportingExtensions(); }
SpsOperator { protected SensorTask getSensorTask(String sensorTaskId) throws OwsException { if (!sensorInstanceProvider.containsTaskWith(sensorTaskId)) { handleInvalidParameter("task", sensorTaskId); } return sensorInstanceProvider.getTaskForTaskId(sensorTaskId); }  SensorPlugin getSensorInstance(String procedure); SensorInstanceProvider getSensorInstanceProvider(); void setSensorInstanceProvider(SensorInstanceProvider sensorInstanceProvider); abstract boolean isSupportingExtensions();  }