Class TestCapturingListener<T>
java.lang.Object
org.opensearch.common.util.TestCapturingListener<T>
- Type Parameters:
T- the result type
- All Implemented Interfaces:
org.opensearch.core.action.ActionListener<T>
public class TestCapturingListener<T>
extends Object
implements org.opensearch.core.action.ActionListener<T>
A simple implementation of
ActionListener that captures the response and failures used for testing purposes.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TestCapturingListener
public TestCapturingListener()
-
-
Method Details
-
onResponse
-
onFailure
-
getResult
-
getFailure
-