Class BaseExpectations.ValueSaverAction<T>

java.lang.Object
org.hamcrest.BaseMatcher<T>
org.opendaylight.lispflowmapping.tools.junit.BaseExpectations.ValueSaverAction<T>
All Implemented Interfaces:
org.hamcrest.Matcher<T>, org.hamcrest.SelfDescribing, org.jmock.api.Action, org.jmock.api.Invokable
Enclosing class:
BaseExpectations

public static class BaseExpectations.ValueSaverAction<T> extends org.hamcrest.BaseMatcher<T> implements org.jmock.api.Action
  • Field Details

    • lastValue

      public T lastValue
    • values

      public final List<T> values
  • Constructor Details

    • ValueSaverAction

      public ValueSaverAction()
    • ValueSaverAction

      public ValueSaverAction(String logMatch, boolean logInvocation)
  • Method Details

    • matches

      public final boolean matches(Object arg)
      Specified by:
      matches in interface org.hamcrest.Matcher<T>
    • onMatch

      protected T onMatch(T value)
    • match

      protected boolean match(T lastValue2)
    • validate

      protected boolean validate(T value)
    • transformOnMatch

      protected T transformOnMatch(T value)
    • describeTo

      public void describeTo(org.hamcrest.Description arg0)
      Specified by:
      describeTo in interface org.hamcrest.SelfDescribing
    • invoke

      public Object invoke(org.jmock.api.Invocation invocation) throws Throwable
      Specified by:
      invoke in interface org.jmock.api.Invokable
      Throws:
      Throwable
    • toString

      public String toString()
      Overrides:
      toString in class org.hamcrest.BaseMatcher<T>