Package dev.galasa.framework
Class TestRunManagers
java.lang.Object
dev.galasa.framework.TestRunManagers
- All Implemented Interfaces:
ITestRunManagers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
anyReasonTestMethodShouldBeIgnored
(@NotNull GalasaMethod galasaMethod) endOfTestClass
(@NotNull Result result, Throwable currentException) endOfTestMethod
(@NotNull GalasaMethod galasaMethod, @NotNull Result currentResult, Throwable currentException) void
void
fillAnnotatedFields
(Object testClassObject) void
void
void
void
void
void
setResultSoFar
(IResult newResult) The result has changed, it could change again.void
shutdown()
void
void
startOfTestMethod
(@NotNull GalasaMethod galasaMethod) void
testClassResult
(@NotNull Result finalResult, Throwable finalException) Tells the managers about the final end-result of the test.
-
Constructor Details
-
TestRunManagers
- Throws:
FrameworkException
-
-
Method Details
-
anyReasonTestClassShouldBeIgnored
- Specified by:
anyReasonTestClassShouldBeIgnored
in interfaceITestRunManagers
- Throws:
FrameworkException
-
provisionGenerate
- Specified by:
provisionGenerate
in interfaceITestRunManagers
- Throws:
FrameworkException
-
provisionBuild
- Specified by:
provisionBuild
in interfaceITestRunManagers
- Throws:
FrameworkException
-
provisionStart
- Specified by:
provisionStart
in interfaceITestRunManagers
- Throws:
FrameworkException
-
provisionStop
public void provisionStop()- Specified by:
provisionStop
in interfaceITestRunManagers
-
provisionDiscard
public void provisionDiscard()- Specified by:
provisionDiscard
in interfaceITestRunManagers
-
startOfTestClass
- Specified by:
startOfTestClass
in interfaceITestRunManagers
- Throws:
FrameworkException
-
anyReasonTestMethodShouldBeIgnored
public Result anyReasonTestMethodShouldBeIgnored(@NotNull @NotNull GalasaMethod galasaMethod) throws FrameworkException - Specified by:
anyReasonTestMethodShouldBeIgnored
in interfaceITestRunManagers
- Throws:
FrameworkException
-
fillAnnotatedFields
- Specified by:
fillAnnotatedFields
in interfaceITestRunManagers
- Throws:
FrameworkException
-
startOfTestMethod
public void startOfTestMethod(@NotNull @NotNull GalasaMethod galasaMethod) throws FrameworkException - Specified by:
startOfTestMethod
in interfaceITestRunManagers
- Throws:
FrameworkException
-
endOfTestMethod
public Result endOfTestMethod(@NotNull @NotNull GalasaMethod galasaMethod, @NotNull @NotNull Result currentResult, Throwable currentException) throws FrameworkException - Specified by:
endOfTestMethod
in interfaceITestRunManagers
- Throws:
FrameworkException
-
endOfTestClass
public Result endOfTestClass(@NotNull @NotNull Result result, Throwable currentException) throws FrameworkException - Specified by:
endOfTestClass
in interfaceITestRunManagers
- Throws:
FrameworkException
-
testClassResult
Description copied from interface:ITestRunManagers
Tells the managers about the final end-result of the test. All other methods on the test have been called that are going to be called. This method is called only once, after the @AfterClass methods.- Specified by:
testClassResult
in interfaceITestRunManagers
-
endOfTestRun
public void endOfTestRun()- Specified by:
endOfTestRun
in interfaceITestRunManagers
-
shutdown
public void shutdown()- Specified by:
shutdown
in interfaceITestRunManagers
-
getActiveManagers
- Specified by:
getActiveManagers
in interfaceITestRunManagers
-
setResultSoFar
Description copied from interface:ITestRunManagers
The result has changed, it could change again. It could be set the the same thing multiple times. This call is used to propogate the very latest overall test result state down to the managers, so they know the test state. This can be used by the @TestResultProvider annotation for example, to maintain a 'current test result' which tests themselves, and @AfterClass methods can use.- Specified by:
setResultSoFar
in interfaceITestRunManagers
-