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
Modifier and TypeClassDescriptionprotected static final class
final class
static class
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.jmock.Mockery
protected static final org.slf4j.Logger
protected boolean
Fields inherited from class org.jmock.AbstractExpectations
with
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
after()
org.jmock.syntax.ReceiverClause
atLeast
(int count) org.jmock.syntax.ReceiverClause
atMost
(int count) void
before()
org.jmock.syntax.ReceiverClause
between
(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.ReceiverClause
exactly
(int count) protected org.jmock.internal.InvocationExpectationBuilder
protected final void
protected final void
protected final void
protected void
protected final void
static org.jmock.api.Action
returnValues
(Object... result) protected static final <T> org.hamcrest.Matcher<T[]>
sameArbitraryArray
(T... expectedArr) protected final <T> T
protected final boolean
wanybool()
protected final int
wanyint()
protected final long
wanylong()
protected final boolean
weq
(boolean instance) protected final int
weq
(int instance) protected final long
weq
(long instance) protected final short
weq
(short instance) protected final <T> T
weq
(T instance) protected final <T> T
wsame
(T instance) final String[]
Methods inherited from class org.jmock.Expectations
with, with, with, with, with, with, with, with
Methods 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:
exactly
in interfaceorg.jmock.syntax.CardinalityClause
- Overrides:
exactly
in classorg.jmock.AbstractExpectations
-
atLeast
public org.jmock.syntax.ReceiverClause atLeast(int count) - Specified by:
atLeast
in interfaceorg.jmock.syntax.CardinalityClause
- Overrides:
atLeast
in classorg.jmock.AbstractExpectations
-
between
public org.jmock.syntax.ReceiverClause between(int minCount, int maxCount) - Specified by:
between
in interfaceorg.jmock.syntax.CardinalityClause
- Overrides:
between
in classorg.jmock.AbstractExpectations
-
atMost
public org.jmock.syntax.ReceiverClause atMost(int count) - Specified by:
atMost
in interfaceorg.jmock.syntax.CardinalityClause
- Overrides:
atMost
in classorg.jmock.AbstractExpectations
-