org.apache.commons.jelly.tags.junit
Class RunTag
java.lang.Object
|
+--org.apache.commons.jelly.TagSupport
|
+--org.apache.commons.jelly.tags.junit.RunTag
- All Implemented Interfaces:
- Tag
- public class RunTag
- extends TagSupport
This tag will run the given Test which could be an individual TestCase or a TestSuite.
The TestResult can be specified to capture the output, otherwise the results are output
as XML so that they can be formatted in some custom manner.
- Version:
- $Revision: 1.8 $
- Author:
- James Strachan
Method Summary |
protected junit.framework.TestResult |
createResult(XMLOutput output)
Factory method to create a new TestResult to capture the output of
the test cases |
void |
doTag(XMLOutput output)
Evaluates this tag after all the tags properties have been initialized. |
junit.framework.TestResult |
getResult()
Returns the TestResult used to capture the output of the test. |
junit.framework.Test |
getTest()
Returns the Test to be ran. |
void |
setResult(junit.framework.TestResult result)
Sets the JUnit TestResult used to capture the results of the tst |
void |
setTest(junit.framework.Test test)
Sets the JUnit Test to run which could be an individual test or a TestSuite |
Methods inherited from class org.apache.commons.jelly.TagSupport |
findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getContext, getParent, invokeBody, isTrim, setBody, setContext, setParent, setTrim, trimBody |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RunTag
public RunTag()
doTag
public void doTag(XMLOutput output)
throws java.lang.Exception
- Description copied from interface:
Tag
- Evaluates this tag after all the tags properties have been initialized.
getResult
public junit.framework.TestResult getResult()
- Returns the TestResult used to capture the output of the test.
- Returns:
- TestResult
getTest
public junit.framework.Test getTest()
- Returns the Test to be ran.
- Returns:
- Test
setResult
public void setResult(junit.framework.TestResult result)
- Sets the JUnit TestResult used to capture the results of the tst
- Parameters:
result
- The TestResult to use
setTest
public void setTest(junit.framework.Test test)
- Sets the JUnit Test to run which could be an individual test or a TestSuite
- Parameters:
test
- The test to run
createResult
protected junit.framework.TestResult createResult(XMLOutput output)
- Factory method to create a new TestResult to capture the output of
the test cases
Copyright © 2002-2002 Apache Software Foundation. All Rights Reserved.