/** Test fetch all lights to apply schedule. */ @Test public void testFetchAllLightsToApplySchedule() { // Success situation ScheduleRequest request = TestBaseUtil.createScheduleRequest(); request.setSchedule(TestBaseUtil.createOffSetSchedule()); InternalResultsResponse<Light> response = getSmartPointAccessorBCL().fetchAllLightsToApplySchedule(request); assertResultResponse(response); resetMocksToSmartPointArea(); // Error situation setSituation( getSmartPointAccessorBCL(), SituationsEnum.ERROR, ISmartPointDAC.class, "fetchAllLightsToApplySchedule"); response = getSmartPointAccessorBCL().fetchAllLightsToApplySchedule(request); assertMessages(response, ERROR_CODE); }