Interface StubMatcher

All Superinterfaces:
ArgumentsMatcher

public interface StubMatcher extends ArgumentsMatcher
Matcher that provides stub functionality.
Author:
Daniel Sagenschneider
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    matches(Object[] actual)
    Indicates if the arguments are as expected.
    void
    stub(Object[] arguments)
    Override to provide stub functionality.
  • Method Details

    • stub

      void stub(Object[] arguments)
      Override to provide stub functionality.
      Parameters:
      arguments - Arguments to method.
    • matches

      default boolean matches(Object[] actual)
      Description copied from interface: ArgumentsMatcher
      Indicates if the arguments are as expected.
      Specified by:
      matches in interface ArgumentsMatcher
      Parameters:
      actual - Arguments.
      Returns:
      If matches.