- java.lang.Object
-
- io.github.astrapi69.AbstractTestCase<A,E>
-
- Type Parameters:
A- the generic type for the actualE- the element type for the expected
- Direct Known Subclasses:
BaseComparatorTestCase,BaseTestCase
public abstract class AbstractTestCase<A,E> extends java.lang.ObjectThe abstract classAbstractTestCaseis for unit tests.
-
-
Constructor Summary
Constructors Constructor Description AbstractTestCase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidsetUp()Sets up method will be invoked before every unit test methodprotected voidtearDown()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
-
-
-
Method Detail
-
setUp
protected void setUp() throws java.lang.ExceptionSets up method will be invoked before every unit test method- Throws:
java.lang.Exception- is thrown if an exception occurs
-
tearDown
protected void tearDown() throws java.lang.ExceptionTear 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:
java.lang.Exception- is thrown if an exception occurs
-
-