Class BaseExpectations
java.lang.Object
org.jmock.AbstractExpectations
org.jmock.Expectations
org.opendaylight.lispflowmapping.tools.junit.BaseExpectations
- All Implemented Interfaces:
org.jmock.internal.ExpectationBuilder,org.jmock.syntax.ActionClause,org.jmock.syntax.ArgumentConstraintPhrases,org.jmock.syntax.CardinalityClause
- Direct Known Subclasses:
BaseTestCase
public abstract class BaseExpectations
extends org.jmock.Expectations
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static final classfinal classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.jmock.Mockeryprotected static final org.slf4j.Loggerprotected booleanFields inherited from class org.jmock.AbstractExpectations
with -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafter()org.jmock.syntax.ReceiverClauseatLeast(int count) org.jmock.syntax.ReceiverClauseatMost(int count) voidbefore()org.jmock.syntax.ReceiverClausebetween(int minCount, int maxCount) protected static final <T> org.hamcrest.Matcher<T[]>contains(T... expected) protected static final <T> org.hamcrest.Matcher<T[]>doseNotContain(T... forbiddenValues) org.jmock.syntax.ReceiverClauseexactly(int count) protected org.jmock.internal.InvocationExpectationBuilderprotected final voidprotected final voidprotected final voidprotected voidprotected final voidstatic org.jmock.api.ActionreturnValues(Object... result) protected static final <T> org.hamcrest.Matcher<T[]>sameArbitraryArray(T... expectedArr) protected final <T> Tprotected final booleanwanybool()protected final intwanyint()protected final longwanylong()protected final booleanweq(boolean instance) protected final intweq(int instance) protected final longweq(long instance) protected final shortweq(short instance) protected final <T> Tweq(T instance) protected final <T> Twsame(T instance) final String[]Methods inherited from class org.jmock.Expectations
with, with, with, with, with, with, with, withMethods inherited from class org.jmock.AbstractExpectations
a, addParameterMatcher, allowing, allowing, an, aNonNull, aNull, any, anything, buildExpectations, currentBuilder, doAll, equal, ignoring, ignoring, inSequence, inSequences, never, onConsecutiveCalls, one, oneOf, returnEnumeration, returnEnumeration, returnIterator, returnIterator, returnValue, same, then, throwException, when, will, with, with, with, with, with, with, with, with, with, with
-
Field Details
-
context
protected org.jmock.Mockery context -
showAllExpectations
protected boolean showAllExpectations -
LOG
protected static final org.slf4j.Logger LOG
-
-
Constructor Details
-
BaseExpectations
public BaseExpectations()
-
-
Method Details
-
before
- Throws:
Exception
-
after
- Throws:
Exception
-
ret
-
rethrow
-
retField
- Throws:
Exception
-
rets
-
wany
-
wanyint
protected final int wanyint() -
wanylong
protected final long wanylong() -
wanybool
protected final boolean wanybool() -
wsame
protected final <T> T wsame(T instance) -
weq
protected final <T> T weq(T instance) -
weq
protected final short weq(short instance) -
weq
protected final int weq(int instance) -
weq
protected final long weq(long instance) -
weq
protected final boolean weq(boolean instance) -
returnValues
-
retMethod
-
contains
-
sameArbitraryArray
@SafeVarargs protected static final <T> org.hamcrest.Matcher<T[]> sameArbitraryArray(T... expectedArr) -
doseNotContain
@SafeVarargs protected static final <T> org.hamcrest.Matcher<T[]> doseNotContain(T... forbiddenValues) -
wStrArr
- Parameters:
expected- null are considered "any"
-
getCurrentBuilder
protected org.jmock.internal.InvocationExpectationBuilder getCurrentBuilder() -
exactly
public org.jmock.syntax.ReceiverClause exactly(int count) - Specified by:
exactlyin interfaceorg.jmock.syntax.CardinalityClause- Overrides:
exactlyin classorg.jmock.AbstractExpectations
-
atLeast
public org.jmock.syntax.ReceiverClause atLeast(int count) - Specified by:
atLeastin interfaceorg.jmock.syntax.CardinalityClause- Overrides:
atLeastin classorg.jmock.AbstractExpectations
-
between
public org.jmock.syntax.ReceiverClause between(int minCount, int maxCount) - Specified by:
betweenin interfaceorg.jmock.syntax.CardinalityClause- Overrides:
betweenin classorg.jmock.AbstractExpectations
-
atMost
public org.jmock.syntax.ReceiverClause atMost(int count) - Specified by:
atMostin interfaceorg.jmock.syntax.CardinalityClause- Overrides:
atMostin classorg.jmock.AbstractExpectations
-