Launcherinstances by invoking
Test engines are discovered at runtime using the
ServiceLoader facility. For that purpose, a
text file named
has to be added to the engine's JAR file in which the fully qualified name
of the implementation class of the
interface is declared.
TestExecutionListeners discovered at
runtime via the
ServiceLoader facility are
automatically registered with the
Launcher created by the factory.
Users may register additional listeners using the
method on the created launcher instance.
|Modifier and Type||Method||Description|
Factory method for creating a new
public static Launcher create() throws PreconditionViolationException
Launcherusing dynamically detected test engines.
PreconditionViolationException- if no test engines are detected