@SuppressWarnings("unchecked") @Test(expected = Exception.class) public void test_Should_Search_StorageReservoir() { final List<StorageReservoir> storageReservoirList = new ArrayList<>(); storageReservoirList.add(getStorageReservoir()); final StorageReservoirGetRequest storageReservoirGetRequest = Mockito.mock(StorageReservoirGetRequest.class); when(storageReservoirRepository.findForCriteria(storageReservoirGetRequest)).thenThrow(Exception.class); assertTrue( storageReservoirList.equals(storageReservoirService.getStorageReservoir(storageReservoirGetRequest))); }
public List<StorageReservoir> getStorageReservoir(final StorageReservoirGetRequest storageReservoirGetRequest) { return storageReservoirRepository.findForCriteria(storageReservoirGetRequest); }
StorageReservoirService { public List<StorageReservoir> getStorageReservoir(final StorageReservoirGetRequest storageReservoirGetRequest) { return storageReservoirRepository.findForCriteria(storageReservoirGetRequest); } }
StorageReservoirService { public List<StorageReservoir> getStorageReservoir(final StorageReservoirGetRequest storageReservoirGetRequest) { return storageReservoirRepository.findForCriteria(storageReservoirGetRequest); }  }
StorageReservoirService { public List<StorageReservoir> getStorageReservoir(final StorageReservoirGetRequest storageReservoirGetRequest) { return storageReservoirRepository.findForCriteria(storageReservoirGetRequest); }  StorageReservoirRequest create(final StorageReservoirRequest storageReservoirRequest); StorageReservoirRequest update(final StorageReservoirRequest storageReservoirRequest); List<StorageReservoir> pushCreateToQueue(final String topic, final String key,
            final StorageReservoirRequest storageReservoirRequest); List<StorageReservoir> pushUpdateToQueue(final String topic, final String key,
            final StorageReservoirRequest storageReservoirRequest); List<StorageReservoir> getStorageReservoir(final StorageReservoirGetRequest storageReservoirGetRequest); boolean getStorageReservoirByNameAndCode(final String code, final String name, final String tenantId); }
StorageReservoirService { public List<StorageReservoir> getStorageReservoir(final StorageReservoirGetRequest storageReservoirGetRequest) { return storageReservoirRepository.findForCriteria(storageReservoirGetRequest); }  StorageReservoirRequest create(final StorageReservoirRequest storageReservoirRequest); StorageReservoirRequest update(final StorageReservoirRequest storageReservoirRequest); List<StorageReservoir> pushCreateToQueue(final String topic, final String key,
            final StorageReservoirRequest storageReservoirRequest); List<StorageReservoir> pushUpdateToQueue(final String topic, final String key,
            final StorageReservoirRequest storageReservoirRequest); List<StorageReservoir> getStorageReservoir(final StorageReservoirGetRequest storageReservoirGetRequest); boolean getStorageReservoirByNameAndCode(final String code, final String name, final String tenantId);  }