|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.configuration.DefaultContentHandler com.atlassian.bamboo.builder.AntXmlTestResultsParser
public class AntXmlTestResultsParser
This class extracts the interesting test information from the ant test results.
Field Summary |
---|
Fields inherited from class com.atlassian.bamboo.configuration.DefaultContentHandler |
---|
DEFAULT_PARSER |
Constructor Summary | |
---|---|
AntXmlTestResultsParser()
|
Method Summary | |
---|---|
java.util.Set<TestResults> |
getFailedTests()
How many failed tests did the last parsed test report contain? |
int |
getNumberOfErrors()
How many errors did we find in ihe last parsed test report |
int |
getNumberOfTests()
How many tests did the last parsed test report contain? |
java.util.Set<TestResults> |
getSuccessfulTests()
How many successful tests did the last parsed test report contain? |
boolean |
hasErrors()
Does the last parsed test report have any errors? |
void |
parse(java.io.InputStream inputStream)
Extract unit test results from the given maven test report. |
Methods inherited from class com.atlassian.bamboo.configuration.DefaultContentHandler |
---|
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, registerElementParser, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AntXmlTestResultsParser()
Method Detail |
---|
public void parse(java.io.InputStream inputStream) throws java.io.IOException, org.xml.sax.SAXException
inputStream
- Maven test report (XML) stream
java.io.IOException
- if it has trouble reading the file
org.xml.sax.SAXException
- if it has trouble parsing the xmlpublic boolean hasErrors()
public int getNumberOfErrors()
public int getNumberOfTests()
public java.util.Set<TestResults> getSuccessfulTests()
public java.util.Set<TestResults> getFailedTests()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |