|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--junit.framework.Assert | +--junit.framework.TestCase | +--xbn.util.XBNTestCase
A JUnit TestCase with some XBN-specificizationizisims.
Source code: XBNTestCase.java
Just A Call To Another Function, meaning that there should only be minimal tests for this function (the one that calls the other one).
Constructor Summary | |
XBNTestCase(String s_name)
Create an XBNTestCase. |
Method Summary | |
static int |
getBadCount()
|
static int |
getGoodCount()
|
static void |
printSummary()
|
protected void |
setUp()
|
protected static void |
sop(String s_message)
Print a line of output to standard out. |
protected static void |
sopl(String s_message)
Print a line of output to standard out. |
protected void |
tearDown()
|
static void |
xassertEquals(boolean b_expected,
boolean b_actual)
|
static void |
xassertEquals(byte y_expected,
byte y_actual)
|
static void |
xassertEquals(char c_expected,
char c_actual)
|
static void |
xassertEquals(double d_expected,
double d_actual,
double d_delta)
|
static void |
xassertEquals(float f_expected,
float f_actual,
float f_delta)
|
static void |
xassertEquals(int i_expected,
int i_actual)
|
static void |
xassertEquals(long l_expected,
long l_actual)
|
static void |
xassertEquals(Object o_expected,
Object o_actual)
|
static void |
xassertEquals(short r_expected,
short r_actual)
|
static void |
xassertEquals(String s_message,
boolean b_expected,
boolean b_actual)
|
static void |
xassertEquals(String s_message,
byte y_expected,
byte y_actual)
|
static void |
xassertEquals(String s_message,
char c_expected,
char c_actual)
|
static void |
xassertEquals(String s_message,
double d_expected,
double d_actual,
double d_delta)
|
static void |
xassertEquals(String s_message,
float f_expected,
float f_actual,
float f_delta)
|
static void |
xassertEquals(String s_message,
int i_expected,
int i_actual)
|
static void |
xassertEquals(String s_message,
long l_expected,
long l_actual)
|
static void |
xassertEquals(String s_message,
Object o_expected,
Object o_actual)
|
static void |
xassertEquals(String s_message,
short r_expected,
short r_actual)
|
static void |
xassertEquals(String s_expected,
String s_actual)
|
static void |
xassertEquals(String s_message,
String s_expected,
String s_actual)
|
static void |
xassertFalse(boolean b_condition)
|
static void |
xassertFalse(String s_message,
boolean b_condition)
|
static void |
xassertNotNull(Object o_bject)
|
static void |
xassertNotNull(String s_message,
Object o_bject)
|
static void |
xassertNotSame(Object o_expected,
Object o_actual)
|
static void |
xassertNotSame(String s_message,
Object o_expected,
Object o_actual)
|
static void |
xassertNull(Object o_bject)
|
static void |
xassertNull(String s_message,
Object o_bject)
|
static void |
xassertSame(Object o_expected,
Object o_actual)
|
static void |
xassertSame(String s_message,
Object o_expected,
Object o_actual)
|
static void |
xassertTrue()
|
static void |
xassertTrue(boolean b_condition)
|
static void |
xassertTrue(String s_message,
boolean b_condition)
|
static void |
xfail()
|
static void |
xfail(String s_message)
|
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public XBNTestCase(String s_name)
Create an XBNTestCase.
Method Detail |
protected static final void sopl(String s_message)
Print a line of output to standard out. For the purposes of debugging.
Equal to System.out.println(s_message)
s_message
- The message to output.protected static final void sop(String s_message)
Print a line of output to standard out. For the purposes of debugging.
Equal to System.out.print(s_message)
s_message
- The message to output.public static void xassertTrue(boolean b_condition)
public static void xassertFalse(boolean b_condition)
public static void xassertNotNull(Object o_bject)
public static void xassertNotSame(Object o_expected, Object o_actual)
public static void xassertNull(Object o_bject)
public static void xassertSame(Object o_expected, Object o_actual)
public static void xassertEquals(boolean b_expected, boolean b_actual)
public static void xassertEquals(byte y_expected, byte y_actual)
public static void xassertEquals(char c_expected, char c_actual)
public static void xassertEquals(double d_expected, double d_actual, double d_delta)
public static void xassertEquals(float f_expected, float f_actual, float f_delta)
public static void xassertEquals(int i_expected, int i_actual)
public static void xassertEquals(long l_expected, long l_actual)
public static void xassertEquals(Object o_expected, Object o_actual)
public static void xassertEquals(short r_expected, short r_actual)
public static void xfail()
public static void xassertTrue()
public static void xassertEquals(String s_expected, String s_actual)
public static void xassertEquals(String s_message, boolean b_expected, boolean b_actual)
public static void xassertEquals(String s_message, byte y_expected, byte y_actual)
public static void xassertEquals(String s_message, char c_expected, char c_actual)
public static void xassertEquals(String s_message, double d_expected, double d_actual, double d_delta)
public static void xassertEquals(String s_message, float f_expected, float f_actual, float f_delta)
public static void xassertEquals(String s_message, int i_expected, int i_actual)
public static void xassertEquals(String s_message, long l_expected, long l_actual)
public static void xassertEquals(String s_message, Object o_expected, Object o_actual)
public static void xassertEquals(String s_message, short r_expected, short r_actual)
public static void xassertEquals(String s_message, String s_expected, String s_actual)
public static void xassertFalse(String s_message, boolean b_condition)
public static void xassertNotNull(String s_message, Object o_bject)
public static void xassertNotSame(String s_message, Object o_expected, Object o_actual)
public static void xassertNull(String s_message, Object o_bject)
public static void xassertSame(String s_message, Object o_expected, Object o_actual)
public static void xassertTrue(String s_message, boolean b_condition)
public static void xfail(String s_message)
public static final int getGoodCount()
public static final int getBadCount()
public static final void printSummary()
protected void setUp() throws Exception
setUp
in class TestCase
protected void tearDown() throws Exception
tearDown
in class TestCase
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 1997-2003, Jeff Epstein, All Rights Reserved. See top of source code files for copyright notice.
http://sourceforge.net/projects/xbnjava