public abstract class BaseExpectations
extends org.jmock.Expectations
Modifier and Type | Class and Description |
---|---|
protected static class |
BaseExpectations.ReturnField |
class |
BaseExpectations.StringArrayMatcher |
static class |
BaseExpectations.ValueSaverAction<T> |
Modifier and Type | Field and Description |
---|---|
protected org.jmock.Mockery |
context |
protected static org.slf4j.Logger |
LOG |
protected boolean |
showAllExpectations |
Constructor and Description |
---|
BaseExpectations() |
Modifier and Type | Method and Description |
---|---|
void |
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 <T> org.hamcrest.Matcher<T[]> |
contains(T... expected) |
protected static <T> org.hamcrest.Matcher<T[]> |
doseNotContain(T... forbiddenValues) |
org.jmock.syntax.ReceiverClause |
exactly(int count) |
protected org.jmock.internal.InvocationExpectationBuilder |
getCurrentBuilder() |
protected void |
ret(Object result) |
protected void |
retField(Object container,
String fieldName) |
protected void |
rethrow(Throwable throwable) |
protected void |
retMethod(String methodName) |
protected void |
rets(Object... results) |
static org.jmock.api.Action |
returnValues(Object... result) |
protected static <T> org.hamcrest.Matcher<T[]> |
sameArbitraryArray(T... expectedArr) |
protected <T> T |
wany(Class<T> type) |
protected boolean |
wanybool() |
protected int |
wanyint() |
protected long |
wanylong() |
protected boolean |
weq(boolean instance) |
protected int |
weq(int instance) |
protected long |
weq(long instance) |
protected short |
weq(short instance) |
protected <T> T |
weq(T instance) |
protected <T> T |
wsame(T instance) |
String[] |
wStrArr(Object... expected) |
a, 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, with, with, with, with, with, with, with, with
protected org.jmock.Mockery context
protected boolean showAllExpectations
protected static final org.slf4j.Logger LOG
protected final void ret(Object result)
protected final void rethrow(Throwable throwable)
protected final void retField(Object container, String fieldName) throws Exception
Exception
protected final void rets(Object... results)
protected final <T> T wany(Class<T> type)
protected final int wanyint()
protected final long wanylong()
protected final boolean wanybool()
protected final <T> T wsame(T instance)
protected final <T> T weq(T instance)
protected final short weq(short instance)
protected final int weq(int instance)
protected final long weq(long instance)
protected final boolean weq(boolean instance)
public static org.jmock.api.Action returnValues(Object... result)
protected void retMethod(String methodName)
@SafeVarargs protected static final <T> org.hamcrest.Matcher<T[]> contains(T... expected)
@SafeVarargs protected static final <T> org.hamcrest.Matcher<T[]> sameArbitraryArray(T... expectedArr)
@SafeVarargs protected static final <T> org.hamcrest.Matcher<T[]> doseNotContain(T... forbiddenValues)
public final String[] wStrArr(Object... expected)
expected
- null are considered "any"protected org.jmock.internal.InvocationExpectationBuilder getCurrentBuilder()
public org.jmock.syntax.ReceiverClause exactly(int count)
exactly
in interface org.jmock.syntax.CardinalityClause
exactly
in class org.jmock.Expectations
public org.jmock.syntax.ReceiverClause atLeast(int count)
atLeast
in interface org.jmock.syntax.CardinalityClause
atLeast
in class org.jmock.Expectations
public org.jmock.syntax.ReceiverClause between(int minCount, int maxCount)
between
in interface org.jmock.syntax.CardinalityClause
between
in class org.jmock.Expectations
public org.jmock.syntax.ReceiverClause atMost(int count)
atMost
in interface org.jmock.syntax.CardinalityClause
atMost
in class org.jmock.Expectations
Copyright © 2019 OpenDaylight. All rights reserved.