提交 5c65527c 编写于 作者: D dty

The visibility rules for top level test results and test suite results were not

consistent with the recent changes to test case results. Added visibility
attributes to @Exported annotations so that stdout and stderr can be filtered
out of the remote API.



git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@22735 71c3de6d-444a-0410-be80-ed276b4c234a
上级 6b6865e9
......@@ -52,7 +52,7 @@ import org.kohsuke.stapler.export.ExportedBean;
*/
@ExportedBean
public final class SuiteResult implements Serializable {
private final String file;
private final String file;
private final String name;
private final String stdout;
private final String stderr;
......@@ -157,12 +157,12 @@ public final class SuiteResult implements Serializable {
duration += cr.getDuration();
}
@Exported
@Exported(visibility=9)
public String getName() {
return name;
}
@Exported
@Exported(visibility=9)
public float getDuration() {
return duration;
}
......@@ -200,12 +200,12 @@ public final class SuiteResult implements Serializable {
return parent;
}
@Exported
@Exported(visibility=9)
public String getTimestamp() {
return timestamp;
}
@Exported(inline=true)
@Exported(inline=true,visibility=9)
public List<CaseResult> getCases() {
return cases;
}
......
......@@ -230,7 +230,7 @@ public final class TestResult extends MetaTabulatedResult {
return Messages.TestResult_getChildTitle();
}
// TODO once stapler 1.60 is released: @Exported
@Exported(visibility=999)
public float getDuration() {
return duration;
}
......@@ -247,7 +247,7 @@ public final class TestResult extends MetaTabulatedResult {
return failedTests.size();
}
@Exported
@Exported(visibility=999)
@Override
public int getSkipCount() {
return skippedTests;
......@@ -263,7 +263,7 @@ public final class TestResult extends MetaTabulatedResult {
return byPackages.values();
}
@Exported(inline=true)
@Exported(inline=true,visibility=9)
public Collection<SuiteResult> getSuites() {
return suites;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册