Interface Framework
public interface Framework
Interface implemented by test frameworks.
-
Method Summary
Modifier and TypeMethodDescriptionAn array ofFingerprints that specify how to identify test classes during discovery.name()A human-friendly name of the test framework that this object represents.runner(String[] args, String[] remoteArgs, ClassLoader testClassLoader) Initiates a run.
-
Method Details
-
name
String name()A human-friendly name of the test framework that this object represents. -
fingerprints
Fingerprint[] fingerprints()An array ofFingerprints that specify how to identify test classes during discovery. -
runner
Initiates a run.If a client invokes this method before a previously initiated run has completed, the test framework may throw
IllegalStateExceptionto indicate it cannot perform the two runs concurrently.- Parameters:
args- the test-framework-specific arguments for the new runremoteArgs- the test-framework-specific remote arguments for the run in a forked JVMtestClassLoader- a class loader to use when loading test classes during the run- Returns:
- a
Runnerrepresenting the newly started run. - Throws:
IllegalStateException- if the test framework is unable to initiate a run because it is already performing a previously initiated run that has not yet completed.
-