org.apache.maven.surefire.providerapi
Class AbstractProvider
java.lang.Object
org.apache.maven.surefire.providerapi.AbstractProvider
- All Implemented Interfaces:
- SurefireProvider
public abstract class AbstractProvider
- extends Object
- implements SurefireProvider
A provider base class that all providers should extend to shield themselves from interface changes
- Author:
- Kristian Rosenvold
Method Summary |
void |
cancel()
Makes an attempt at cancelling the current run, giving the provider a chance to notify
reporting that the remaining tests have been cancelled due to timeout. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractProvider
public AbstractProvider()
cancel
public void cancel()
- Description copied from interface:
SurefireProvider
- Makes an attempt at cancelling the current run, giving the provider a chance to notify
reporting that the remaining tests have been cancelled due to timeout.
If the provider thinks it can terminate properly it is the responsibility of
the invoke method to return a RunResult with a booter code of failure.
It is up to the provider to find out how to implement this method properly.
A provider may also choose to not do anything at all in this method,
which means surefire will kill the forked process soon afterwards anyway.
Will be called on a different thread than the one calling invoke.
- Specified by:
cancel
in interface SurefireProvider
Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.