private void parseFiles(File[] reports, UnitTestIndex index) { SurefireStaxHandler staxParser = new SurefireStaxHandler(index); StaxParser parser = new StaxParser(staxParser, false); for (File report : reports) { try { parser.parse(report); } catch (XMLStreamException e) { throw new RuntimeException( "Fail to parse the Surefire report: " + report, e); } } }
private void parseFiles(File[] reports, UnitTestIndex index) { SurefireStaxHandler staxParser = new SurefireStaxHandler(index); StaxParser parser = new StaxParser(staxParser, false); for (File report : reports) { try { parser.parse(report); } catch (XMLStreamException e) { throw new IllegalStateException("Fail to parse the Surefire report: " + report, e); } } }
private void parseFiles(File[] reports, UnitTestIndex index) { SurefireStaxHandler staxParser = new SurefireStaxHandler(index); StaxParser parser = new StaxParser(staxParser, false); for (File report : reports) { try { parser.parse(report); } catch (XMLStreamException e) { throw new SonarException("Fail to parse the Surefire report: " + report, e); } } }
private void parseFiles(File[] reports, UnitTestIndex index) { SurefireStaxHandler staxParser = new SurefireStaxHandler(index); StaxParser parser = new StaxParser(staxParser, false); for (File report : reports) { try { parser.parse(report); } catch (XMLStreamException e) { throw new SonarException("Fail to parse the Surefire report: " + report, e); } } }
private void parseFiles(File[] reports, UnitTestIndex index) { SurefireStaxHandler staxParser = new SurefireStaxHandler(index); StaxParser parser = new StaxParser(staxParser, false); for (File report : reports) { try { parser.parse(report); } catch (XMLStreamException e) { throw new SonarException("Fail to parse the Surefire report: " + report, e); } } }
public StaxParser(UnitTestIndex index) { this.streamHandler = new SurefireStaxHandler(index); XMLInputFactory xmlInputFactory = SafetyFactory.createXMLInputFactory(); if (xmlInputFactory instanceof WstxInputFactory) { WstxInputFactory wstxInputfactory = (WstxInputFactory) xmlInputFactory; wstxInputfactory.configureForLowMemUsage(); wstxInputfactory.getConfig().setUndeclaredEntityResolver((String publicID, String systemID, String baseURI, String namespace) -> namespace); } this.inf = new SMInputFactory(xmlInputFactory); }
public StaxParser(UnitTestIndex index) { this.streamHandler = new SurefireStaxHandler(index); XMLInputFactory xmlInputFactory = SafetyFactory.createXMLInputFactory(); if (xmlInputFactory instanceof WstxInputFactory) { WstxInputFactory wstxInputfactory = (WstxInputFactory) xmlInputFactory; wstxInputfactory.configureForLowMemUsage(); wstxInputfactory.getConfig().setUndeclaredEntityResolver((String publicID, String systemID, String baseURI, String namespace) -> namespace); } this.inf = new SMInputFactory(xmlInputFactory); }