Debian Codegraph @

junit-platform-console/src/main/java9/org/junit/platform/console/ConsoleLauncherToolProvider.java

raw symbols SCIP
1 /*
2 * Copyright 2015-2024 the original author or authors.
3 *
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v2.0 which
6 * accompanies this distribution and is available at
7 *
8 * https://www.eclipse.org/legal/epl-v20.html
9 */
10
11 package org.junit.platform.console;
12
13 import static org.apiguardian.api.API.Status.STABLE;
14
15 import java.io.PrintWriter;
16 import java.util.spi.ToolProvider;
17
18 import org.apiguardian.api.API;
19
20 /**
21 * Run the JUnit Platform Console Launcher as a service.
22 *
23 * @since 1.6
24 */
25 @API(status = STABLE, since = "1.10")
26 public class ConsoleLauncherToolProvider implements ToolProvider {
27
28 @Override
29 public String name() {
30 return "junit";
31 }
32
33 @Override
34 public int run(PrintWriter out, PrintWriter err, String... args) {
35 return ConsoleLauncher.run(out, err, args).getExitCode();
36 }
37 }