@Test(groups = "handler", dataProvider = "entries") public void apply(final LdapEntry[] actual, final LdapEntry[] expected) { final SortResultHandler handler = new SortResultHandler(); final SearchResponse response = new SearchResponse(); response.addEntries(actual); Assert.assertEquals( handler.apply(response).getEntries(), Stream.of(expected).collect(Collectors.toCollection(LinkedHashSet::new))); }
@Override public SearchResponse apply(final SearchResponse response) { return SearchResponse.sort(response); }
SortResultHandler extends AbstractEntryHandler<SearchResponse> implements SearchResultHandler { @Override public SearchResponse apply(final SearchResponse response) { return SearchResponse.sort(response); } }
SortResultHandler extends AbstractEntryHandler<SearchResponse> implements SearchResultHandler { @Override public SearchResponse apply(final SearchResponse response) { return SearchResponse.sort(response); } SortResultHandler(); }
SortResultHandler extends AbstractEntryHandler<SearchResponse> implements SearchResultHandler { @Override public SearchResponse apply(final SearchResponse response) { return SearchResponse.sort(response); } SortResultHandler(); @Override SearchResponse apply(final SearchResponse response); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString(); }
SortResultHandler extends AbstractEntryHandler<SearchResponse> implements SearchResultHandler { @Override public SearchResponse apply(final SearchResponse response) { return SearchResponse.sort(response); } SortResultHandler(); @Override SearchResponse apply(final SearchResponse response); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString();  }