Package dev.galasa.framework
Class TestClassWrapper
java.lang.Object
dev.galasa.framework.TestClassWrapper
Representation of the test class
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTestClassWrapper
(TestRunner testRunner, String testBundle, Class<?> testClass, TestStructure testStructure) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected Result
void
Instantiate test class and set field valuesprotected boolean
void
Process the test class looking for test methods and fields that need to be injectedvoid
runMethods
(@NotNull ITestRunManagers managers, IDynamicStatusStoreService dss, String runName) Run the test methods in declared order together with @BeforeClass, @Before, @After and @AfterClassprotected void
setResult
(@Null Result newResult, @Null ITestRunManagers managers)
-
Field Details
-
LOG_STARTING
- See Also:
-
LOG_ENDING
- See Also:
-
LOG_START_LINE
-
LOG_ASTERS
-
-
Constructor Details
-
TestClassWrapper
public TestClassWrapper(TestRunner testRunner, String testBundle, Class<?> testClass, TestStructure testStructure) throws ConfigurationPropertyStoreException Constructor- Parameters:
testStructure
-testRunner
-- Throws:
ConfigurationPropertyStoreException
-
-
Method Details
-
parseTestClass
Process the test class looking for test methods and fields that need to be injected- Throws:
TestRunException
-
instantiateTestClass
Instantiate test class and set field values- Throws:
TestRunException
-
runMethods
public void runMethods(@NotNull @NotNull ITestRunManagers managers, IDynamicStatusStoreService dss, String runName) throws TestRunException Run the test methods in declared order together with @BeforeClass, @Before, @After and @AfterClass- Parameters:
managers
-dss
-runName
-- Throws:
TestRunException
-
setResult
-
getResult
-
isContinueOnTestFailureSet
protected boolean isContinueOnTestFailureSet()
-