public abstract class TestCase
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static int |
assertionCounter |
protected static boolean |
learning
Set this to true when your code is learning the right answers.
|
Constructor and Description |
---|
TestCase() |
Modifier and Type | Method and Description |
---|---|
protected static void |
assertBetween(byte left,
byte mid,
byte right) |
protected static void |
assertBetween(char left,
char mid,
char right) |
protected static void |
assertBetween(double left,
double mid,
double right) |
protected static void |
assertBetween(int left,
int mid,
int right) |
protected static void |
assertBetween(long left,
long mid,
long right) |
protected static void |
assertBetween(short left,
short mid,
short right) |
protected static void |
assertEquals(boolean expected,
boolean actual) |
protected static void |
assertEquals(byte[] b1,
byte[] b2) |
protected static void |
assertEquals(byte expected,
byte actual) |
protected static void |
assertEquals(char expected,
char actual) |
protected static void |
assertEquals(double expected,
double actual,
double delta) |
protected static void |
assertEquals(int[] b1,
int[] b2) |
protected static void |
assertEquals(int expected,
int actual) |
protected static void |
assertEquals(long expected,
long actual) |
protected static void |
assertEquals(java.lang.Object expected,
java.lang.Object actual) |
protected static void |
assertEquals(short expected,
short actual) |
protected static void |
assertFalse(boolean condition) |
protected static void |
assertGreater(byte left,
byte right) |
protected static void |
assertGreater(char left,
char right) |
protected static void |
assertGreater(double left,
double right) |
protected static void |
assertGreater(int left,
int right) |
protected static void |
assertGreater(long left,
long right) |
protected static void |
assertGreater(short left,
short right) |
protected static void |
assertGreaterOrEqual(byte left,
byte right) |
protected static void |
assertGreaterOrEqual(char left,
char right) |
protected static void |
assertGreaterOrEqual(double left,
double right) |
protected static void |
assertGreaterOrEqual(int left,
int right) |
protected static void |
assertGreaterOrEqual(long left,
long right) |
protected static void |
assertGreaterOrEqual(short left,
short right) |
protected static void |
assertLower(byte left,
byte right) |
protected static void |
assertLower(char left,
char right) |
protected static void |
assertLower(double left,
double right) |
protected static void |
assertLower(int left,
int right) |
protected static void |
assertLower(long left,
long right) |
protected static void |
assertLower(short left,
short right) |
protected static void |
assertLowerOrEqual(byte left,
byte right) |
protected static void |
assertLowerOrEqual(char left,
char right) |
protected static void |
assertLowerOrEqual(double left,
double right) |
protected static void |
assertLowerOrEqual(int left,
int right) |
protected static void |
assertLowerOrEqual(long left,
long right) |
protected static void |
assertLowerOrEqual(short left,
short right) |
protected static void |
assertNotEquals(boolean expected,
boolean actual) |
protected static void |
assertNotEquals(byte[] b1,
byte[] b2) |
protected static void |
assertNotEquals(byte expected,
byte actual) |
protected static void |
assertNotEquals(char expected,
char actual) |
protected static void |
assertNotEquals(double expected,
double actual,
double delta) |
protected static void |
assertNotEquals(int expected,
int actual) |
protected static void |
assertNotEquals(long expected,
long actual) |
protected static void |
assertNotEquals(java.lang.Object expected,
java.lang.Object actual) |
protected static void |
assertNotEquals(short expected,
short actual) |
protected static void |
assertNotNull(java.lang.Object object) |
protected static void |
assertNotSame(java.lang.Object expected,
java.lang.Object actual) |
protected static void |
assertNull(java.lang.Object object) |
protected static void |
assertSame(java.lang.Object expected,
java.lang.Object actual) |
protected static void |
assertTrue(boolean actual) |
protected static void |
fail() |
protected static void |
fail(java.lang.String msg) |
protected static void |
fail(java.lang.Throwable e) |
protected static void |
output(java.lang.String s)
Shows the text, in the output listbox, after all tests were finished.
|
protected void |
run() |
protected static void |
status(java.lang.String s)
Shows the text, in a limited (half screen width) region of the TestSuite screen.
|
abstract void |
testRun() |
protected static void |
updateMem()
Updates the label with the available memory.
|
protected static int assertionCounter
protected static boolean learning
public abstract void testRun()
protected void run()
protected static void output(java.lang.String s)
protected static void status(java.lang.String s)
protected static void updateMem()
protected static void fail(java.lang.Throwable e)
protected static void fail(java.lang.String msg)
protected static void fail()
protected static void assertFalse(boolean condition)
protected static void assertNotNull(java.lang.Object object)
protected static void assertNotSame(java.lang.Object expected, java.lang.Object actual)
protected static void assertSame(java.lang.Object expected, java.lang.Object actual)
protected static void assertNull(java.lang.Object object)
protected static void assertTrue(boolean actual)
protected static void assertEquals(int expected, int actual)
protected static void assertEquals(boolean expected, boolean actual)
protected static void assertEquals(java.lang.Object expected, java.lang.Object actual)
protected static void assertEquals(byte[] b1, byte[] b2)
protected static void assertEquals(int[] b1, int[] b2)
protected static void assertEquals(byte expected, byte actual)
protected static void assertEquals(char expected, char actual)
protected static void assertEquals(double expected, double actual, double delta)
protected static void assertEquals(long expected, long actual)
protected static void assertEquals(short expected, short actual)
protected static void assertGreater(char left, char right)
protected static void assertGreater(byte left, byte right)
protected static void assertGreater(short left, short right)
protected static void assertGreater(int left, int right)
protected static void assertGreater(long left, long right)
protected static void assertGreater(double left, double right)
protected static void assertGreaterOrEqual(char left, char right)
protected static void assertGreaterOrEqual(byte left, byte right)
protected static void assertGreaterOrEqual(short left, short right)
protected static void assertGreaterOrEqual(int left, int right)
protected static void assertGreaterOrEqual(long left, long right)
protected static void assertGreaterOrEqual(double left, double right)
protected static void assertLower(char left, char right)
protected static void assertLower(byte left, byte right)
protected static void assertLower(short left, short right)
protected static void assertLower(int left, int right)
protected static void assertLower(long left, long right)
protected static void assertLower(double left, double right)
protected static void assertLowerOrEqual(char left, char right)
protected static void assertLowerOrEqual(byte left, byte right)
protected static void assertLowerOrEqual(short left, short right)
protected static void assertLowerOrEqual(int left, int right)
protected static void assertLowerOrEqual(long left, long right)
protected static void assertLowerOrEqual(double left, double right)
protected static void assertBetween(char left, char mid, char right)
protected static void assertBetween(byte left, byte mid, byte right)
protected static void assertBetween(short left, short mid, short right)
protected static void assertBetween(int left, int mid, int right)
protected static void assertBetween(long left, long mid, long right)
protected static void assertBetween(double left, double mid, double right)
protected static void assertNotEquals(java.lang.Object expected, java.lang.Object actual)
protected static void assertNotEquals(int expected, int actual)
protected static void assertNotEquals(boolean expected, boolean actual)
protected static void assertNotEquals(byte expected, byte actual)
protected static void assertNotEquals(byte[] b1, byte[] b2)
protected static void assertNotEquals(char expected, char actual)
protected static void assertNotEquals(double expected, double actual, double delta)
protected static void assertNotEquals(long expected, long actual)
protected static void assertNotEquals(short expected, short actual)