saker.java.testing Documentation TaskDoc JavaDoc Packages
public abstract class BasicInstrumentationJavaTestInvoker extends BasicJavaTestingInvoker
BasicJavaTestingInvoker subclass that integrates with the incremental instrumentation of the Java testing build task.

The test invoker will handle the instrumentation and dependency information retrieval of the invoked test cases.

The test invocation can be performed in runTest(TestInvocationParameters), and implementations are not required to specially handle the test results.

Clients should extend this class.

Creates a new testing invoker.
Overridden from: BasicJavaTestingInvoker
Invokes the test.

This method is called by BasicJavaTestingInvoker.invokeTest(JavaTestingFileProvider, TestInvocationParameters) after the environment has been initialized for the test case.

The arguments are the same as for the invokeTest method.

fileproviderThe testing file provider. (May be null.)
parametersThe invocation parameters for the test case. The test class name can be retrieved using TestInvocationParameters.getTestClassName().
The test invocation result.
JavaTestRunnerFailureExceptionIf the test runner encountered a failure during the invocation of the test.
Executes the test with the given parameters.

The method should succeed if and only if the test case is considered successful, and throw InvocationTargetException if the test case failed.

You can load the test class with the name TestInvocationParameters.getTestClassName() from the BasicJavaTestingInvoker.getTestClassLoader().

parametersThe test parameters.
JavaTestRunnerFailureExceptionIf the test runner encountered a failure during the invocation of the test.
InvocationTargetExceptionIf the test case failed.