|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase frysk.junit.TestCase
public class TestCase
frysk specific extension to the JUnit test framework's TestCase.
Field Summary | |
---|---|
private static int |
timeoutSeconds
|
private static Uname |
uname
Results from uname(2) call. |
private static KernelVersion |
version
|
Constructor Summary | |
---|---|
TestCase()
|
Method Summary | |
---|---|
static void |
assertEquals(String what,
BigInteger correct,
BigInteger test)
The BigIntegers have identical values. |
static void |
assertEquals(String what,
byte[] correct,
byte[] test)
The two byte arrays have identical contents. |
static void |
assertEquals(String what,
long correct,
BigInteger test)
The BigInteger is equal to the long value (when compared as BigIntegers). |
static void |
assertEquals(String what,
long correct,
long test)
Override JUnit's long == with one that prints failing values in hex. |
static void |
assertEquals(String what,
String[] correct,
String[] test)
The two String arrays are equal. |
static long |
getTimeoutMilliseconds()
A milli-second timeout. |
static int |
getTimeoutSeconds()
A second timeout. |
protected static boolean |
missing32or64()
The test requires both 32-bit and 64-bit executables. |
(package private) static void |
setTimeoutSeconds(int timeoutSeconds)
Set the second-timeout. |
protected static boolean |
unresolved(int bug)
The test has problems that have not been resolved on all systems; see BUG for more details. |
protected static boolean |
unresolvedOffUtrace(int bug)
A method that returns true, and prints UNRESOLVED, when the build kernel excludes utrace. |
private static boolean |
unresolvedOn(int bug,
KernelMatch matcher)
|
protected static boolean |
unresolvedOn32On64(int bug)
The test has problems that have not been resolved on 64-bit systems trying to control a 32-bit process; see BUG for more details. |
protected static boolean |
unresolvedOnIA32(int bug)
The test has problems that have not been resolved on a X8664 system; see BUG for more details. |
protected static boolean |
unresolvedOnPPC(int bug)
The test has problems that have not been resolved on a PPC system; see BUG for more details. |
protected static boolean |
unresolvedOnUtrace(int bug)
A method that returns true, and prints UNRESOLVED, when the build kernel includes UTRACE. |
protected static boolean |
unresolvedOnx8664(int bug)
The test has problems that have not been resolved on a X8664 system; see BUG for more details. |
protected static boolean |
unsupported(String reason,
boolean notSupported)
A method that returns true, and reports UNSUPPORTED. |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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, 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 |
Field Detail |
---|
private static int timeoutSeconds
private static Uname uname
private static KernelVersion version
Constructor Detail |
---|
public TestCase()
Method Detail |
---|
static void setTimeoutSeconds(int timeoutSeconds)
public static int getTimeoutSeconds()
public static long getTimeoutMilliseconds()
protected static boolean missing32or64()
protected static boolean unsupported(String reason, boolean notSupported)
protected static boolean unresolved(int bug)
protected static boolean unresolvedOnPPC(int bug)
protected static boolean unresolvedOnIA32(int bug)
protected static boolean unresolvedOnx8664(int bug)
protected static boolean unresolvedOn32On64(int bug)
private static boolean unresolvedOn(int bug, KernelMatch matcher)
protected static boolean unresolvedOnUtrace(int bug)
protected static boolean unresolvedOffUtrace(int bug)
public static void assertEquals(String what, byte[] correct, byte[] test)
public static void assertEquals(String what, BigInteger correct, BigInteger test)
public static void assertEquals(String what, long correct, BigInteger test)
public static void assertEquals(String what, String[] correct, String[] test)
public static void assertEquals(String what, long correct, long test)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |