Class AbstractTestCase<A,E>

java.lang.Object
io.github.astrapi69.test.base.AbstractTestCase<A,E>
Type Parameters:
A - the generic type for the actual
E - the element type for the expected
Direct Known Subclasses:
BaseComparatorTestCase, BaseTestCase

public abstract class AbstractTestCase<A,E> extends Object
The abstract class AbstractTestCase is for unit tests.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected A
    The boolean actual result of the tests.
    protected E
    The boolean expected result of the tests.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    Sets up method will be invoked before every unit test method
    protected void
    Tear down method will be invoked after every unit test method

    Note: call super.tearDown() if you overwrite it for set actual and expected to null

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • actual

      protected A actual
      The boolean actual result of the tests.
    • expected

      protected E expected
      The boolean expected result of the tests.
  • Constructor Details

    • AbstractTestCase

      public AbstractTestCase()
  • Method Details

    • setUp

      protected void setUp() throws Exception
      Sets up method will be invoked before every unit test method
      Throws:
      Exception - is thrown if an exception occurs
    • tearDown

      protected void tearDown() throws Exception
      Tear down method will be invoked after every unit test method

      Note: call super.tearDown() if you overwrite it for set actual and expected to null
      Throws:
      Exception - is thrown if an exception occurs