Class BaseTestCase
- java.lang.Object
-
- 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
public abstract class BaseTestCase extends BaseExpectations
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
BaseTestCase.FieldData
protected class
BaseTestCase.SimpleAction
-
Nested classes/interfaces inherited from class org.opendaylight.lispflowmapping.tools.junit.BaseExpectations
BaseExpectations.ReturnField, BaseExpectations.StringArrayMatcher, BaseExpectations.ValueSaverAction<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Logger
LOG
-
Fields inherited from class org.opendaylight.lispflowmapping.tools.junit.BaseExpectations
context, showAllExpectations
-
-
Constructor Summary
Constructors Constructor Description BaseTestCase()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.net.InetAddress
asInet(int intValue)
protected static void
assertHexEquals(byte expected, byte actual)
protected static void
assertHexEquals(short expected, short actual)
static void
assertNotNull(java.lang.Object object)
static void
assertNotNull(java.lang.String message, java.lang.Object object)
static void
assertNotSame(java.lang.Object unexpected, java.lang.Object actual)
static void
assertNotSame(java.lang.String message, java.lang.Object unexpected, java.lang.Object actual)
static void
assertNull(java.lang.Object object)
static void
assertNull(java.lang.Object message, java.lang.Object object)
static void
assertSame(java.lang.Object expected, java.lang.Object actual)
static void
assertSame(java.lang.String message, java.lang.Object expected, java.lang.Object actual)
static void
fail()
static void
fail(java.lang.String message)
protected static java.nio.ByteBuffer
hexToByteBuffer(java.lang.String hex)
protected java.lang.Object
inject(java.lang.Object testedObject, java.lang.String memberName, java.lang.Object member)
protected java.lang.Object
inject(java.lang.Object testedObject, BaseTestCase.FieldData fieldData)
protected java.lang.Object
injectStatic(java.lang.Class<?> clazz, java.lang.String memberName, java.lang.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
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
-
-
-
-
Method Detail
-
asInet
protected java.net.InetAddress asInet(int intValue)
-
fail
public static void fail(java.lang.String message)
-
fail
public static void fail()
-
assertNotNull
public static void assertNotNull(java.lang.String message, java.lang.Object object)
-
assertNotNull
public static void assertNotNull(java.lang.Object object)
-
assertNull
public static void assertNull(java.lang.Object message, java.lang.Object object)
-
assertNull
public static void assertNull(java.lang.Object object)
-
assertSame
public static void assertSame(java.lang.String message, java.lang.Object expected, java.lang.Object actual)
-
assertSame
public static void assertSame(java.lang.Object expected, java.lang.Object actual)
-
assertNotSame
public static void assertNotSame(java.lang.String message, java.lang.Object unexpected, java.lang.Object actual)
-
assertNotSame
public static void assertNotSame(java.lang.Object unexpected, java.lang.Object actual)
-
inject
protected java.lang.Object inject(java.lang.Object testedObject, java.lang.String memberName, java.lang.Object member) throws java.lang.Exception
- Throws:
java.lang.Exception
-
inject
protected java.lang.Object inject(java.lang.Object testedObject, BaseTestCase.FieldData fieldData)
-
injectStatic
protected java.lang.Object injectStatic(java.lang.Class<?> clazz, java.lang.String memberName, java.lang.Object member) throws java.lang.Exception
- Throws:
java.lang.Exception
-
hexToByteBuffer
protected static java.nio.ByteBuffer hexToByteBuffer(java.lang.String hex)
-
assertHexEquals
protected static void assertHexEquals(short expected, short actual)
-
assertHexEquals
protected static void assertHexEquals(byte expected, byte actual)
-
-