|
|||||||||
| 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.progeeks.junit.XmlTestLoader
public class XmlTestLoader
Class from running tests that are loaded from XML This class is set up so that it can either be run as a standalone program (with the test configuration supplied as an argument or via a system property) or via a JUnit TestRunner (with its test configuraiton specified as a system property).
| Field Summary | |
|---|---|
static java.lang.String |
CONFIG_FILE_PROPERTY
System property that should contain the name of the test configuration file. |
| Constructor Summary | |
|---|---|
XmlTestLoader()
|
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
Main class - launches the |
static junit.framework.TestSuite |
suite()
Method invoked by a general test runner to get the suite of tests to run. |
static junit.framework.TestSuite |
suite(java.io.Reader in)
Method invoked to actually load the test suite from a reader. |
static junit.framework.TestSuite |
suite(java.lang.String configFile)
Method invoked by a test runner or this application's main method to create a test suite from the supplied configuration file. |
| 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 |
|---|
public static final java.lang.String CONFIG_FILE_PROPERTY
| Constructor Detail |
|---|
public XmlTestLoader()
| Method Detail |
|---|
public static junit.framework.TestSuite suite()
public static junit.framework.TestSuite suite(java.lang.String configFile)
configFile - Configuration file to create test suite from.
public static junit.framework.TestSuite suite(java.io.Reader in)
in - Reader to read the tests from.
public static void main(java.lang.String[] args)
args -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||