@Test public void testGetOptionTypeWithoutResults() { prepareAndInitSession(); prepareAndInitSession(); List<String> checkedVariables = Arrays.asList("not-existing1", "not-existing2", "not-existing3", "and_so_on"); checkedVariables.forEach(checkedVariable -> { String type = searchService.getOptionType(checkedVariable); assertNotEquals(mockedVariableTypes, type); }); }
public String getOptionType(String key) { return optionType.get(key); }
VariableSearchService implements LiveSearchService<String> { public String getOptionType(String key) { return optionType.get(key); } }
VariableSearchService implements LiveSearchService<String> { public String getOptionType(String key) { return optionType.get(key); } @Inject  VariableSearchService(final ConditionEditorMetadataService metadataService,
                                 final ClientTranslationService translationService); }
VariableSearchService implements LiveSearchService<String> { public String getOptionType(String key) { return optionType.get(key); } @Inject  VariableSearchService(final ConditionEditorMetadataService metadataService,
                                 final ClientTranslationService translationService); void init(ClientSession session); @Override void search(String pattern, int maxResults, LiveSearchCallback<String> callback); @Override void searchEntry(String key, LiveSearchCallback<String> callback); String getOptionType(String key); void clear(); }
VariableSearchService implements LiveSearchService<String> { public String getOptionType(String key) { return optionType.get(key); } @Inject  VariableSearchService(final ConditionEditorMetadataService metadataService,
                                 final ClientTranslationService translationService); void init(ClientSession session); @Override void search(String pattern, int maxResults, LiveSearchCallback<String> callback); @Override void searchEntry(String key, LiveSearchCallback<String> callback); String getOptionType(String key); void clear();  }