提交 24c50368 编写于 作者: K kohsuke

Fixed unit tests that I broke

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@16505 71c3de6d-444a-0410-be80-ed276b4c234a
上级 76da65e3
......@@ -80,7 +80,7 @@ public final class CaseResult extends TestObject implements Comparable<CaseResul
return 0.0f;
}
CaseResult(SuiteResult parent, Element testCase, String testCaseName) {
CaseResult(SuiteResult parent, Element testCase, String testClassName) {
// schema for JUnit report XML format is not available in Ant,
// so I don't know for sure what means what.
// reports in http://www.nabble.com/difference-in-junit-publisher-and-ant-junitreport-tf4308604.html#a12265700
......@@ -91,12 +91,12 @@ public final class CaseResult extends TestObject implements Comparable<CaseResul
// // Maven seems to skip classname, and that shows up in testSuite/@name
// cn = parent.getName();
String cn = parent.getName();
className = safe(cn);
testName = safe(testCaseName);
duration = parseTime(testCase);
className = testClassName;
testName = testCase.attributeValue("name");
errorStackTrace = getError(testCase);
errorDetails = getErrorMessage(testCase);
this.parent = parent;
duration = parseTime(testCase);
skipped = isMarkedAsSkipped(testCase);
stdout = testCase.elementText("system-out");
stderr = testCase.elementText("system-err");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册