public abstract class BaseTestCase extends BaseExpectations
Modifier and Type | Class and Description |
---|---|
protected static class |
BaseTestCase.FieldData |
protected class |
BaseTestCase.SimpleAction |
BaseExpectations.ReturnField, BaseExpectations.StringArrayMatcher, BaseExpectations.ValueSaverAction<T>
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
LOG |
context, showAllExpectations
Constructor and Description |
---|
BaseTestCase() |
Modifier and Type | Method and Description |
---|---|
protected 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 |
fail(String message) |
protected static ByteBuffer |
hexToByteBuffer(String hex) |
protected Object |
inject(Object testedObject,
BaseTestCase.FieldData fieldData) |
protected Object |
inject(Object testedObject,
String memberName,
Object member) |
protected Object |
injectStatic(Class<?> clazz,
String memberName,
Object member) |
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
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 InetAddress asInet(int intValue)
public static void fail(String message)
public static void fail()
public static void assertNotNull(Object object)
public static void assertNull(Object object)
protected Object inject(Object testedObject, String memberName, Object member) throws Exception
Exception
protected Object injectStatic(Class<?> clazz, String memberName, Object member) throws Exception
Exception
protected Object inject(Object testedObject, BaseTestCase.FieldData fieldData)
protected static ByteBuffer hexToByteBuffer(String hex)
protected static void assertHexEquals(short expected, short actual)
protected static void assertHexEquals(byte expected, byte actual)
Copyright © 2019 OpenDaylight. All rights reserved.