@API(value=Experimental) public class LauncherFactory extends java.lang.Object
Launcher instances by invoking create().
Test engines are discovered at runtime using the
ServiceLoader facility. For that purpose, a
text file named META-INF/services/org.junit.platform.engine.TestEngine
has to be added to the engine's JAR file in which the fully qualified name
of the implementation class of the TestEngine
interface is declared.
Launcher| Constructor and Description |
|---|
LauncherFactory() |
| Modifier and Type | Method and Description |
|---|---|
static Launcher |
create()
Factory method for creating a new
Launcher using dynamically
detected test engines. |
public static Launcher create() throws PreconditionViolationException
Launcher using dynamically
detected test engines.PreconditionViolationException - if no test engines are detected