public class IntegrationSpec extends RequestSpecHelper
SpecHelper.DynamicBuilder, SpecHelper.ModuleBuilder
Constructor and Description |
---|
IntegrationSpec() |
Modifier and Type | Method and Description |
---|---|
protected void |
addFilter(Class<? extends AppController> controllerClass,
HttpSupportFilter filter)
Adds a filter to a specific controller for the duration of the current spec.
|
protected void |
addFilter(HttpSupportFilter filter)
Adds a global filter for the duration of the current spec.
|
protected RequestBuilder |
controller(String controllerName) |
protected void |
resetFilters()
Clears all filters from context even if they are defined in the
AppControllerConfig class. |
protected void |
setTemplateLocation(String templateLocation) |
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
afterEnd, atStart, createInjector, flash, flash, flashExists, injector, registerTag, session, session, session, sessionBoolean, sessionDouble, sessionFloat, sessionHas, sessionInteger, sessionLong, sessionObject, sessionString, setInjector
protected void resetFilters()
AppControllerConfig
class.
This method allows to run integration specs cleanly, with filters specifically set by addFilter(Class, HttpSupportFilter)
method.protected RequestBuilder controller(String controllerName)
protected void setTemplateLocation(String templateLocation)
setTemplateLocation
in class SpecHelper
templateLocation
- this is a relative location starting from the module root, intended for testing.protected void addFilter(Class<? extends AppController> controllerClass, HttpSupportFilter filter)
resetFilters()
method
before this one.controllerClass
- class of controllerfilter
- instance of a filter to addprotected void addFilter(HttpSupportFilter filter)
resetFilters()
method
before this one.filter
- instance of a filter to addCopyright © 2020 JavaLite. All rights reserved.