Package dev.galasa.framework
Class TestClassWrapper
java.lang.Object
dev.galasa.framework.TestClassWrapper
Representation of the test class
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTestClassWrapper
(TestRunner testRunner, String testBundle, Class<?> testClass, TestStructure testStructure) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected Result
void
Instantiate test class and set field valuesvoid
Process the test class looking for test methods and fields that need to be injectedvoid
runTestMethods
(@NotNull ITestRunManagers managers, IDynamicStatusStoreService dss, String runName) Run the test methods in declared order together with @BeforeClass, @Before, @After and @AfterClassprotected void
-
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
-
runTestMethods
public void runTestMethods(@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
-