public UnitTestClassReport add(UnitTestClassReport other) { for (UnitTestResult otherResult : other.getResults()) { add(otherResult); } return this; }
private static void parseTestCase(SMInputCursor testCaseCursor, String testSuiteClassName, UnitTestClassReport report) throws XMLStreamException { report.add(parseTestResult(testCaseCursor, testSuiteClassName)); }
private void parseTestCase(String testSuiteClassName, SMInputCursor testCase) throws XMLStreamException { for (SMEvent event = testCase.getNext(); event != null; event = testCase.getNext()) { if (event.compareTo(SMEvent.START_ELEMENT) == 0) { String testClassName = getClassname(testCase, testSuiteClassName); UnitTestClassReport classReport = index.index(testClassName); parseTestCase(testCase, testSuiteClassName, classReport); } } }
private void setStackAndMessage(UnitTestResult result, SMInputCursor stackAndMessageCursor) throws XMLStreamException { result.setMessage(stackAndMessageCursor.getAttrValue("message")); String stack = stackAndMessageCursor.collectDescendantText(); result.setStackTrace(stack); }
private void parseFiles(SensorContext context, List<File> reports) { UnitTestIndex index = new UnitTestIndex(); parseFiles(reports, index); sanitize(index); save(index, context); }
public String toXml() { StringBuilder sb = new StringBuilder(); return appendXml(sb).toString(); } public StringBuilder appendXml(StringBuilder sb) {
public UnitTestClassReport add(UnitTestClassReport other) { for (UnitTestResult otherResult : other.getResults()) { add(otherResult); } return this; }
private void parseTestCase(SMInputCursor testCaseCursor, UnitTestClassReport report) throws XMLStreamException { report.add(parseTestResult(testCaseCursor)); }
private void parseTestCase(String testSuiteClassName, SMInputCursor testCase) throws XMLStreamException { for (SMEvent event = testCase.getNext(); event != null; event = testCase.getNext()) { if (event.compareTo(SMEvent.START_ELEMENT) == 0) { String testClassName = getClassname(testCase, testSuiteClassName); UnitTestClassReport classReport = index.index(testClassName); parseTestCase(testCase, testSuiteClassName, classReport); } } }
public UnitTestClassReport add(UnitTestClassReport other) { for (UnitTestResult otherResult : other.getResults()) { add(otherResult); } return this; }
private void parseTestCase(SMInputCursor testCaseCursor, UnitTestClassReport report) throws XMLStreamException { report.add(parseTestResult(testCaseCursor)); }
public UnitTestClassReport add(UnitTestClassReport other) { for (UnitTestResult otherResult : other.getResults()) { add(otherResult); } return this; }
private static void parseTestCase(SMInputCursor testCaseCursor, String testSuiteClassName, UnitTestClassReport report) throws XMLStreamException { report.add(parseTestResult(testCaseCursor, testSuiteClassName)); }
public UnitTestClassReport add(UnitTestClassReport other) { for (UnitTestResult otherResult : other.getResults()) { add(otherResult); } return this; }
private void parseTestCase(SMInputCursor testCaseCursor, UnitTestClassReport report) throws XMLStreamException { report.add(parseTestResult(testCaseCursor)); }