Skip to content

Commit

Permalink
javadoc.
Browse files Browse the repository at this point in the history
  • Loading branch information
avaiss committed Sep 17, 2017
1 parent fdfa6e2 commit 3b13104
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
12 changes: 10 additions & 2 deletions src/main/java/hudson/tasks/junit/JUnitResultArchiver.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,16 @@ public class JUnitResultArchiver extends Recorder implements SimpleBuildStep {
*/
private boolean keepLongStdio;

/**
* Size of stdout/stderr to keep for a succeeded test.
* @since 1.23
*/
private int maxSucceededSize;

/**
* Size of stdout/stderr to keep for a failed test.
* @since 1.23
*/
private int maxFailedSize;

/**
Expand Down Expand Up @@ -129,8 +137,8 @@ private TestResult parse(String expandedTestResults, Run<?,?> run, @Nonnull File
throws IOException, InterruptedException
{
return new JUnitParser(new KeepStdioConfig(this.isKeepLongStdio(),
this.getMaxSucceededSize(),
this.getMaxFailedSize()),
this.getMaxSucceededSize(),
this.getMaxFailedSize()),
this.isAllowEmptyResults())
.parseResult(expandedTestResults, run, workspace, launcher, listener);
}
Expand Down
9 changes: 7 additions & 2 deletions src/main/java/hudson/tasks/junit/SuiteResult.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@
import java.io.FileInputStream;
import java.io.IOException;
import java.io.Serializable;
import java.util.*;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.logging.Logger;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
Expand Down Expand Up @@ -125,7 +130,7 @@ static List<SuiteResult> parse(File xmlReport, boolean keepLongStdio) throws Doc
* Parses the JUnit XML file into {@link SuiteResult}s.
* This method returns a collection, as a single XML may have multiple &lt;testsuite>
* elements wrapped into the top-level &lt;testsuites>.
* @since 1.6
* @since 1.23
*/
static List<SuiteResult> parse(File xmlReport, KeepStdioConfig config) throws DocumentException, IOException, InterruptedException {
List<SuiteResult> r = new ArrayList<SuiteResult>();
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/hudson/tasks/junit/TestResult.java
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ public TestResult(long buildTime, DirectoryScanner results, boolean keepLongStdi
/**
* Collect reports from the given {@link DirectoryScanner}, while
* filtering out all files that were created before the given time.
* @param config plugin configuration.
* @since 1.6
* @param config stdio configuration.
* @since 1.23
*/
public TestResult(long buildTime, DirectoryScanner results, KeepStdioConfig config) throws IOException {
this.config = config;
Expand Down

0 comments on commit 3b13104

Please sign in to comment.