/** * Reads the XML information from the stream. * * @param input the stream to read the JUnit XML report from. * @return the parsed instance of the report. * @throws JDOMException on any parsing problem. * @throws IOException if the stream cannot be read. */ public JUnitTestCaseDoc read(final InputStream input) throws JDOMException, IOException { final JUnitTestCaseDoc testCaseDoc = new JUnitTestCaseDoc(); final Document document = builder.build(input); @SuppressWarnings("unchecked") final List<Element> testCaseElements = XPath.selectNodes(document, "/testsuite/testcase"); for (final Element testCaseElement : testCaseElements) { final JUnitTestMethodDoc testMethodDoc = createTestCase(testCaseElement); testCaseDoc.addTestMethod(testMethodDoc); } return testCaseDoc; }
junitManager.readTestCase(testCaseType); final JUnitTestMethodDoc method = testCase.getTestMethod(testMethodName);
junitManager.readTestCase(testCaseType); final JUnitTestMethodDoc method = testCase.getTestMethod(testMethodName);
junitManager.readTestCase(testCaseType); final JUnitTestMethodDoc method = testCase.getTestMethod(testMethodName);
junitManager.readTestCase(testCaseType); final JUnitTestMethodDoc method = testCase.getTestMethod(testMethodName);