Class DBControllerSpec

All Implemented Interfaces:
JSpecSupport

public class DBControllerSpec extends ControllerSpec
Super class for controllers requiring a DB connection to the test DB. Connection is opened before a test, closed after a test and a transaction is rolled back.
Author:
Igor Polevoy
  • Constructor Details

    • DBControllerSpec

      public DBControllerSpec()
  • Method Details

    • initDBConfig

      @BeforeAll public static void initDBConfig()
    • open

      @BeforeEach public final void open()
    • close

      @AfterEach public final void close()
    • tearDown

      @AfterAll public static void tearDown()