Class TestSuiteXmlParser
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.apache.maven.plugins.surefire.report.TestSuiteXmlParser
- All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler
-
Constructor Summary
ConstructorsConstructorDescriptionTestSuiteXmlParser(org.apache.maven.plugin.surefire.log.api.ConsoleLogger consoleLogger) -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] ch, int start, int length) voidendElement(String uri, String localName, String qName) booleanisValid()parse(InputStreamReader stream) voidstartElement(String uri, String localName, String qName, Attributes attributes) Methods inherited from class DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContentHandler
declaration
-
Constructor Details
-
TestSuiteXmlParser
public TestSuiteXmlParser(org.apache.maven.plugin.surefire.log.api.ConsoleLogger consoleLogger)
-
-
Method Details
-
parse
public List<ReportTestSuite> parse(String xmlPath) throws ParserConfigurationException, SAXException, IOException -
parse
public List<ReportTestSuite> parse(InputStreamReader stream) throws ParserConfigurationException, SAXException, IOException -
startElement
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException - Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler- Throws:
SAXException
-
endElement
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classDefaultHandler- Throws:
SAXException
-
characters
public void characters(char[] ch, int start, int length) - Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classDefaultHandler
-
isValid
public boolean isValid()
-