Class BaseTestCase
java.lang.Object
org.jmock.AbstractExpectations
org.jmock.Expectations
org.opendaylight.lispflowmapping.tools.junit.BaseExpectations
org.opendaylight.lispflowmapping.tools.junit.BaseTestCase
- All Implemented Interfaces:
org.jmock.internal.ExpectationBuilder
,org.jmock.syntax.ActionClause
,org.jmock.syntax.ArgumentConstraintPhrases
,org.jmock.syntax.CardinalityClause
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static final class
protected class
Nested classes/interfaces inherited from class org.opendaylight.lispflowmapping.tools.junit.BaseExpectations
BaseExpectations.ReturnField, BaseExpectations.StringArrayMatcher, BaseExpectations.ValueSaverAction<T>
-
Field Summary
Fields inherited from class org.opendaylight.lispflowmapping.tools.junit.BaseExpectations
context, showAllExpectations
Fields inherited from class org.jmock.AbstractExpectations
with
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected InetAddress
asInet
(int intValue) protected static void
assertHexEquals
(byte expected, byte actual) protected static void
assertHexEquals
(short expected, short actual) static void
assertNotNull
(Object object) static void
assertNotNull
(String message, Object object) static void
assertNotSame
(Object unexpected, Object actual) static void
assertNotSame
(String message, Object unexpected, Object actual) static void
assertNull
(Object object) static void
assertNull
(Object message, Object object) static void
assertSame
(Object expected, Object actual) static void
assertSame
(String message, Object expected, Object actual) static void
fail()
static void
protected static ByteBuffer
hexToByteBuffer
(String hex) protected Object
protected Object
inject
(Object testedObject, BaseTestCase.FieldData fieldData) protected Object
injectStatic
(Class<?> clazz, String memberName, Object member) Methods inherited from class org.opendaylight.lispflowmapping.tools.junit.BaseExpectations
after, atLeast, atMost, before, between, contains, doseNotContain, exactly, getCurrentBuilder, ret, retField, rethrow, retMethod, rets, returnValues, sameArbitraryArray, wany, wanybool, wanyint, wanylong, weq, weq, weq, weq, weq, wsame, wStrArr
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
-
LOG
protected static final org.slf4j.Logger LOG
-
-
Constructor Details
-
BaseTestCase
public BaseTestCase()
-
-
Method Details
-
asInet
-
fail
-
fail
public static void fail() -
assertNotNull
-
assertNotNull
-
assertNull
-
assertNull
-
assertSame
-
assertSame
-
assertNotSame
-
assertNotSame
-
inject
- Throws:
Exception
-
inject
-
injectStatic
- Throws:
Exception
-
hexToByteBuffer
-
assertHexEquals
protected static void assertHexEquals(short expected, short actual) -
assertHexEquals
protected static void assertHexEquals(byte expected, byte actual)
-