|
||||||||||
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 org.apache.geronimo.testsupport.TestSupport
public abstract class TestSupport
Provides support for tests.
Field Summary | |
---|---|
protected File |
BASEDIR
The base-directory which tests should be run from. |
protected Log |
log
Instance logger which tests should use to produce tracing information. |
Constructor Summary | |
---|---|
protected |
TestSupport()
Default constructor. |
protected |
TestSupport(String name)
Constructor for tests that specify a specific test name. |
Method Summary | |
---|---|
protected File |
getBaseDir()
Determine the value of ${basedir}, which should be the base directory of the module which the concreate test class is defined in. |
protected File |
resolveFile(String path)
Resolve the given path to a file rooted to BASEDIR . |
protected String |
resolvePath(String path)
Resolve the given path to a path rooted to BASEDIR . |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final File BASEDIR
This field is initialized from the return of this method on instance construction.
protected Log log
Unless you have a really good reason to, do not change this field from your sub-class. And if you do, please document why you have done so.
Constructor Detail |
---|
protected TestSupport(String name)
This is the prefered constructor for sub-classes to use.
protected TestSupport()
Method Detail |
---|
protected final File getBaseDir()
If The system property basedir is already set, then that value is used, otherwise we determine the value from the codesource of the containing concrete class and set the basedir system property to that value.
This field is always initialized to the value which this method returns.
protected final File resolveFile(String path)
BASEDIR
.
path
- The path to resolve.
protected final String resolvePath(String path)
BASEDIR
.
path
- The path to resolve.
resolveFile(String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |