Class ActionListenerUtils

java.lang.Object
org.elasticsearch.test.ActionListenerUtils

public abstract class ActionListenerUtils extends Object
Test utilities for working with ActionListeners.
  • Constructor Details

    • ActionListenerUtils

      public ActionListenerUtils()
  • Method Details

    • anyActionListener

      public static <T> org.elasticsearch.action.ActionListener<T> anyActionListener()
      Returns a Mockito matcher for any argument that is an ActionListener.
      Type Parameters:
      T - the action listener type that the caller expects. Do not specify this, it will be inferred
      Returns:
      an action listener matcher