|
||||||||
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.castor.xmlctf.CastorTestCase
public class CastorTestCase
Abstracts a test case in the CTF (Castor Test Framework). A CTF test case can be driven by a directory or by a JAR file.
Field Summary | |
---|---|
static short |
DIRECTORY
A directory-based Castor test case. |
static short |
JAR
A JAR-based Castor test case. |
static java.lang.String |
TEST_DESCRIPTOR
Name of the resource for the test descriptor XML document. |
static short |
UNKNOWN
An unknown type of Castor test case. |
Constructor Summary | |
---|---|
CastorTestCase(java.io.File file,
java.lang.String directoryToHere,
java.lang.String outputRoot)
Constructs a CTF test case given a File (either a JAR file or a directory) and a directory where temporary files will be placed. |
|
CastorTestCase(java.lang.String name)
Constructs a CTF test case given only a test case name. |
Method Summary | |
---|---|
java.lang.ClassLoader |
getClassLoader()
|
java.lang.String |
getDirectoryToHere()
|
java.io.File |
getOutputRootFile()
|
java.io.File |
getTestFile()
|
short |
getType()
|
boolean |
isDirectoryCompiled()
Returns a boolean that when true indicates the output directory has been compiled. |
void |
setClassLoader(java.lang.ClassLoader loader)
Sets the ClassLoader to use for loading the resources for this test case. |
void |
setDirectoryCompiled(boolean compiled)
Sets a flag to indicate the output directory has been compiled. |
junit.framework.Test |
suite()
Assembles and returns a test suite containing all known tests. |
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, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final short UNKNOWN
public static final short DIRECTORY
public static final short JAR
public static final java.lang.String TEST_DESCRIPTOR
Constructor Detail |
---|
public CastorTestCase(java.lang.String name)
name
- the name of the test casepublic CastorTestCase(java.io.File file, java.lang.String directoryToHere, java.lang.String outputRoot)
file
- Either a directory containing TestDescriptor.xml or a JAR
file containing META-INF/TestDescriptor.xmldirectoryToHere
- directory path leading to the current test.outputRoot
- Directory where temporary files and output will go.Method Detail |
---|
public java.lang.ClassLoader getClassLoader()
public java.io.File getTestFile()
public short getType()
public java.lang.String getDirectoryToHere()
public java.io.File getOutputRootFile()
public boolean isDirectoryCompiled()
public void setClassLoader(java.lang.ClassLoader loader)
loader
- the class loader to usepublic void setDirectoryCompiled(boolean compiled)
compiled
- true if the output directory for this test case has been
compiledpublic junit.framework.Test suite()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |