public interface UnitTestEngine
UnitTestServer
for the implementation.| Modifier and Type | Method and Description |
|---|---|
void |
after(org.junit.platform.engine.UniqueId testId)
Execute the after behavior of this node.
|
void |
before(org.junit.platform.engine.UniqueId testId)
Execute the before behavior of this node.
|
void |
cleanUp(org.junit.platform.engine.UniqueId testId)
Clean up the supplied
context after execution. |
org.junit.platform.engine.TestDescriptor |
discover(org.junit.platform.engine.UniqueId uniqueId,
java.net.URI[] classroots,
java.lang.String[] packages,
java.lang.String[] classes,
java.lang.String[] methods,
java.net.URI[] uris,
java.lang.String[] files,
java.lang.String[] directories,
java.lang.String[] modules,
java.lang.String[] resources,
java.lang.String[] iterations)
Discover test sources provided as arguments.
|
void |
execute(org.junit.platform.engine.UniqueId testId)
Execute the behavior of this node.
|
void |
initialize()
Do server-side initialization
|
void |
prepare(org.junit.platform.engine.UniqueId testId)
Prepare test
|
void after(org.junit.platform.engine.UniqueId testId)
throws ErrorConditionException,
org.opentest4j.AssertionFailedError
This method will be called once after execution of this node.
testId - test descriptor IDErrorConditionException - remote code may throw thisorg.opentest4j.AssertionFailedError - remote legacy errors are converted to this
exception typevoid before(org.junit.platform.engine.UniqueId testId)
throws ErrorConditionException,
org.opentest4j.AssertionFailedError
This method will be called once before execution of this node.
testId - test descriptor IDErrorConditionException - remote code may throw thisorg.opentest4j.AssertionFailedError - remote legacy errors are converted to this
exception typevoid cleanUp(org.junit.platform.engine.UniqueId testId)
context after execution.
Reset the test class instance.
testId - test descriptor IDprepare(org.junit.platform.engine.UniqueId)org.junit.platform.engine.TestDescriptor discover(org.junit.platform.engine.UniqueId uniqueId,
java.net.URI[] classroots,
java.lang.String[] packages,
java.lang.String[] classes,
java.lang.String[] methods,
java.net.URI[] uris,
java.lang.String[] files,
java.lang.String[] directories,
java.lang.String[] modules,
java.lang.String[] resources,
java.lang.String[] iterations)
throws ErrorConditionException,
org.opentest4j.AssertionFailedError
uniqueId - the engine unique IDclassroots - the list of class root URLspackages - the list of packagesclasses - the list of class namesmethods - the list of method specificationsuris - the list of URIsfiles - the list of filesdirectories - the list of directoriesmodules - the list of modulesresources - the list of resourcesiterations - the list of iterations (currently not supported)null if no match was found.ErrorConditionException - remote code may throw thisorg.opentest4j.AssertionFailedError - remote legacy errors are converted to this
exception typevoid execute(org.junit.platform.engine.UniqueId testId)
throws ErrorConditionException,
org.opentest4j.AssertionFailedError
Containers typically do not implement this method since the
HierarchicalTestEngine handles execution
of their children.
testId - test descriptor IDErrorConditionException - remote code may throw thisorg.opentest4j.AssertionFailedError - remote legacy errors are converted to this
exception typevoid initialize()
void prepare(org.junit.platform.engine.UniqueId testId)
throws ErrorConditionException,
org.opentest4j.AssertionFailedError
testId - test descriptor IDErrorConditionException - remote code may throw thisorg.opentest4j.AssertionFailedError - remote legacy errors are converted to this
exception type