Fix OPENDJ-1137: ConnectionEntryReader does not provide a means for accessing controls in the search result
* fixed checkstyle failure (ran with -Dprecommit instead of -Pprecommit!).
| | |
| | | |
| | | private ConnectionEntryReader newReader(final Object... responses) { |
| | | final Connection connection = mock(Connection.class); |
| | | when( |
| | | connection.searchAsync(same(SEARCH), (IntermediateResponseHandler) isNull(), |
| | | // @formatter:off |
| | | when(connection.searchAsync(same(SEARCH), (IntermediateResponseHandler) isNull(), |
| | | any(SearchResultHandler.class))).thenAnswer( |
| | | new Answer<FutureResult<Result>>() { |
| | | @Override |
| | |
| | | } |
| | | } |
| | | }); |
| | | // @formatter:on |
| | | return new ConnectionEntryReader(connection, SEARCH); |
| | | } |
| | | |