mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 14:02:22 +00:00
added a programatic constructor.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@5214 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
69cb171cd2
commit
4f5fd055f1
1 file changed
+8
@@ -8,6 +8,7 @@ import org.dom4j.io.SAXReader;
|
||||
import java.io.File;
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@@ -34,6 +35,13 @@ public final class SuiteResult implements Serializable {
|
||||
private final List<CaseResult> cases = new ArrayList<CaseResult>();
|
||||
private transient TestResult parent;
|
||||
|
||||
SuiteResult(String name, String stdout, String stderr, Collection<CaseResult> cases) throws DocumentException {
|
||||
this.name = name;
|
||||
this.stderr = stderr;
|
||||
this.stdout = stdout;
|
||||
this.cases.addAll(cases);
|
||||
}
|
||||
|
||||
SuiteResult(File xmlReport) throws DocumentException {
|
||||
Document result = new SAXReader().read(xmlReport);
|
||||
Element root = result.getRootElement();
|
||||
|
||||
Reference in new issue
Block a user