@Test(expected = ParsingException.class) public void testTranslateEmptyFilterPhraseValue() { Phrase phrase = mock(Phrase.class); doReturn("").when(activeDirectorySearchCriteriaBuilder).translatePhrase(phrase); activeDirectorySearchCriteriaBuilder.translateFilter(phrase); verify(activeDirectorySearchCriteriaBuilder, times(1)).translatePhrase(phrase); }
@Override public void translateFilter() { String searchTest = getQueryRequest().getSearchText(); if (searchTest != null && !searchTest.isEmpty()) { this.searchFilter = searchTest; return; } this.searchFilter = translateFilter(getQueryRequest().getSearchSentence()); }
ActiveDirectorySearchCriteriaBuilderImpl extends SearchCriteriaBuilder { @Override public void translateFilter() { String searchTest = getQueryRequest().getSearchText(); if (searchTest != null && !searchTest.isEmpty()) { this.searchFilter = searchTest; return; } this.searchFilter = translateFilter(getQueryRequest().getSearchSentence()); } }
ActiveDirectorySearchCriteriaBuilderImpl extends SearchCriteriaBuilder { @Override public void translateFilter() { String searchTest = getQueryRequest().getSearchText(); if (searchTest != null && !searchTest.isEmpty()) { this.searchFilter = searchTest; return; } this.searchFilter = translateFilter(getQueryRequest().getSearchSentence()); }  }
ActiveDirectorySearchCriteriaBuilderImpl extends SearchCriteriaBuilder { @Override public void translateFilter() { String searchTest = getQueryRequest().getSearchText(); if (searchTest != null && !searchTest.isEmpty()) { this.searchFilter = searchTest; return; } this.searchFilter = translateFilter(getQueryRequest().getSearchSentence()); }  @Override void translateFields(); @Override void translateSortKeys(); @Override void translateFilter(); @Override String translateField(FieldInfo field); @Override SearchCriteria get(); }
ActiveDirectorySearchCriteriaBuilderImpl extends SearchCriteriaBuilder { @Override public void translateFilter() { String searchTest = getQueryRequest().getSearchText(); if (searchTest != null && !searchTest.isEmpty()) { this.searchFilter = searchTest; return; } this.searchFilter = translateFilter(getQueryRequest().getSearchSentence()); }  @Override void translateFields(); @Override void translateSortKeys(); @Override void translateFilter(); @Override String translateField(FieldInfo field); @Override SearchCriteria get();  }