Interface XmlElement

All Known Implementing Classes:
XmlTestCase, XmlTestSequence

public interface XmlElement

Interface which defines the methods required if an external class is used in the system.

To use an external class, ensure that it derives (indirectly or directly) from junit.framework.TestCase, and should be in the class path.

If the class needs access to the xml configuration file, it should implement this interface.

Add the class to the dtd.

If the class has any bean like set accessors, attributes can also be added to the dtd.

For example if the class has a method void myclass::setMyAttr(String) The dtd would be

	<!ATTLIST myclass
and the xml step would be
	<myclass myAttr="a value"/>

Method Summary
 org.w3c.dom.Element getXmlElement()
 void setXmlElement(org.w3c.dom.Element e, org.w3c.dom.Document config)

Method Detail


public void setXmlElement(org.w3c.dom.Element e,
                          org.w3c.dom.Document config)


public org.w3c.dom.Element getXmlElement()