Interface StubMatcher

  • All Superinterfaces:
    ArgumentsMatcher

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

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default boolean matches​(java.lang.Object[] actual)
      Indicates if the arguments are as expected.
      void stub​(java.lang.Object[] arguments)
      Override to provide stub functionality.
    • Method Detail

      • stub

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

        default boolean matches​(java.lang.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.