Skip to content

Commit 3b13104

Browse files
committed
javadoc.
1 parent fdfa6e2 commit 3b13104

File tree

3 files changed

+19
-6
lines changed

3 files changed

+19
-6
lines changed

src/main/java/hudson/tasks/junit/JUnitResultArchiver.java

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,16 @@ public class JUnitResultArchiver extends Recorder implements SimpleBuildStep {
7575
*/
7676
private boolean keepLongStdio;
7777

78+
/**
79+
* Size of stdout/stderr to keep for a succeeded test.
80+
* @since 1.23
81+
*/
7882
private int maxSucceededSize;
7983

84+
/**
85+
* Size of stdout/stderr to keep for a failed test.
86+
* @since 1.23
87+
*/
8088
private int maxFailedSize;
8189

8290
/**
@@ -129,8 +137,8 @@ private TestResult parse(String expandedTestResults, Run<?,?> run, @Nonnull File
129137
throws IOException, InterruptedException
130138
{
131139
return new JUnitParser(new KeepStdioConfig(this.isKeepLongStdio(),
132-
this.getMaxSucceededSize(),
133-
this.getMaxFailedSize()),
140+
this.getMaxSucceededSize(),
141+
this.getMaxFailedSize()),
134142
this.isAllowEmptyResults())
135143
.parseResult(expandedTestResults, run, workspace, launcher, listener);
136144
}

src/main/java/hudson/tasks/junit/SuiteResult.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,12 @@
3636
import java.io.FileInputStream;
3737
import java.io.IOException;
3838
import java.io.Serializable;
39-
import java.util.*;
39+
import java.util.ArrayList;
40+
import java.util.HashMap;
41+
import java.util.HashSet;
42+
import java.util.List;
43+
import java.util.Map;
44+
import java.util.Set;
4045
import java.util.logging.Logger;
4146
import java.util.regex.Matcher;
4247
import java.util.regex.Pattern;
@@ -125,7 +130,7 @@ static List<SuiteResult> parse(File xmlReport, boolean keepLongStdio) throws Doc
125130
* Parses the JUnit XML file into {@link SuiteResult}s.
126131
* This method returns a collection, as a single XML may have multiple &lt;testsuite>
127132
* elements wrapped into the top-level &lt;testsuites>.
128-
* @since 1.6
133+
* @since 1.23
129134
*/
130135
static List<SuiteResult> parse(File xmlReport, KeepStdioConfig config) throws DocumentException, IOException, InterruptedException {
131136
List<SuiteResult> r = new ArrayList<SuiteResult>();

src/main/java/hudson/tasks/junit/TestResult.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ public TestResult(long buildTime, DirectoryScanner results, boolean keepLongStdi
137137
/**
138138
* Collect reports from the given {@link DirectoryScanner}, while
139139
* filtering out all files that were created before the given time.
140-
* @param config plugin configuration.
141-
* @since 1.6
140+
* @param config stdio configuration.
141+
* @since 1.23
142142
*/
143143
public TestResult(long buildTime, DirectoryScanner results, KeepStdioConfig config) throws IOException {
144144
this.config = config;

0 commit comments

Comments
 (0)