Class CaptureMatcher<T>

java.lang.Object
mockit.internal.expectations.argumentMatching.CaptureMatcher<T>
All Implemented Interfaces:
ArgumentMatcher<CaptureMatcher<T>>

public final class CaptureMatcher<T> extends Object implements ArgumentMatcher<CaptureMatcher<T>>
  • Constructor Details

    • CaptureMatcher

      public CaptureMatcher(@NonNull List<T> valueHolder)
  • Method Details

    • setExpectedType

      public void setExpectedType(@NonNull Class<?> expectedType)
    • same

      public boolean same(@NonNull CaptureMatcher<T> other)
      Description copied from interface: ArgumentMatcher
      Indicates whether this matcher instance is functionally the same as another one of the same type.
      Specified by:
      same in interface ArgumentMatcher<T>
    • matches

      public boolean matches(@Nullable Object argValue)
      Description copied from interface: ArgumentMatcher
      Evaluates the matcher for the given argument.
      Specified by:
      matches in interface ArgumentMatcher<T>
    • writeMismatchPhrase

      public void writeMismatchPhrase(@NonNull ArgumentMismatch argumentMismatch)
      Description copied from interface: ArgumentMatcher
      Writes a phrase to be part of an error message describing an argument mismatch.
      Specified by:
      writeMismatchPhrase in interface ArgumentMatcher<T>