|
|||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| TestTagHandlerT.java | - | 100% | 100% | 100% |
|
||||||||||||||
| 1 |
package junit.extensions.xml.elements;
|
|
| 2 |
|
|
| 3 |
import org.w3c.dom.Element;
|
|
| 4 |
import junit.extensions.xml.IXMLTestSuite;
|
|
| 5 |
import junit.framework.TestCase;
|
|
| 6 |
|
|
| 7 |
/**
|
|
| 8 |
* <p>Title: Test the TestTagHandler.</p>
|
|
| 9 |
* <p>Copyright: Copyright (c) 2003</p>
|
|
| 10 |
* <p>Company: JFCUnit OpenSource Project</p>
|
|
| 11 |
* @author Kevin Wilson
|
|
| 12 |
* @version 1.0
|
|
| 13 |
*/
|
|
| 14 |
public class TestTagHandlerT extends TestCase { |
|
| 15 |
/**
|
|
| 16 |
* test tag handler.
|
|
| 17 |
*/
|
|
| 18 |
private TestTagHandler m_testTagHandler = null; |
|
| 19 |
/**
|
|
| 20 |
* element fixture.
|
|
| 21 |
*/
|
|
| 22 |
private ElementFixture m_elementFixture;
|
|
| 23 |
|
|
| 24 |
/**
|
|
| 25 |
* set up the test.
|
|
| 26 |
* @throws Exception may be thrown.
|
|
| 27 |
*/
|
|
| 28 | 1 |
protected void setUp() throws Exception { |
| 29 | 1 |
super.setUp();
|
| 30 | 1 |
m_elementFixture = new ElementFixture(this); |
| 31 | 1 |
m_elementFixture.setUp(); |
| 32 |
} |
|
| 33 |
|
|
| 34 |
/**
|
|
| 35 |
* Tear down the test.
|
|
| 36 |
* @throws Exception may be thrown.
|
|
| 37 |
*/
|
|
| 38 | 1 |
protected void tearDown() throws Exception { |
| 39 | 1 |
m_testTagHandler = null;
|
| 40 | 1 |
m_elementFixture.tearDown(); |
| 41 |
|
|
| 42 | 1 |
m_elementFixture = null;
|
| 43 | 1 |
super.tearDown();
|
| 44 |
} |
|
| 45 |
|
|
| 46 |
/**
|
|
| 47 |
* Test the consturctor.
|
|
| 48 |
*/
|
|
| 49 | 1 |
public void testTagHandler() { |
| 50 | 1 |
Element e = m_elementFixture.getTestElement(); |
| 51 | 1 |
IXMLTestSuite suite = m_elementFixture.getTestSuite(); |
| 52 | 1 |
m_testTagHandler = new TestTagHandler(e, suite);
|
| 53 | 1 |
m_testTagHandler.processElement(); |
| 54 |
} |
|
| 55 |
} |
|
| 56 |
|
|
||||||||||