JavaScript is disabled on your browser.
Overview
Package
Class
Deprecated
Index
Help
Frames
No Frames
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
_
A
ActionSettingMethodHandler
- Class in
org.grails.testing.runtime.support
ActionSettingMethodHandler(java.lang.Object, org.grails.web.servlet.mvc.GrailsWebRequest)
- Constructor in
ActionSettingMethodHandler
afterPropertiesSet()
- Method in
GroovyPageUnitTestResourceLoader
ALL_CONTENT_TYPE
- Property in
ControllerUnitTest
applyTemplate(java.io.StringWriter, java.lang.String, java.util.Map)
- Method in
GrailsWebUnitTest
Renders a template for the given contents and model to the provided writer
applyTemplate(java.io.StringWriter, java.lang.String, java.util.Map)
- Method in
TagLibUnitTest
assertAction(java.lang.String, java.lang.String)
- Method in
UrlMappingsUnitTest
Asserts an action exists for the specified controller name, action name and url
assertController(java.lang.String)
- Method in
UrlMappingsUnitTest
asserts a controller exists for the specified name and url
assertForwardUrlMapping(Map<String, Object>, java.lang.Object, groovy.lang.Closure)
- Method in
UrlMappingsUnitTest
assertReverseUrlMapping(Map<String, String>, java.lang.String, groovy.lang.Closure)
- Method in
UrlMappingsUnitTest
Asserts the given controller and action produce the given reverse URL mapping
assertUrlMapping(Map<String, String>, java.lang.String, groovy.lang.Closure)
- Method in
UrlMappingsUnitTest
Asserts a URL mapping maps to the specified controller, action, and optionally also parameters.
assertView(java.lang.String, java.lang.String)
- Method in
UrlMappingsUnitTest
Asserts a view exists for the specified controller name and view name
ATOM_XML_CONTENT_TYPE
- Property in
ControllerUnitTest
B
C
cleanup(grails.testing.web.GrailsWebUnitTest)
- Method in
WebCleanupInterceptor
configuredMockedControllers()
- Method in
UrlMappingsUnitTest
controller
- Property in
ActionSettingMethodHandler
ControllerUnitTest
- Trait in
grails.testing.web.controllers
D
disableControllerProxy()
- Method in
ControllerUnitTest
E
F
FORM_CONTENT_TYPE
- Property in
ControllerUnitTest
G
getBeanName(Class<?>)
- Method in
ControllerUnitTest
getBeanName(Class<?>)
- Method in
InterceptorUnitTest
getBeanName(Class<?>)
- Method in
TagLibUnitTest
getBeanName(Class<?>)
- Method in
UrlMappingsUnitTest
getController()
- Method in
ControllerUnitTest
getControllerClass(java.lang.String)
- Method in
UrlMappingsUnitTest
getControllersToMock()
- Method in
UrlMappingsUnitTest
getFlash()
- Method in
GrailsWebUnitTest
The Grails 'flash' object @return
getInterceptor()
- Method in
InterceptorUnitTest
getModel()
- Method in
ControllerUnitTest
Returns:
The model of the current controller
getParams()
- Method in
GrailsWebUnitTest
The Grails 'params' object which is an instance of grails.web.servlet.mvc.GrailsParameterMap
getRequest()
- Method in
GrailsWebUnitTest
getResource(java.lang.String)
- Method in
GroovyPageUnitTestResourceLoader
getResponse()
- Method in
GrailsWebUnitTest
getServletContext()
- Method in
GrailsWebUnitTest
getSession()
- Method in
GrailsWebUnitTest
The org.springframework.mock.web.MockHttpSession instance
getStatus()
- Method in
GrailsWebUnitTest
Returns:
The status code of the response
getTagLib()
- Method in
TagLibUnitTest
getUrlMappingsHolder()
- Method in
UrlMappingsUnitTest
Returns:
The grails.web.mapping.UrlMappingsHolder bean
getView()
- Method in
ControllerUnitTest
Returns:
The view of the current controller
getViews()
- Method in
GrailsWebUnitTest
GrailsWebUnitTest
- Trait in
grails.testing.web
GROOVY_PAGES_TEMPLATE_ENGINE
- Field in
WebCleanupInterceptor
GROOVY_PAGES_TEMPLATE_RENDERER
- Field in
WebCleanupInterceptor
groovyPages
- Property in
GrailsWebUnitTest
GroovyPageUnitTestResourceLoader
- Class in
org.grails.testing.runtime.support
A org.springframework.core.io.ResourceLoader implementation that loads GSP views relative to the project base directory for unit tests.
GroovyPageUnitTestResourceLoader(Map<String,String>)
- Constructor in
GroovyPageUnitTestResourceLoader
H
HAL_JSON_CONTENT_TYPE
- Property in
ControllerUnitTest
HAL_XML_CONTENT_TYPE
- Property in
ControllerUnitTest
HTML_CONTENT_TYPE
- Property in
ControllerUnitTest
I
intercept(org.spockframework.runtime.extension.IMethodInvocation)
- Method in
InterceptorSetupSpecInterceptor
intercept(org.spockframework.runtime.extension.IMethodInvocation)
- Method in
UrlMappingSetupSpecInterceptor
intercept(org.spockframework.runtime.extension.IMethodInvocation)
- Method in
WebCleanupInterceptor
intercept(org.spockframework.runtime.extension.IMethodInvocation)
- Method in
WebCleanupSpecInterceptor
intercept(org.spockframework.runtime.extension.IMethodInvocation)
- Method in
WebSetupInterceptor
intercept(org.spockframework.runtime.extension.IMethodInvocation)
- Method in
WebSetupSpecInterceptor
InterceptorSetupSpecInterceptor
- Class in
org.grails.testing.spock
InterceptorSetupSpecInterceptor()
- Constructor in
InterceptorSetupSpecInterceptor
interceptorSetupSpecInterceptor
- Property in
WebTestingSupportExtension
InterceptorUnitTest
- Trait in
grails.testing.web.interceptor
invoke(java.lang.Object, java.lang.reflect.Method, java.lang.reflect.Method, java.lang.Object)
- Method in
ActionSettingMethodHandler
J
JSON_CONTENT_TYPE
- Property in
ControllerUnitTest
K
KEY_EXCEPTION
- Field in
UrlMappingsUnitTest
L
LazyTagLibraryLookup
- Class in
org.grails.testing.runtime.support
Lazy implementation of the tag library lookup class designed for testing purposes.
lookupTagLibrary(java.lang.String, java.lang.String)
- Method in
LazyTagLibraryLookup
M
mapURI(java.lang.String)
- Method in
UrlMappingsUnitTest
Maps a URI and returns the appropriate controller instance
mockArtefact(Class<?>)
- Method in
ControllerUnitTest
Mocks a Grails controller class, providing the needed behavior and defining it in the ApplicationContext
mockArtefact(Class<?>)
- Method in
InterceptorUnitTest
mockArtefact(Class<?>)
- Method in
TagLibUnitTest
Mocks a tag library, making it available to subsequent calls to controllers mocked via
mockArtefact(Class)
and GSPs rendered via
applyTemplate(String, Map)
mockArtefact(Class<?>)
- Method in
UrlMappingsUnitTest
mockCodec(Class<?>, boolean)
- Method in
GrailsWebUnitTest
mockController(Class<?>)
- Method in
GrailsWebUnitTest
mockInterceptor(Class<?>)
- Method in
InterceptorUnitTest
Mock the interceptor for the given name
mockTagLib(Class<?>)
- Method in
GrailsWebUnitTest
mockTagLibs(Class<?>)
- Method in
GrailsWebUnitTest
MULTIPART_FORM_CONTENT_TYPE
- Property in
ControllerUnitTest
N
O
P
putTagLib(Map<String,Object>, java.lang.String, grails.core.GrailsTagLibClass)
- Method in
LazyTagLibraryLookup
Q
R
registerLazyLoadableTagLibClass(java.lang.Class)
- Method in
LazyTagLibraryLookup
registerTagLibraries()
- Method in
LazyTagLibraryLookup
render(java.util.Map)
- Method in
GrailsWebUnitTest
Mimics the behavior of the render method in controllers but returns the rendered contents directly
request
- Property in
ActionSettingMethodHandler
S
setGrailsApplication(grails.core.GrailsApplication)
- Method in
GroovyPageUnitTestResourceLoader
setup(grails.testing.web.interceptor.InterceptorUnitTest)
- Method in
InterceptorSetupSpecInterceptor
setup(grails.testing.web.GrailsWebUnitTest)
- Method in
WebSetupInterceptor
setup(grails.testing.web.GrailsWebUnitTest)
- Method in
WebSetupSpecInterceptor
T
TagLibUnitTest
- Trait in
grails.testing.web.taglib
tagNameKey(java.lang.String, java.lang.String)
- Method in
LazyTagLibraryLookup
TEXT_JSON_CONTENT_TYPE
- Property in
ControllerUnitTest
TEXT_XML_CONTENT_TYPE
- Property in
ControllerUnitTest
U
UrlMappingSetupSpecInterceptor
- Class in
org.grails.testing.spock
UrlMappingSetupSpecInterceptor()
- Constructor in
UrlMappingSetupSpecInterceptor
urlMappingSetupSpecInterceptor
- Property in
WebTestingSupportExtension
UrlMappingsUnitTest
- Trait in
grails.testing.web
V
verifyAction(java.lang.String, java.lang.String)
- Method in
UrlMappingsUnitTest
Parameters:
controller
- The controller name
verifyController(java.lang.String)
- Method in
UrlMappingsUnitTest
Parameters:
controller
- The controller name
verifyForwardUrlMapping(Map<String, Object>, java.lang.Object, groovy.lang.Closure)
- Method in
UrlMappingsUnitTest
verifyReverseUrlMapping(Map<String, String>, java.lang.String, groovy.lang.Closure)
- Method in
UrlMappingsUnitTest
Asserts the given controller and action produce the given reverse URL mapping
verifyUrlMapping(Map<String, String>, java.lang.String, groovy.lang.Closure)
- Method in
UrlMappingsUnitTest
Verifies a URL mapping maps to the specified controller, action, and optionally also parameters.
verifyView(java.lang.String, java.lang.String)
- Method in
UrlMappingsUnitTest
Parameters:
controller
- The controller name
visitSpec(org.spockframework.runtime.model.SpecInfo)
- Method in
WebTestingSupportExtension
W
WEB_INF_PREFIX
- Field in
GroovyPageUnitTestResourceLoader
WebCleanupInterceptor
- Class in
org.grails.testing.spock
WebCleanupInterceptor()
- Constructor in
WebCleanupInterceptor
webCleanupInterceptor
- Property in
WebTestingSupportExtension
WebCleanupSpecInterceptor
- Class in
org.grails.testing.spock
WebCleanupSpecInterceptor()
- Constructor in
WebCleanupSpecInterceptor
webCleanupSpecInterceptor
- Property in
WebTestingSupportExtension
webRequest
- Property in
GrailsWebUnitTest
WebSetupInterceptor
- Class in
org.grails.testing.spock
WebSetupInterceptor()
- Constructor in
WebSetupInterceptor
webSetupInterceptor
- Property in
WebTestingSupportExtension
WebSetupSpecInterceptor
- Class in
org.grails.testing.spock
WebSetupSpecInterceptor()
- Constructor in
WebSetupSpecInterceptor
webSetupSpecInterceptor
- Property in
WebTestingSupportExtension
WebTestingSupportExtension
- Class in
org.grails.testing.spock
WebTestingSupportExtension()
- Constructor in
WebTestingSupportExtension
withInterceptors(Map<String, Object>, groovy.lang.Closure)
- Method in
InterceptorUnitTest
Execute the given request with the registered interceptors
withRequest(Map<String, Object>)
- Method in
InterceptorUnitTest
Allows testing of the interceptor directly by setting up an incoming request that can be matched prior to invoking the interceptor
X
XHTML_CONTENT_TYPE
- Property in
ControllerUnitTest
XML_CONTENT_TYPE
- Property in
ControllerUnitTest
Y
Z
_
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
_
Overview
Package
Class
Deprecated
Index
Help
Frames
No Frames
Groovy Documentation