|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.jcoderz.commons.TestCase
public abstract class TestCase
Base class for a JUnit test that provides additional utility methods.
| Constructor Summary | |
|---|---|
TestCase()
Default constructor. |
|
TestCase(String name)
Constructs a TestCase with the given name. |
|
| Method Summary | |
|---|---|
static File |
getBaseDir()
Returns the projects base directory. |
static String |
getHostName()
Returns the hostname of localhost. |
static TestSuite |
getSuite(Class testClass)
Create a TestSuite using the TestCase subclass and the list of test cases to run specified using the TEST_CASES JVM property. |
static boolean |
hasTestCases()
Check to see if the test cases property is set. |
| 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, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TestCase()
public TestCase(String name)
name.
name - The test case name.| Method Detail |
|---|
public static File getBaseDir()
public static String getHostName()
public static boolean hasTestCases()
public static TestSuite getSuite(Class testClass)
throws RuntimeException,
IllegalArgumentException
testClass - the TestCase subclass to instantiate as tests in
the suite.
IllegalArgumentException - if testClass is not a subclass or
implementation of junit.framework.TestCase.
RuntimeException - if testClass is written incorrectly and does
not have the approriate constructor.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||