Package org.elasticsearch.test
Class ActionListenerUtils
java.lang.Object
org.elasticsearch.test.ActionListenerUtils
Test utilities for working with
ActionListener
s.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ActionListener<T>
Returns a Mockito matcher for any argument that is anActionListener
.static <T> Collection<T>
Returns a Mockito matcher for any argument that is aCollection
.
-
Constructor Details
-
ActionListenerUtils
public ActionListenerUtils()
-
-
Method Details
-
anyActionListener
Returns a Mockito matcher for any argument that is anActionListener
.- Type Parameters:
T
- the action listener type that the caller expects. Do not specify this, it will be inferred- Returns:
- an action listener matcher
-
anyCollection
Returns a Mockito matcher for any argument that is aCollection
.- Type Parameters:
T
- the action listener type that the caller expects. Do not specify this, it will be inferred- Returns:
- a collection matcher
-