|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--junit.framework.Assert | +--com.netriser.xmltestsuite.TestResource | +--com.netriser.xmltestsuite.ConfigurationResource
Provides configuration data and test objects generated an xml file.
Provides the configuration as a resource to other objects. Instantiates test objects from a specified node in the xml input file The default xml pathname is defined by the property ConfigurationResource.file or test.xml
This class is instantiated as a singleton using a factory To obtain a instance use
ConfigurationResource ResourceFactory.getConfigurationResource();
Method Summary | |
org.w3c.dom.Document |
getConfiguration()
Returns the current xml document |
org.w3c.dom.Element |
getTopElement()
Returns the top element in the current xml document |
void |
instatiateTestObjects(org.w3c.dom.Element stepElement,
junit.framework.TestSuite parent)
Instatiate java objects based on the tree of elements whose root is the parameter stepElement. |
void |
instatiateTestObjects(junit.framework.TestSuite parent,
java.lang.String xmlTestRootName)
Instatiate java objects based on the tree of elements whose root is the first element which matches the parameter xmlTestRootName, typically testSuite. |
static void |
setPathname(java.lang.String s)
sets the default xml pathname |
void |
setUp()
Setup the resource before the tests are run |
void |
tearDown()
Tidy up the resource after the tests are run |
Methods inherited from class com.netriser.xmltestsuite.TestResource |
debug, getDebugMode, getVerboseMode, setDebug, setVerbose, useTestResult, verbose |
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 |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void setPathname(java.lang.String s)
public org.w3c.dom.Document getConfiguration()
public org.w3c.dom.Element getTopElement()
public void setUp()
TestResource
setUp
in interface TestResourceInterface
setUp
in class TestResource
TestResource.setUp()
public void tearDown()
TestResource
tearDown
in interface TestResourceInterface
tearDown
in class TestResource
TestResource.tearDown()
public void instatiateTestObjects(junit.framework.TestSuite parent, java.lang.String xmlTestRootName)
parent
- xmlTestRootName
- public void instatiateTestObjects(org.w3c.dom.Element stepElement, junit.framework.TestSuite parent)
stepElement
- parent
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |