Skip to content

Commit

Permalink
Annotate new methods with @API annotation
Browse files Browse the repository at this point in the history
Add @API annotation to new methods.

Issue: junit-team#3166
  • Loading branch information
mobounya authored and mobounya committed Jan 14, 2024
1 parent 1f2bd90 commit ae0fce5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,18 +75,22 @@ public void setTheme(Theme theme) {
this.theme = theme;
}

@API(status = INTERNAL, since = "5.11")
public Path getStdoutPath() {
return this.stdoutPath;
}

@API(status = INTERNAL, since = "5.11")
public void setStdoutPath(Path stdoutPath) {
this.stdoutPath = stdoutPath;
}

@API(status = INTERNAL, since = "5.11")
public Path getStderrPath() {
return this.stderrPath;
}

@API(status = INTERNAL, since = "5.11")
public void setStderrPath(Path stderrPath) {
this.stderrPath = stderrPath;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,24 +206,28 @@ private void printSummary(TestExecutionSummary summary, PrintWriter out) {
summary.printTo(out);
}

@API(status = INTERNAL, since = "5.11")
private boolean isSameFile(Path path1, Path path2) {
if (path1 == null || path2 == null)
return false;
return (path1.normalize().toAbsolutePath().equals(path2.normalize().toAbsolutePath()));
}

@API(status = INTERNAL, since = "5.11")
private void captureStdout() {
Map<String, String> configParameters = new HashMap<>(discoveryOptions.getConfigurationParameters());
configParameters.put(LauncherConstants.CAPTURE_STDOUT_PROPERTY_NAME, "true");
discoveryOptions.setConfigurationParameters(configParameters);
}

@API(status = INTERNAL, since = "5.11")
private void captureStderr() {
Map<String, String> configParameters = new HashMap<>(discoveryOptions.getConfigurationParameters());
configParameters.put(LauncherConstants.CAPTURE_STDERR_PROPERTY_NAME, "true");
discoveryOptions.setConfigurationParameters(configParameters);
}

@API(status = INTERNAL, since = "5.11")
private void captureMergedStandardStreams() {
Map<String, String> configParameters = new HashMap<>(discoveryOptions.getConfigurationParameters());
configParameters.put(LauncherConstants.CAPTURE_MERGED_STANDARD_STREAMS_PROPERTY_NAME, "true");
Expand Down

0 comments on commit ae0fce5

Please sign in to comment.