|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.aitools.programd.test.aiml.TestSuite
public class TestSuite
A TestSuite comprises a set of TestCases.
| Field Summary | |
|---|---|
static String |
TESTCASE_NAMESPACE_URI
The test cases namespace URI. |
| Constructor Summary | |
|---|---|
TestSuite(String nameToUse,
Multiplexor multiplexorToUse,
org.apache.log4j.Logger loggerToUse)
Creates a new TestSuite (with no clearInput). |
|
TestSuite(String nameToUse,
String clearInputToUse,
Multiplexor multiplexorToUse,
org.apache.log4j.Logger loggerToUse)
Creates a new TestSuite. |
|
| Method Summary | |
|---|---|
void |
addTestCase(TestCase testCase)
Adds a test case to this suite. |
LinkedList<TestResult> |
getFailures()
|
String |
getName()
|
LinkedList<TestResult> |
getSuccesses()
|
ArrayList<TestCase> |
getTestCases()
|
Iterator<TestCase> |
iterator()
|
static TestSuite |
load(URL path,
URL schema,
org.apache.log4j.Logger logger)
Loads a test suite from the given path. |
static TestSuite |
load(URL path,
URL schema,
Multiplexor multiplexor,
org.apache.log4j.Logger logger)
Loads a test suite from the given path. |
boolean |
run(String botid)
Runs the test cases contained in this suite. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String TESTCASE_NAMESPACE_URI
| Constructor Detail |
|---|
public TestSuite(String nameToUse,
String clearInputToUse,
Multiplexor multiplexorToUse,
org.apache.log4j.Logger loggerToUse)
nameToUse - the name to give the test suiteclearInputToUse - the clearInput for the test suitemultiplexorToUse - the multiplexor to use
public TestSuite(String nameToUse,
Multiplexor multiplexorToUse,
org.apache.log4j.Logger loggerToUse)
nameToUse - the name to give the test suitemultiplexorToUse - the multiplexor to use| Method Detail |
|---|
public Iterator<TestCase> iterator()
iterator in interface Iterable<TestCase>Iterable.iterator()public void addTestCase(TestCase testCase)
testCase - the test case to add.public ArrayList<TestCase> getTestCases()
public String getName()
public boolean run(String botid)
botid - the botid for whom to run the test cases
public LinkedList<TestResult> getSuccesses()
public LinkedList<TestResult> getFailures()
public static TestSuite load(URL path,
URL schema,
org.apache.log4j.Logger logger)
path - the path from which to load the test suiteschema - the URL to the copy of the schema for test cases
public static TestSuite load(URL path,
URL schema,
Multiplexor multiplexor,
org.apache.log4j.Logger logger)
path - the path from which to load the test suiteschema - the URL to the copy of the schema for test casesmultiplexor - the multiplexor to use
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||