Package dev.galasa.framework
Class TestMethodWrapper
java.lang.Object
dev.galasa.framework.TestMethodWrapper
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTestMethodWrapper(Method testMethod, Class<?> testClass, ArrayList<GenericMethodWrapper> beforeMethods, ArrayList<GenericMethodWrapper> afterMethods) -
Method Summary
Modifier and TypeMethodDescriptionbooleanfullStop()getName()This returns the test structure for this @Test method.voidThis initialises the test structure for this @Test method, priming it with a name, type, and the @Before and @After methods that belong to it.voidinvoke(@NotNull ITestRunManagers managers, Object testClassObject, boolean continueOnTestFailure, TestClassWrapper testClassWrapper) protected voidrunAfterMethods(ITestRunManagers managers, Object testClassObject, TestClassWrapper testClassWrapper) protected voidrunBeforeMethods(ITestRunManagers managers, Object testClassObject, TestClassWrapper testClassWrapper) protected voidrunTestMethod(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 initialises the test structure for this @Test method, priming it with a name, type, and 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
-