Package io.github.imagineDevit.giwt.core
Class ATestCase<T,R>
java.lang.Object
io.github.imagineDevit.giwt.core.CloseableCase
io.github.imagineDevit.giwt.core.ATestCase<T,R>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumTest case result that can be either success or failure -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final StringTest case nameprotected final TestParameters.Parameterprotected final TestCaseReport.TestReportTest case report -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedATestCase(String name, TestCaseReport.TestReport report, TestParameters.Parameter parameters) Constructor -
Method Summary
Methods inherited from class io.github.imagineDevit.giwt.core.CloseableCase
runIfOpen
-
Field Details
-
name
Test case name -
report
Test case report -
parameters
-
-
Constructor Details
-
ATestCase
protected ATestCase(String name, TestCaseReport.TestReport report, TestParameters.Parameter parameters) Constructor- Parameters:
name- the testCase namereport- the test reportparameters- the test parameters
-
-
Method Details
-
run
protected abstract void run() -
getName
Returns the name of the test case with its relevant parameters formatted. If the test case has parameters, it will format the name using the parameters. If not, it will return the name as is. Note: This method is protected, which means it can only be accessed by classes within the same package or subclasses.- Returns:
- the formatted name of the test case.
-