Class 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 Summary

      Fields 
      Modifier and Type Field Description
      T lastValue  
      java.util.List<T> values  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void describeTo​(org.hamcrest.Description arg0)  
      java.lang.Object invoke​(org.jmock.api.Invocation invocation)  
      protected boolean match​(T lastValue2)  
      boolean matches​(java.lang.Object arg)  
      protected T onMatch​(T value)  
      java.lang.String toString()  
      protected T transformOnMatch​(T value)  
      protected boolean validate​(T value)  
      • Methods inherited from class org.hamcrest.BaseMatcher

        _dont_implement_Matcher___instead_extend_BaseMatcher_, describeMismatch
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • lastValue

        public T lastValue
      • values

        public final java.util.List<T> values
    • Constructor Detail

      • ValueSaverAction

        public ValueSaverAction()
      • ValueSaverAction

        public ValueSaverAction​(java.lang.String logMatch,
                                boolean logInvocation)
    • Method Detail

      • matches

        public final boolean matches​(java.lang.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 java.lang.Object invoke​(org.jmock.api.Invocation invocation)
                                throws java.lang.Throwable
        Specified by:
        invoke in interface org.jmock.api.Invokable
        Throws:
        java.lang.Throwable
      • toString

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