@SuppressWarnings("unchecked") @Test(expected = Exception.class) public void test_throwException_Update_StorageReservoir() throws Exception { final StorageReservoirRequest storageReservoirRequest = Mockito.mock(StorageReservoirRequest.class); when(storageReservoirRepository.update(storageReservoirRequest)) .thenThrow(Exception.class); assertTrue(storageReservoirRequest.equals(storageReservoirService.update(storageReservoirRequest))); }
public StorageReservoirRequest update(final StorageReservoirRequest storageReservoirRequest) { return storageReservoirRepository.update(storageReservoirRequest); }
StorageReservoirService { public StorageReservoirRequest update(final StorageReservoirRequest storageReservoirRequest) { return storageReservoirRepository.update(storageReservoirRequest); } }
StorageReservoirService { public StorageReservoirRequest update(final StorageReservoirRequest storageReservoirRequest) { return storageReservoirRepository.update(storageReservoirRequest); }  }
StorageReservoirService { public StorageReservoirRequest update(final StorageReservoirRequest storageReservoirRequest) { return storageReservoirRepository.update(storageReservoirRequest); }  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 StorageReservoirRequest update(final StorageReservoirRequest storageReservoirRequest) { return storageReservoirRepository.update(storageReservoirRequest); }  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);  }