Package org.javalite.activeweb
Class DBControllerSpec
java.lang.Object
org.javalite.activeweb.SpecHelper
org.javalite.activeweb.RequestSpecHelper
org.javalite.activeweb.ControllerSpec
org.javalite.activeweb.DBControllerSpec
- All Implemented Interfaces:
JSpecSupport
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
-
Nested Class Summary
Nested classes/interfaces inherited from class org.javalite.activeweb.SpecHelper
SpecHelper.DynamicBuilder, SpecHelper.ModuleBuilder
-
Constructor Summary
-
Method Summary
Methods inherited from class org.javalite.activeweb.ControllerSpec
atStart, getControllerClassName, getControllerPath, request
Methods inherited from class org.javalite.activeweb.RequestSpecHelper
assigns, atStart00, bytesContent, contentType, cookie, cookieValue, count, getCookies, header, headerNames, headers, layout, redirected, redirectValue, responseContent, statusCode, template, text, val, val, valBoolean, valDouble, valFloat, valInteger, valLong, vals, valString
Methods inherited from class org.javalite.activeweb.SpecHelper
afterEnd, createInjector, flash, flash, flashExists, injector, registerTag, session, session, session, sessionBoolean, sessionDouble, sessionFloat, sessionHas, sessionInteger, sessionLong, sessionObject, sessionString, setInjector, setTemplateLocation
-
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()
-