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
-
-
Constructor Summary
Constructors Constructor Description ValueSaverAction()
ValueSaverAction(java.lang.String logMatch, boolean logInvocation)
-
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)
-
-
-
Method Detail
-
matches
public final boolean matches(java.lang.Object arg)
- Specified by:
matches
in interfaceorg.hamcrest.Matcher<T>
-
match
protected boolean match(T lastValue2)
-
validate
protected boolean validate(T value)
-
describeTo
public void describeTo(org.hamcrest.Description arg0)
- Specified by:
describeTo
in interfaceorg.hamcrest.SelfDescribing
-
invoke
public java.lang.Object invoke(org.jmock.api.Invocation invocation) throws java.lang.Throwable
- Specified by:
invoke
in interfaceorg.jmock.api.Invokable
- Throws:
java.lang.Throwable
-
toString
public java.lang.String toString()
- Overrides:
toString
in classorg.hamcrest.BaseMatcher<T>
-
-