public class RunTag extends TagSupport
body, context, parent
Constructor and Description |
---|
RunTag() |
Modifier and Type | Method and Description |
---|---|
protected junit.framework.TestResult |
createResult(XMLOutput output)
Factory method to create a new TestResult to capture the output of
the test cases
|
protected junit.framework.TestListener |
createTestListener(XMLOutput output)
Factory method to create a new TestListener 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.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(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 String |
stackTraceToString(Throwable t) |
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody
public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException
Tag
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(XMLOutput output)
protected junit.framework.TestListener createTestListener(XMLOutput output)
protected String stackTraceToString(Throwable t)
protected void handleSAXException(SAXException e)
Copyright © 2014. All rights reserved.