From ae0fce57c31378e5dc4a8cb42f3ef4c0c5adf39b Mon Sep 17 00:00:00 2001 From: mobounya Date: Sun, 14 Jan 2024 13:58:10 +0100 Subject: [PATCH] Annotate new methods with @API annotation Add @API annotation to new methods. Issue: #3166 --- .../platform/console/options/TestConsoleOutputOptions.java | 4 ++++ .../org/junit/platform/console/tasks/ConsoleTestExecutor.java | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/junit-platform-console/src/main/java/org/junit/platform/console/options/TestConsoleOutputOptions.java b/junit-platform-console/src/main/java/org/junit/platform/console/options/TestConsoleOutputOptions.java index 66574850d1a2..3e28f96d0212 100644 --- a/junit-platform-console/src/main/java/org/junit/platform/console/options/TestConsoleOutputOptions.java +++ b/junit-platform-console/src/main/java/org/junit/platform/console/options/TestConsoleOutputOptions.java @@ -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; } diff --git a/junit-platform-console/src/main/java/org/junit/platform/console/tasks/ConsoleTestExecutor.java b/junit-platform-console/src/main/java/org/junit/platform/console/tasks/ConsoleTestExecutor.java index f23873052036..5e0206e52839 100644 --- a/junit-platform-console/src/main/java/org/junit/platform/console/tasks/ConsoleTestExecutor.java +++ b/junit-platform-console/src/main/java/org/junit/platform/console/tasks/ConsoleTestExecutor.java @@ -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 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 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 configParameters = new HashMap<>(discoveryOptions.getConfigurationParameters()); configParameters.put(LauncherConstants.CAPTURE_MERGED_STANDARD_STREAMS_PROPERTY_NAME, "true");