@Test public void test_should_search_usageType_from_DB() { when(usageTypeRepository.getUsageTypesByCriteria(getUsageTypeGetRequest())).thenReturn(getUsageType()); final List<UsageType> usageTypes = usageTypeService.getUsageTypes(getUsageTypeGetRequest()); assertTrue(getUsageType().equals(usageTypes)); }
public List<UsageType> getUsageTypes(final UsageTypeGetRequest usageTypeGetRequest) { return usageTypeRepository.getUsageTypesByCriteria(usageTypeGetRequest); }
UsageTypeService { public List<UsageType> getUsageTypes(final UsageTypeGetRequest usageTypeGetRequest) { return usageTypeRepository.getUsageTypesByCriteria(usageTypeGetRequest); } }
UsageTypeService { public List<UsageType> getUsageTypes(final UsageTypeGetRequest usageTypeGetRequest) { return usageTypeRepository.getUsageTypesByCriteria(usageTypeGetRequest); }  }
UsageTypeService { public List<UsageType> getUsageTypes(final UsageTypeGetRequest usageTypeGetRequest) { return usageTypeRepository.getUsageTypesByCriteria(usageTypeGetRequest); }  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 List<UsageType> getUsageTypes(final UsageTypeGetRequest usageTypeGetRequest) { return usageTypeRepository.getUsageTypesByCriteria(usageTypeGetRequest); }  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);  }