@Test public void test_should_fetch_service_type_from_db() { SevaConfigurationGetRequest criteria = SevaConfigurationGetRequest.builder().keyName("name") .id(Collections.singletonList(1L)).tenantId("default").build(); when(sevaConfigurationRepository.findForCriteria(criteria)).thenReturn(getSearchResult()); Map<String, List<String>> result = sevaConfigurationService.getSevaConfigurations(criteria); assertEquals(result, getSearchResult()); }
public Map<String, List<String>> getSevaConfigurations(SevaConfigurationGetRequest sevaConfigurationGetRequest) { return sevaConfigurationRepository.findForCriteria(sevaConfigurationGetRequest); }
SevaConfigurationService { public Map<String, List<String>> getSevaConfigurations(SevaConfigurationGetRequest sevaConfigurationGetRequest) { return sevaConfigurationRepository.findForCriteria(sevaConfigurationGetRequest); } }
SevaConfigurationService { public Map<String, List<String>> getSevaConfigurations(SevaConfigurationGetRequest sevaConfigurationGetRequest) { return sevaConfigurationRepository.findForCriteria(sevaConfigurationGetRequest); } SevaConfigurationService(SevaConfigurationRepository sevaConfigurationRepository); }
SevaConfigurationService { public Map<String, List<String>> getSevaConfigurations(SevaConfigurationGetRequest sevaConfigurationGetRequest) { return sevaConfigurationRepository.findForCriteria(sevaConfigurationGetRequest); } SevaConfigurationService(SevaConfigurationRepository sevaConfigurationRepository); Map<String, List<String>> getSevaConfigurations(SevaConfigurationGetRequest sevaConfigurationGetRequest); }
SevaConfigurationService { public Map<String, List<String>> getSevaConfigurations(SevaConfigurationGetRequest sevaConfigurationGetRequest) { return sevaConfigurationRepository.findForCriteria(sevaConfigurationGetRequest); } SevaConfigurationService(SevaConfigurationRepository sevaConfigurationRepository); Map<String, List<String>> getSevaConfigurations(SevaConfigurationGetRequest sevaConfigurationGetRequest);  }