Package io.github.astrapi69.test.base
Class AbstractTestCase<A,E>
java.lang.Object
io.github.astrapi69.test.base.AbstractTestCase<A,E>
- Type Parameters:
A
- the generic type for the actualE
- the element type for the expected
- Direct Known Subclasses:
BaseComparatorTestCase
,BaseTestCase
The abstract class
AbstractTestCase
is for unit tests.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
actual
The boolean actual result of the tests. -
expected
The boolean expected result of the tests.
-
-
Constructor Details
-
AbstractTestCase
public AbstractTestCase()
-
-
Method Details
-
setUp
Sets up method will be invoked before every unit test method- Throws:
Exception
- is thrown if an exception occurs
-
tearDown
Tear down method will be invoked after every unit test method
Note: callsuper.tearDown()
if you overwrite it for set actual and expected to null- Throws:
Exception
- is thrown if an exception occurs
-