Package dev.galasa.framework
Class TestMethodWrapper
java.lang.Object
dev.galasa.framework.TestMethodWrapper
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
TestMethodWrapper
(Method testMethod, Class<?> testClass, ArrayList<GenericMethodWrapper> beforeMethods, ArrayList<GenericMethodWrapper> afterMethods) -
Method Summary
Modifier and TypeMethodDescriptionboolean
fullStop()
getName()
This returns the test structure for this @Test method.void
This creates a new test structure for this @Test method, priming it with the @Before and @After methods that belong to it.void
invoke
(@NotNull ITestRunManagers managers, Object testClassObject, boolean continueOnTestFailure, TestClassWrapper testClassWrapper) protected void
runAfterMethods
(ITestRunManagers managers, Object testClassObject, TestClassWrapper testClassWrapper) protected void
runBeforeMethods
(ITestRunManagers managers, Object testClassObject, TestClassWrapper testClassWrapper) protected void
runTestMethod
(ITestRunManagers managers, Object testClassObject, TestClassWrapper testClassWrapper, boolean continueOnTestFailure)
-
Constructor Details
-
TestMethodWrapper
protected TestMethodWrapper(Method testMethod, Class<?> testClass, ArrayList<GenericMethodWrapper> beforeMethods, ArrayList<GenericMethodWrapper> afterMethods)
-
-
Method Details
-
invoke
public void invoke(@NotNull @NotNull ITestRunManagers managers, Object testClassObject, boolean continueOnTestFailure, TestClassWrapper testClassWrapper) throws TestRunException - Throws:
TestRunException
-
runBeforeMethods
protected void runBeforeMethods(ITestRunManagers managers, Object testClassObject, TestClassWrapper testClassWrapper) throws TestRunException - Throws:
TestRunException
-
runAfterMethods
protected void runAfterMethods(ITestRunManagers managers, Object testClassObject, TestClassWrapper testClassWrapper) throws TestRunException - Throws:
TestRunException
-
runTestMethod
protected void runTestMethod(ITestRunManagers managers, Object testClassObject, TestClassWrapper testClassWrapper, boolean continueOnTestFailure) throws TestRunException - Throws:
TestRunException
-
initialiseTestMethodStructure
public void initialiseTestMethodStructure()This creates a new test structure for this @Test method, priming it with the @Before and @After methods that belong to it. It is then set as a class variable. It can be retrieved with getTestStructureMethod(). -
getTestStructureMethod
This returns the test structure for this @Test method.- Returns:
- the existing TestMethod structure for this @Test method.
-
fullStop
public boolean fullStop() -
getResult
-
getName
-