org.castor.xmlctf
public class CastorTestCase extends junit.framework.TestCase
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
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
public static final short UNKNOWN
public static final short DIRECTORY
public static final short JAR
public static final java.lang.String TEST_DESCRIPTOR
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.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()
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com