Package dev.galasa.framework
Class GenericMethodWrapper
java.lang.Object
dev.galasa.framework.GenericMethodWrapper
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGenericMethodWrapper
(Method executionMethod, Class<?> testClass, GenericMethodWrapper.Type type) -
Method Summary
Modifier and TypeMethodDescriptionboolean
fullStop()
getName()
getType()
void
void
invoke
(@NotNull ITestRunManagers managers, Object testClassObject, GenericMethodWrapper testMethod, TestClassWrapper testClassWrapper) Run the supplied methodvoid
saveRunLogStartAndEnd
(long runLogStart, long runLogEnd) void
void
setRunLogEnd
(long runLogEnd) void
setRunLogStart
(long runLogStart)
-
Field Details
-
LOG_METHOD_BEFORE_CLASS
- See Also:
-
LOG_METHOD_BEFORE
- See Also:
-
LOG_METHOD_TEST
- See Also:
-
LOG_METHOD_AFTER
- See Also:
-
LOG_METHOD_AFTER_CLASS
- See Also:
-
-
Constructor Details
-
GenericMethodWrapper
public GenericMethodWrapper(Method executionMethod, Class<?> testClass, GenericMethodWrapper.Type type)
-
-
Method Details
-
createCopyGenericMethodWrapper
-
invoke
public void invoke(@NotNull @NotNull ITestRunManagers managers, Object testClassObject, GenericMethodWrapper testMethod, TestClassWrapper testClassWrapper) throws TestRunException Run the supplied method- Parameters:
managers
- the managers used in this testtestClassObject
- the test classtestMethod
- the test method if the execution method is @Before or @After- Throws:
TestRunException
- The failure thrown by the test run
-
saveRunLogStartAndEnd
public void saveRunLogStartAndEnd(long runLogStart, long runLogEnd) -
initialiseGenericMethodStructure
public void initialiseGenericMethodStructure() -
getGenericMethodStructure
-
fullStop
public boolean fullStop() -
getResult
-
setResult
-
setRunLogStart
public void setRunLogStart(long runLogStart) -
setRunLogEnd
public void setRunLogEnd(long runLogEnd) -
getName
-
getType
-
getExecutionMethod
-