parent
537fea313f
commit
8b135226f6
|
@ -392,7 +392,8 @@ public class MockClientBuilder {
|
||||||
doAnswer(new Answer<Void>() {
|
doAnswer(new Answer<Void>() {
|
||||||
@Override
|
@Override
|
||||||
public Void answer(InvocationOnMock invocationOnMock) throws Throwable {
|
public Void answer(InvocationOnMock invocationOnMock) throws Throwable {
|
||||||
ActionListener<IndicesAliasesResponse> listener = (ActionListener<IndicesAliasesResponse>) invocationOnMock.getArguments()[0];
|
ActionListener<IndicesAliasesResponse> listener =
|
||||||
|
(ActionListener<IndicesAliasesResponse>) invocationOnMock.getArguments()[0];
|
||||||
listener.onResponse(mock(IndicesAliasesResponse.class));
|
listener.onResponse(mock(IndicesAliasesResponse.class));
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue