Skip to content

Commit 8ddc816

Browse files
committed
Add Javadoc
1 parent 8d5fa59 commit 8ddc816

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

junit-platform-launcher/src/main/java/org/junit/platform/launcher/core/LauncherDiscoveryRequestBuilder.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
package org.junit.platform.launcher.core;
1212

1313
import static org.apiguardian.api.API.Status.DEPRECATED;
14+
import static org.apiguardian.api.API.Status.EXPERIMENTAL;
1415
import static org.apiguardian.api.API.Status.STABLE;
1516
import static org.junit.platform.launcher.LauncherConstants.OUTPUT_DIR_PROPERTY_NAME;
1617

@@ -30,6 +31,7 @@
3031
import org.junit.platform.engine.Filter;
3132
import org.junit.platform.engine.reporting.OutputDirectoryProvider;
3233
import org.junit.platform.launcher.EngineFilter;
34+
import org.junit.platform.launcher.LauncherConstants;
3335
import org.junit.platform.launcher.LauncherDiscoveryListener;
3436
import org.junit.platform.launcher.LauncherDiscoveryRequest;
3537
import org.junit.platform.launcher.PostDiscoveryFilter;
@@ -287,6 +289,20 @@ public LauncherDiscoveryRequestBuilder listeners(LauncherDiscoveryListener... li
287289
return this;
288290
}
289291

292+
/**
293+
* Set the {@link OutputDirectoryProvider} to use for the request.
294+
*
295+
* <p>If not specified, a default provider will be used that can be
296+
* configured via the {@value LauncherConstants#OUTPUT_DIR_PROPERTY_NAME}
297+
* configuration parameter.
298+
*
299+
* @param outputDirectoryProvider the output directory provider to use; never
300+
* @return this builder for method chaining
301+
* @since 1.12
302+
* @see OutputDirectoryProvider
303+
* @see LauncherConstants#OUTPUT_DIR_PROPERTY_NAME
304+
*/
305+
@API(status = EXPERIMENTAL, since = "1.12")
290306
public LauncherDiscoveryRequestBuilder outputDirectoryProvider(OutputDirectoryProvider outputDirectoryProvider) {
291307
this.outputDirectoryProvider = Preconditions.notNull(outputDirectoryProvider,
292308
"outputDirectoryProvider must not be null");

0 commit comments

Comments
 (0)