|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.jelly.TagSupport org.apache.commons.jelly.tags.junit.RunTag
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.
Field Summary |
Fields inherited from class org.apache.commons.jelly.TagSupport |
body, context, hasTrimmed, parent, shouldTrim |
Constructor Summary | |
RunTag()
|
Method Summary | |
protected junit.framework.TestResult |
createResult(org.apache.commons.jelly.XMLOutput output)
Factory method to create a new TestResult to capture the output of the test cases |
protected junit.framework.TestListener |
createTestListener(org.apache.commons.jelly.XMLOutput output)
Factory method to create a new TestListener to capture the output of the test cases |
void |
doTag(org.apache.commons.jelly.XMLOutput output)
|
junit.framework.TestListener |
getListener()
Returns the listener. |
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. |
protected void |
handleSAXException(org.xml.sax.SAXException e)
Handles SAX Exceptions |
void |
setListener(junit.framework.TestListener listener)
Sets the TestListener.to be used to format the output of running the unit test cases |
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 |
protected java.lang.String |
stackTraceToString(java.lang.Throwable t)
|
Methods inherited from class org.apache.commons.jelly.TagSupport |
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RunTag()
Method Detail |
public void doTag(org.apache.commons.jelly.XMLOutput output) throws org.apache.commons.jelly.MissingAttributeException, org.apache.commons.jelly.JellyTagException
org.apache.commons.jelly.MissingAttributeException
org.apache.commons.jelly.JellyTagException
public junit.framework.TestResult getResult()
public junit.framework.Test getTest()
public void setResult(junit.framework.TestResult result)
result
- The TestResult to usepublic void setTest(junit.framework.Test test)
test
- The test to runpublic junit.framework.TestListener getListener()
public void setListener(junit.framework.TestListener listener)
listener
- The listener to setprotected junit.framework.TestResult createResult(org.apache.commons.jelly.XMLOutput output)
protected junit.framework.TestListener createTestListener(org.apache.commons.jelly.XMLOutput output)
protected java.lang.String stackTraceToString(java.lang.Throwable t)
protected void handleSAXException(org.xml.sax.SAXException e)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |