public class TestHarness
extends TestCase
Modifier and Type | Field and Description |
---|---|
protected static String |
ABORT_ON_FAIL |
protected static boolean |
abortOnFail |
protected static org.apache.log4j.Appender |
console |
protected static String |
IMPLEMENTATION_PATH |
protected static String |
LOCAL_ADDRESS |
protected static String |
LOG_FILE_NAME |
protected static String |
logFileName |
protected static String |
path |
protected static PrintWriter |
printWriter |
protected static int |
RI_PORT |
protected static AddressFactory |
riAddressFactory |
protected static SipFactory |
riFactory |
protected static HeaderFactory |
riHeaderFactory |
protected static MessageFactory |
riMessageFactory |
protected static int |
testCounter |
protected TestResult |
testResult |
protected static int |
TI_PORT |
protected static AddressFactory |
tiAddressFactory |
protected static SipFactory |
tiFactory |
protected static HeaderFactory |
tiHeaderFactory |
protected static MessageFactory |
tiMessageFactory |
Modifier | Constructor and Description |
---|---|
protected |
TestHarness()
Default constructor
|
|
TestHarness(String name) |
protected |
TestHarness(String name,
boolean autoDialog) |
Modifier and Type | Method and Description |
---|---|
static void |
assertEquals(Object me,
Object him) |
static void |
assertEquals(String reason,
Object me,
Object him) |
static void |
assertEquals(String me,
String him) |
static void |
assertEquals(String reason,
String me,
String him) |
static void |
assertNotNull(String reason,
Object thing) |
static void |
assertNull(String reason,
Object thing) |
static void |
assertSame(String diagnostic,
Object thing,
Object thingie) |
static void |
assertTrue(boolean cond) |
static void |
assertTrue(String diagnostic,
boolean cond) |
static void |
checkImplementsInterface(Class implementationClass,
Class jainInterface) |
static void |
fail() |
static void |
fail(String message) |
static void |
fail(String message,
Exception ex) |
protected String |
getImplementationPath() |
static Properties |
getRiProperties(boolean autoDialog)
Returns a properties object containing all RI settings.
|
static Properties |
getTiProperties()
Returns a properties object containing all TI settings.
|
static boolean |
implementsInterface(Class implementationClass,
Class jainInterface) |
void |
logTestCompleted() |
void |
logTestCompleted(String info) |
void |
setUp() |
void |
tearDown() |
protected static final String IMPLEMENTATION_PATH
protected static final String ABORT_ON_FAIL
protected static final String LOG_FILE_NAME
protected static final String LOCAL_ADDRESS
protected static final int TI_PORT
protected static final int RI_PORT
protected static String logFileName
protected static String path
protected static PrintWriter printWriter
protected static boolean abortOnFail
protected static MessageFactory tiMessageFactory
protected static HeaderFactory tiHeaderFactory
protected static AddressFactory tiAddressFactory
protected static MessageFactory riMessageFactory
protected static HeaderFactory riHeaderFactory
protected static AddressFactory riAddressFactory
protected static int testCounter
protected static SipFactory riFactory
protected static SipFactory tiFactory
protected TestResult testResult
protected static org.apache.log4j.Appender console
protected TestHarness()
public TestHarness(String name)
protected TestHarness(String name, boolean autoDialog)
protected String getImplementationPath()
public static void assertTrue(boolean cond)
public static void assertTrue(String diagnostic, boolean cond)
public static void fail(String message)
public static void fail()
public static void checkImplementsInterface(Class implementationClass, Class jainInterface)
public static boolean implementsInterface(Class implementationClass, Class jainInterface)
public void logTestCompleted()
public void logTestCompleted(String info)
public static Properties getRiProperties(boolean autoDialog)
public static Properties getTiProperties()
Copyright © 2016. All Rights Reserved.