@Test public void test_should_update_usageType_request_in_DB() { when(usageTypeRepository.update(getUsageTypeRequestForUpdate())) .thenReturn(getUsageTypeRequestForUpdate()); final UsageTypeReq usageTypeRequest = usageTypeService.update(getUsageTypeRequestForUpdate()); assertTrue(getUsageTypeRequestForUpdate().equals(usageTypeRequest)); }
public UsageTypeReq update(final UsageTypeReq usageTypeRequest) { return usageTypeRepository.update(usageTypeRequest); }
UsageTypeService { public UsageTypeReq update(final UsageTypeReq usageTypeRequest) { return usageTypeRepository.update(usageTypeRequest); } }
UsageTypeService { public UsageTypeReq update(final UsageTypeReq usageTypeRequest) { return usageTypeRepository.update(usageTypeRequest); }  }
UsageTypeService { public UsageTypeReq update(final UsageTypeReq usageTypeRequest) { return usageTypeRepository.update(usageTypeRequest); }  List<UsageType> getUsageTypes(final UsageTypeGetRequest usageTypeGetRequest); List<UsageType> pushCreateToQueue(final UsageTypeReq usageTypeRequest); UsageTypeReq create(final UsageTypeReq usageTypeRequest); List<UsageType> pushUpdateToQueue(final UsageTypeReq usageTypeRequest); UsageTypeReq update(final UsageTypeReq usageTypeRequest); }
UsageTypeService { public UsageTypeReq update(final UsageTypeReq usageTypeRequest) { return usageTypeRepository.update(usageTypeRequest); }  List<UsageType> getUsageTypes(final UsageTypeGetRequest usageTypeGetRequest); List<UsageType> pushCreateToQueue(final UsageTypeReq usageTypeRequest); UsageTypeReq create(final UsageTypeReq usageTypeRequest); List<UsageType> pushUpdateToQueue(final UsageTypeReq usageTypeRequest); UsageTypeReq update(final UsageTypeReq usageTypeRequest);  }