From 6391c2a5356fc64b7b3809e4df342b60e7b079e0 Mon Sep 17 00:00:00 2001 From: kohsuke Date: Tue, 11 Aug 2009 01:09:04 +0000 Subject: [PATCH] adding documentation. git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@20613 71c3de6d-444a-0410-be80-ed276b4c234a --- .../java/hudson/tasks/junit/TestAction.java | 26 ++++++- .../hudson/tasks/junit/CaseResult/list.jelly | 67 ++++++++++--------- .../tasks/junit/CaseResult/summary.jelly | 24 +++++++ .../hudson/maven/MavenTestDataPublisher.java | 15 ++--- .../maven/MavenTestDataPublisher/config.jelly | 40 +++++------ 5 files changed, 111 insertions(+), 61 deletions(-) diff --git a/core/src/main/java/hudson/tasks/junit/TestAction.java b/core/src/main/java/hudson/tasks/junit/TestAction.java index 8b9d43615a..ec2608ac96 100644 --- a/core/src/main/java/hudson/tasks/junit/TestAction.java +++ b/core/src/main/java/hudson/tasks/junit/TestAction.java @@ -1,3 +1,26 @@ +/* + * The MIT License + * + * Copyright (c) 2004-2009, Sun Microsystems, Inc., Tom Huybrechts + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ package hudson.tasks.junit; import hudson.model.Action; @@ -12,7 +35,8 @@ import hudson.model.Action; * * * @author tom - * + * @since 1.320 + * @see TestDataPublisher */ public abstract class TestAction implements Action { diff --git a/core/src/main/resources/hudson/tasks/junit/CaseResult/list.jelly b/core/src/main/resources/hudson/tasks/junit/CaseResult/list.jelly index 9f6c7bac72..861643226e 100644 --- a/core/src/main/resources/hudson/tasks/junit/CaseResult/list.jelly +++ b/core/src/main/resources/hudson/tasks/junit/CaseResult/list.jelly @@ -22,38 +22,41 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. --> + - - - - - - - - - - - - - - - - - - - - -
${%Build}${%Test Description}${%Test Duration}${%Test Result}
- ${b.fullDisplayName} - - - - - ${test.description}${test.durationString} - - - ${pst.message} - -
+ + + + + + + + + + + + + + + + + + + + +
${%Build}${%Test Description}${%Test Duration}${%Test Result}
+ ${b.fullDisplayName} + + + + + ${test.description}${test.durationString} + + + ${pst.message} + +
diff --git a/core/src/main/resources/hudson/tasks/junit/CaseResult/summary.jelly b/core/src/main/resources/hudson/tasks/junit/CaseResult/summary.jelly index 61722343b0..aba0cb45fd 100644 --- a/core/src/main/resources/hudson/tasks/junit/CaseResult/summary.jelly +++ b/core/src/main/resources/hudson/tasks/junit/CaseResult/summary.jelly @@ -1,3 +1,27 @@ + + diff --git a/maven-plugin/src/main/java/hudson/maven/MavenTestDataPublisher.java b/maven-plugin/src/main/java/hudson/maven/MavenTestDataPublisher.java index d1287e04ae..cfbf56a6e8 100644 --- a/maven-plugin/src/main/java/hudson/maven/MavenTestDataPublisher.java +++ b/maven-plugin/src/main/java/hudson/maven/MavenTestDataPublisher.java @@ -47,6 +47,10 @@ import net.sf.json.JSONObject; import org.kohsuke.stapler.StaplerRequest; +/** + * Augments {@link SurefireReport} by executing {@link TestDataPublisher}s. + * @since 1.320 + */ public class MavenTestDataPublisher extends Recorder { private final DescribableList> testDataPublishers; @@ -102,14 +106,9 @@ public class MavenTestDataPublisher extends Recorder { } @Override - public Publisher newInstance(StaplerRequest req, JSONObject formData) - throws hudson.model.Descriptor.FormException { - DescribableList> testDataPublishers = new DescribableList>( - new Saveable() { - public void save() throws IOException { - // no-op - } - }); + public Publisher newInstance(StaplerRequest req, JSONObject formData) throws FormException { + DescribableList> testDataPublishers + = new DescribableList>(Saveable.NOOP); testDataPublishers.rebuild(req, formData, TestDataPublisher.all()); return new MavenTestDataPublisher(testDataPublishers); diff --git a/maven-plugin/src/main/resources/hudson/maven/MavenTestDataPublisher/config.jelly b/maven-plugin/src/main/resources/hudson/maven/MavenTestDataPublisher/config.jelly index d7f1ad1c4b..d264a1cd76 100644 --- a/maven-plugin/src/main/resources/hudson/maven/MavenTestDataPublisher/config.jelly +++ b/maven-plugin/src/main/resources/hudson/maven/MavenTestDataPublisher/config.jelly @@ -23,24 +23,24 @@ THE SOFTWARE. --> - - - - - - - - - - - - -
-
-
+ xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form"> + + + + + + + + + + + + +
+
+
\ No newline at end of file -- GitLab