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

action(Closure) - Method in WebFlowUnitTestSupport
addClassUnderTestMethod(ClassNode, ClassExpression, String) - Method in TestForTransformation
addInterceptor(TestEventInterceptor) - Method in TestRuntime
addJunitRuleFields(ClassNode) - Method in TestMixinTransformation
addLegacyMixinFieldIfNonExistent(ClassNode, ClassNode, String) - Method in TestMixinTransformation
addMethodCallsToMethod(ClassNode, String, List<MethodNode>) - Method in TestMixinTransformation
addMockCollaborator(String, ClassExpression, BlockStatement) - Method in TestForTransformation
addMockCollaborators(String, List<ClassExpression>, BlockStatement) - Method in TestForTransformation
addPluginClass(Class<? extends TestPlugin>) - Method in TestRuntimeFactory
Registers TestPlugin class to global static plugin registry.
addTestRuntimeAwareMixinFieldIfNonExistent(ClassNode, ClassNode, String) - Method in TestMixinTransformation
AFTER_ANNOTATION - Field in TestForTransformation
AFTER_CLASS_NODE - Field in TestForTransformation
after(TestRuntime, GrailsApplication) - Method in DomainClassTestPlugin
after(TestRuntime, Object, Description, Throwable) - Method in TestRuntimeJunitAdapter
afterClass(TestRuntime, Class, Description, Throwable) - Method in TestRuntimeJunitAdapter
afterPropertiesSet() - Method in GroovyPageUnitTestResourceLoader
applicationClass() - Method in Integration
Specify the Application class which should be used for this functional test.
applicationInitialized(TestRuntime, GrailsApplication) - Method in ControllerTestPlugin
applicationInitialized(TestRuntime, GrailsApplication) - Method in DomainClassTestPlugin
applicationInitialized(TestRuntime, GrailsApplication) - Method in GrailsApplicationTestPlugin
applyTemplate(StringWriter, def, def) - Method in GroovyPageUnitTestMixin
artefactTypeToTestMap - Field in TestForTransformation
assertAction(def, def, def) - Method in UrlMappingsUnitTestMixin
Asserts an action exists for the specified controller name, action name and url
assertController(def, def) - Method in UrlMappingsUnitTestMixin
asserts a controller exists for the specified name and url
assertForwardUrlMapping(def, def, def) - Method in UrlMappingsUnitTestMixin
assertOutputEquals(def, def, def, Closure) - Method in GroovyPageUnitTestMixin
Asserts the output of a given template against the specified expected value.
assertOutputMatches(def, def, def, Closure) - Method in GroovyPageUnitTestMixin
Asserts the output of a given template against the specified regex.
assertReverseUrlMapping(Map, def, Closure) - Method in UrlMappingsUnitTestMixin
Asserts the given controller and action produce the given reverse URL mapping
assertUrlMapping(Map, def, Closure) - Method in UrlMappingsUnitTestMixin
Asserts a URL mapping maps to the controller and action specified by named parameters.
assertView(def, def, def) - Method in UrlMappingsUnitTestMixin
Asserts a view exists for the specified controller name, view name and url
autoAnnotateSetupTeardown(ClassNode) - Method in TestMixinTransformation

B

BEFORE_ANNOTATION - Field in TestForTransformation
BEFORE_CLASS_NODE - Field in TestForTransformation
before(TestRuntime, GrailsApplication) - Method in DomainClassTestPlugin
before(TestRuntime, Object, Description) - Method in TestRuntimeJunitAdapter
beforeClass(TestRuntime, Class, Description) - Method in TestRuntimeJunitAdapter
bindGrailsWebRequest(TestRuntime, GrailsApplication) - Method in ControllerTestPlugin
bindPageScope(TestRuntime) - Method in GroovyPageTestPlugin

C

changeFeaturesAndPlugins(Set<String>, List<TestPlugin>) - Method in TestRuntime
classes - Field in GrailsTestConfiguration
@default {}
See Also:
ContextConfiguration#classes()#classes()
clearConvertersHolder() - Method in GrailsApplicationTestPlugin
clearGrailsWebRequest(TestRuntime) - Method in ControllerTestPlugin
clearPageScope(TestRuntime) - Method in GroovyPageTestPlugin
clearWebFlowTestState(TestRuntime) - Method in WebFlowTestPlugin
close(TestRuntime) - Method in ControllerTestPlugin
close(TestRuntime) - Method in CoreBeansTestPlugin
close(TestRuntime) - Method in DomainClassTestPlugin
close(TestRuntime) - Method in GrailsApplicationTestPlugin
close(TestRuntime) - Method in GroovyPageTestPlugin
close(TestRuntime) - Method in InterceptorTestPlugin
close(TestRuntime) - Method in MetaClassCleanerTestPlugin
close(TestRuntime) - Method in TestPlugin
this method is called when the state of the given runtime should be cleaned.
close() - Method in TestRuntime
close(TestRuntime) - Method in WebFlowTestPlugin
collectAllAnnotations(Class, Class<T>, boolean) - Method in TestRuntimeUtil
Collects all annotations of given type from given class, it's package, superclasses and their packages Meta-annotations get processed too.
configure(TestRuntime) - Method in DefaultSharedRuntimeConfigurer
configure(TestRuntime) - Method in SharedRuntimeConfigurer
This method will be called after a new runtime has been instantiated
configureServletEnvironment(def, GrailsApplication, ConfigurableApplicationContext) - Method in GrailsApplicationTestPlugin
connectDatastore(TestRuntime, GrailsApplication) - Method in DomainClassTestPlugin
containsValueFor(String) - Method in TestRuntime
CONTEXT_CONFIG_ANNOTATION - Field in IntegrationTestMixinTransformation
ControllerTestPlugin - Class in grails.test.runtime
Controller TestPlugin for TestRuntime - adds beans and state management for supporting controller related unit tests
ControllerUnitTestMixin - Class in grails.test.mixin.web
Applied to a unit test to test controllers.
ControllerUnitTestMixin() - Constructor in ControllerUnitTestMixin
CoreBeansTestPlugin - Class in grails.test.runtime
a TestPlugin for TestRuntime that adds some generic beans that are required in Grails applications
createAndEnhance(Class) - Method in ControllerUnitTestMixin
createEvent(Map) - Method in TestRuntime
createForActivating(Collection<Class<? extends TestPlugin>>) - Method in TestPluginUsage
createMainContext(TestRuntime, Map, def) - Method in GrailsApplicationTestPlugin
createServletContext(TestRuntime, Map) - Method in GrailsApplicationTestPlugin
currentInitialEvent - Field in TestRuntime
customizeContext(ConfigurableApplicationContext, ConfigurableBeanFactory, TestRuntime, Map) - Method in GrailsApplicationTestPlugin
customizeGrailsApplication(GrailsApplication, TestRuntime, Map) - Method in GrailsApplicationTestPlugin
customizeGrailsApplication(GrailsApplication) - Method in GrailsApplicationTestPlugin.TestRuntimeGrailsApplicationPostProcessor
customizePluginManager(GrailsPluginManager) - Method in GrailsApplicationTestPlugin.TestRuntimeGrailsApplicationPostProcessor

D

DefaultSharedRuntimeConfigurer - Class in grails.test.runtime
DefaultTestMixinRegistrar - Class in org.grails.test.mixin.support
The default registrar, that registers test mixins for the the built in artefact types
deferredEvents - Field in TestRuntime
defineBeans(TestRuntime, Closure) - Method in ControllerTestPlugin
defineBeans(TestRuntime, Closure) - Method in CoreBeansTestPlugin
defineBeans(TestRuntime, Closure) - Method in DomainClassTestPlugin
defineBeans(TestRuntime, List<Closure>, RuntimeSpringConfiguration) - Method in GrailsApplicationTestPlugin
defineBeans(boolean, Closure<?>) - Method in GrailsUnitTestMixin
deliverEvent(TestEvent) - Method in TestRuntime
deregisterMetaClassCleaner(TestRuntime) - Method in MetaClassCleanerTestPlugin
DirtiesRuntime - Annotation Type in grails.test.runtime
Annotation to be used in Junit tests and Spock specifications.
DirtiesRuntimeTransformation - Class in org.grails.compiler.injection.test
@author Jeff Brown
doBuild(String, Object) - Method in WebFlowUnitTestSupport
doesRequireFreshContext(Description) - Method in TestRuntimeJunitAdapter
doInput(String, Boolean, Object) - Method in WebFlowUnitTestMixin
DOMAIN_TYPE - Field in TestForTransformation
DomainClassTestPlugin - Class in grails.test.runtime
a TestPlugin for TestRuntime for adding Grails DomainClass (GORM) support - this implementation uses SimpleMapDatastore GORM implementation
DomainClassUnitTestMixin - Class in grails.test.mixin.domain
DomainClassUnitTestMixin() - Constructor in DomainClassUnitTestMixin
doOutput(String, Object) - Method in WebFlowUnitTestMixin
doPublishEvent(TestEvent) - Method in TestRuntime

E

enableAutowireByName(ClassNode) - Method in IntegrationTestMixinTransformation
enhanceGebSpecWithPort(ClassNode) - Method in IntegrationTestMixinTransformation
error(SourceUnit, String) - Method in TestMixinTransformation
eventDelivered(TestEvent) - Method in DefaultSharedRuntimeConfigurer
eventDelivered(TestEvent) - Method in TestEventInterceptor
This method is called after a single event has been delivered to plugins
eventPublished(TestEvent) - Method in DefaultSharedRuntimeConfigurer
eventPublished(TestEvent) - Method in TestEventInterceptor
This method is called before an event gets delivered and processed
eventsProcessed(TestEvent, List<TestEvent>) - Method in DefaultSharedRuntimeConfigurer
eventsProcessed(TestEvent, List<TestEvent>) - Method in TestEventInterceptor
This method is called after each "top-level" event has been fully processed.
exclude - Field in UseTestPlugin
@default false
executeDoWithConfigCallback(TestRuntime, GrailsApplication, Map) - Method in GrailsApplicationTestPlugin
executeDoWithSpringCallback(TestRuntime, Map) - Method in GrailsApplicationTestPlugin
executeEventLoop(TestEvent) - Method in TestRuntime

F

findFirstAnnotation(Class, Class<T>, boolean) - Method in TestRuntimeUtil
Finds first annotation of given type from given class, it's package or superclasses (and their package) Meta-annotations get processed too.
finishQueuingDefineBeans(TestRuntime, RuntimeSpringConfiguration) - Method in GrailsApplicationTestPlugin
FreshRuntime - Annotation Type in grails.test.runtime
Annotation to be used in Junit tests and Spock specifications.

G

get(Map) - Method in TestRuntime.LazyValue
getAnnotations(AnnotatedElement, Class<T>) - Method in TestRuntimeUtil
Collections annotations of given type of given class.
getApplicationContext() - Method in GrailsUnitTestMixin
getArgument(String, Class<T>) - Method in TestEvent
getBeanDefinitions() - Method in InterceptorTestPlugin
getConfig() - Method in GrailsUnitTestMixin
getDefaultContextLoaderClassName(Class<?>) - Method in GrailsJunit4ClassRunner
getExistingJUnit4BeforeMethod(ClassNode) - Method in TestForTransformation
getExistingOrCreateJUnit4Setup(ClassNode) - Method in TestForTransformation
getFailOnError() - Method in DomainClassUnitTestMixin
getFeatures() - Method in TestMixinRuntimeSupport
getFeatures() - Method in TestRuntimeAwareMixin
@return list of features that are required by the test mixin
getFlash() - Method in ControllerUnitTestMixin
The Grails 'flash' object @return
getGrailsApplication(TestEvent) - Method in ControllerTestPlugin
getGrailsApplication(TestEvent) - Method in DomainClassTestPlugin
getGrailsApplication(TestRuntime) - Method in GrailsApplicationTestPlugin
getGrailsApplication() - Method in GrailsUnitTestMixin
getGroovyPages() - Method in ControllerUnitTestMixin
getHandlerInterceptor() - Method in InterceptorUnitTestMixin
getListOfClasses(AnnotationNode) - Method in TestMixinTransformation
getLoadedCodecs(TestRuntime) - Method in GrailsApplicationTestPlugin
getMainContext() - Method in GrailsUnitTestMixin
getMessageSource() - Method in GrailsUnitTestMixin
getMixinClassForArtefactType(ClassNode) - Method in TestForTransformation
getModel() - Method in ControllerUnitTestMixin
@return The model of the current controller
getOrCreateMethodBody(ClassNode, MethodNode, String) - Method in TestMixinTransformation
getOrCreateNoArgsMethodBody(ClassNode, String) - Method in TestMixinTransformation
getOrCreateTestSetupMethod(ClassNode) - Method in TestForTransformation
getOrdinal() - Method in TestPlugin
Priority order of the plugin default value is 0
getParams() - Method in ControllerUnitTestMixin
The Grails 'params' object which is an instance of GrailsParameterMap
getProvidedFeatures() - Method in TestPlugin
@return array of provided features
getRequest() - Method in ControllerUnitTestMixin
getRequiredFeatures() - Method in DefaultSharedRuntimeConfigurer
getRequiredFeatures() - Method in SharedRuntimeConfigurer
The list of features that should be available in the runtime.
getRequiredFeatures() - Method in TestPlugin
@return array of required features
getResource(String) - Method in GroovyPageUnitTestResourceLoader
getResourceLocator() - Method in TestForTransformation
getResponse() - Method in ControllerUnitTestMixin
getRuntime() - Method in TestMixinRuntimeSupport
getRuntimeForTestClass(Class<?>) - Method in TestRuntimeFactory
getServletContext() - Method in ControllerUnitTestMixin
getSession() - Method in ControllerUnitTestMixin
The MockHttpSession instance
getSharedRuntimeConfigurer() - Method in TestRuntime
getSimpleDatastore() - Method in DomainClassUnitTestMixin
getStatus() - Method in ControllerUnitTestMixin
@return The status code of the response
getTestPluginUsages() - Method in TestPluginRegistrar
@return list of TestPlugin classes that should be registered or unregistered (excluded) when this test Mixin is used
getTestState() - Method in WebFlowUnitTestMixin
getTransactionManager() - Method in DomainClassUnitTestMixin
getUrlMappingsHolder() - Method in UrlMappingsUnitTestMixin
@return The UrlMappingsHolder bean
getValue(String, Class<T>, Map) - Method in TestRuntime
getValueIfExists(String, Class<T>, Map) - Method in TestRuntime
getValueOrCreate(String, Class<T>, Closure) - Method in TestRuntime
getView() - Method in ControllerUnitTestMixin
@return The view of the current controller
getViews() - Method in ControllerUnitTestMixin
getWebRequest() - Method in ControllerUnitTestMixin
GRAILS_APPLICATION_CONTEXT_LOADER - Field in IntegrationTestMixinTransformation
GrailsApplicationTestPlugin - Class in grails.test.runtime
A TestPlugin for TestRuntime that builds the GrailsApplication instance for tests
GrailsApplicationTestPlugin.TestRuntimeGrailsApplicationPostProcessor - Class in grails.test.runtime
GrailsApplicationTestPlugin.TestRuntimeGrailsApplicationPostProcessor(Closure, Set) - Constructor in GrailsApplicationTestPlugin.TestRuntimeGrailsApplicationPostProcessor
GrailsJunit4ClassRunner - Class in org.grails.test.context.junit4
@author Graeme Rocher
GrailsTestConfiguration - Annotation Type in org.grails.test.context.junit4
@author Graeme Rocher
GrailsUnitTestMixin - Class in grails.test.mixin.support
A base unit testing mixin that watches for MetaClass changes and unbinds them on tear down.
GrailsUnitTestMixin() - Constructor in GrailsUnitTestMixin
GROOVY_OBJECT_CLASS_NODE - Field in TestMixinTransformation
GroovyPageTestPlugin - Class in grails.test.runtime
a TestPlugin for TestRuntime for supporting GSP tests
GroovyPageUnitTestMixin - Class in grails.test.mixin.web
GroovyPageUnitTestMixin() - Constructor in GroovyPageUnitTestMixin
GroovyPageUnitTestResourceLoader - Class in grails.test.mixin.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

handleDirtiesRuntimeAnnotation(TestRuntime, Description, def) - Method in TestRuntimeJunitAdapter
handleEvent(String, Object) - Method in WebFlowUnitTestSupport
handleFreshContextAnnotation(TestRuntime, Description, Map) - Method in TestRuntimeJunitAdapter
handleTestForAnnotation(ClassNode, SourceUnit, AnnotationNode, boolean) - Method in TestForTransformation
hasAnnotation(MethodNode, Class<?>) - Method in TestMixinTransformation
hasDeclaredMethod(ClassNode, MethodNode) - Method in TestMixinTransformation
hasSimilarMethod(MethodNode, ClassNode) - Method in TestMixinTransformation

I

inheritInitializers - Field in GrailsTestConfiguration
@default true
See Also:
ContextConfiguration#inheritInitializers()#inheritInitializers()
inheritLocations - Field in GrailsTestConfiguration
@default true
See Also:
ContextConfiguration#inheritLocations()#inheritLocations()
initGrailsApplication(TestRuntime, Map) - Method in GrailsApplicationTestPlugin
initializeDatastoreImplementation(GrailsApplication) - Method in DomainClassTestPlugin
initializeMappingContext() - Method in DomainClassUnitTestMixin
initializers - Field in GrailsTestConfiguration
@default {}
See Also:
ContextConfiguration#initializers()#initializers()
initialMockDomainSetup() - Method in DomainClassUnitTestMixin
initialState() - Method in GrailsApplicationTestPlugin
input(Closure) - Method in WebFlowUnitTestSupport
instantiatePlugins(Set<Class<? extends TestPlugin>>) - Method in TestRuntimeFactory
Integration - Annotation Type in grails.test.mixin.integration
Transformation to apply to integration tests
INTEGRATION_TEST_CLASS_NODE - Field in IntegrationTestMixinTransformation
IntegrationTestMixin - Class in grails.test.mixin.integration
A simple marker class that provides a hint to weave in IntegrationTestMixinTransformation
IntegrationTestMixinTransformation - Class in org.grails.compiler.injection.test
@author Graeme Rocher
InterceptorTestPlugin - Class in grails.test.runtime
A plugin for testing interceptors
InterceptorUnitTestMixin - Class in grails.test.mixin.web
A unit test mixin for grails.artefact.Interceptor instances
InterceptorUnitTestMixin() - Constructor in InterceptorUnitTestMixin
invokeClosureNode(Object) - Method in WebFlowUnitTestSupport
invokeMethod(String, Object) - Method in WebFlowUnitTestSupport
isAddableMethod(MethodNode) - Method in TestMixinTransformation
isCandidateMethod(MethodNode) - Method in TestMixinTransformation
isClosed() - Method in TestRuntime
isCurrentEventInitialized() - Method in WebFlowUnitTestSupport
isFlowInitialized() - Method in WebFlowUnitTestSupport
isJunit3Test(ClassNode) - Method in TestMixinTransformation
isServletApiPresent - Field in GrailsApplicationTestPlugin
isSpockTest(ClassNode) - Method in TestMixinTransformation

J

K

KEY_EXCEPTION - Field in UrlMappingsUnitTestMixin

L

LazyTagLibraryLookup - Class in grails.test.mixin.support
Lazy implementation of the tag library lookup class designed for testing purposes.
locations - Field in GrailsTestConfiguration
@default {}
See Also:
ContextConfiguration#locations()#locations()
lookupTagLibrary(String, String) - Method in LazyTagLibraryLookup

M

mapURI(String) - Method in UrlMappingsUnitTestMixin
Maps a URI and returns the appropriate controller instance
MetaClassCleanerTestPlugin - Class in grails.test.runtime
a TestPlugin for TestRuntime that cleans MetaClass changes in afterClass test event
methodMissing(String, Object) - Method in WebFlowUnitTestMixin
Registers the end transition state of a web flow if it is returned as return success()
MIXIN_METHOD_ANNOTATION - Field in TestMixinTransformation
MixinInstance - Annotation Type in grails.test.mixin.support
A marker annotation added to fields that contain the instance of a mixin
MixinMethod - Annotation Type in grails.test.mixin.support
A marker annotation added to methods of a test that are mixed in from a test mixin.
Mock - Annotation Type in grails.test.mixin
Used to define a mocked collaborator when using the TestFor mixin
MockCascadingDomainClassValidator - Class in grails.test.mixin.domain
Integrates Grails cascading validation with datastore API
mockCodec(TestRuntime, Class) - Method in ControllerTestPlugin
mockCodec(TestRuntime, Class) - Method in GrailsApplicationTestPlugin
mockCodec(Class<?>) - Method in GrailsUnitTestMixin
Loads the given codec, adding the "encodeAs...()" and "decode...()" methods to objects.
mockCommandObject(Class) - Method in ControllerUnitTestMixin
Mocks a Grails command object providing the necessary validation behavior and returning the instance
mockController(Class<T>) - Method in ControllerUnitTestMixin
Mocks a Grails controller class, providing the needed behavior and defining it in the ApplicationContext
mockController(Class<T>) - Method in WebFlowUnitTestMixin
mockDefaultCodecs(TestRuntime) - Method in ControllerTestPlugin
mockDomain(Class<?>, List) - Method in DomainClassUnitTestMixin
Mocks a domain class providing the equivalent GORM behavior but against an in-memory concurrent hash map instead of a database
mockDomains(Class<?>) - Method in DomainClassUnitTestMixin
mockInterceptor(Class<? extends Interceptor>) - Method in InterceptorUnitTestMixin
Mock the interceptor for the given name
mockService(Class<T>) - Method in ServiceUnitTestMixin
Mocks a service class, registering it with the application context
mockTagLib(Class) - Method in GroovyPageUnitTestMixin
Mocks a tag library, making it available to subsequent calls to controllers mocked via mockController(Class) and GSPs rendered via applyTemplate(String, Map)
MockTransformation - Class in org.grails.compiler.injection.test
Used by the Mock local transformation to add mocking capabilities for the given classes.
mockUrlMappings(Class) - Method in UrlMappingsUnitTestMixin
Mocks specific URL mappings class
mutateDeferredEvents(TestEvent, List<TestEvent>) - Method in DefaultSharedRuntimeConfigurer
mutateDeferredEvents(TestEvent, List<TestEvent>) - Method in TestEventInterceptor
This method is called before deferred events are delivered

N

name - Field in GrailsTestConfiguration
@default ""
See Also:
ContextConfiguration#name()#name()
newClassRule(Class) - Method in TestRuntimeJunitAdapter
newRule(Object) - Method in TestRuntimeJunitAdapter

O

on(String, Closure) - Method in WebFlowUnitTestSupport
onTestEvent(TestEvent) - Method in ControllerTestPlugin
onTestEvent(TestEvent) - Method in CoreBeansTestPlugin
onTestEvent(TestEvent) - Method in DomainClassTestPlugin
onTestEvent(TestEvent) - Method in GrailsApplicationTestPlugin
onTestEvent(TestEvent) - Method in GroovyPageTestPlugin
onTestEvent(TestEvent) - Method in InterceptorTestPlugin
onTestEvent(TestEvent) - Method in MetaClassCleanerTestPlugin
onTestEvent(TestEvent) - Method in TestPlugin
this method gets called for all events that occur in the TestRuntime
onTestEvent(TestEvent) - Method in WebFlowTestPlugin
output(Closure) - Method in WebFlowUnitTestSupport

P

prepareContext(ConfigurableApplicationContext, ConfigurableBeanFactory, TestRuntime, Map) - Method in GrailsApplicationTestPlugin
propertyMissing(String) - Method in WebFlowUnitTestMixin
publishEvent(String, Map, Map) - Method in TestRuntime
putLazyValue(String, Closure) - Method in TestRuntime
putTagLib(Map<String, Object>, String, GrailsTagLibClass) - Method in LazyTagLibraryLookup
putValue(String, Object) - Method in TestRuntime

Q

R

registerBeans(TestRuntime, GrailsApplication) - Method in ControllerTestPlugin
registerBeans(TestRuntime, GrailsApplication) - Method in CoreBeansTestPlugin
registerBeans(TestRuntime, GrailsApplication) - Method in DomainClassTestPlugin
registerBeans(TestRuntime, GrailsApplication) - Method in GrailsApplicationTestPlugin
registerGrailsAppPostProcessorBean(ConfigurableApplicationContext, ConfigurableBeanFactory, TestRuntime, Map) - Method in GrailsApplicationTestPlugin
registerGrailsDomainClass(Class<?>) - Method in DomainClassUnitTestMixin
registerLazyLoadableTagLibClass(Class) - Method in LazyTagLibraryLookup
registerMetaClassRegistryWatcher(TestRuntime) - Method in MetaClassCleanerTestPlugin
registerMixin(String, Class) - Method in TestForTransformation
registerMixin(String, Class) - Method in TestMixinRegistry
Registers a new mixin for the given type
registerTagLibraries() - Method in LazyTagLibraryLookup
registerTestMixins(TestMixinRegistry) - Method in DefaultTestMixinRegistrar
registerTestMixins(TestMixinRegistry) - Method in TestMixinRegistrar
removeInterceptor(TestEventInterceptor) - Method in TestRuntime
removePluginClass(Class<? extends TestPlugin>) - Method in TestRuntimeFactory
removeRuntime(TestRuntime) - Method in TestRuntimeFactory
removeValue(String, Class<T>) - Method in TestRuntime
render(Map) - Method in GroovyPageUnitTestMixin
Mimics the behavior of the render method in controllers but returns the rendered contents directly
requestClose() - Method in TestRuntime
resetGrailsApplication(TestRuntime) - Method in GrailsApplicationTestPlugin
resolveClassLoader() - Method in GrailsApplicationTestPlugin
resolveTestCallback(Map, String, String) - Method in GrailsApplicationTestPlugin
RUN_WITH_ANNOTATION_NODE - Field in IntegrationTestMixinTransformation

S

saveDomainList(PersistentEntity, List) - Method in DomainClassUnitTestMixin
ServiceUnitTestMixin - Class in grails.test.mixin.services
A mixin that provides mocking capability for services.
SET_UP_METHOD - Field in TestMixinTransformation
setGrailsApplication(GrailsApplication) - Method in GroovyPageUnitTestResourceLoader
setRuntime(TestRuntime) - Method in TestMixinRuntimeSupport
setRuntime(TestRuntime) - Method in TestRuntimeAwareMixin
TestRuntime will set it's instance to the mixin class by calling this method
setTarget(Object) - Method in TestMixinTargetAware
setTestClass(Class<?>) - Method in TestMixinRuntimeSupport
setTestClass(Class<?>) - Method in TestRuntimeAwareMixin
TestRuntime will set the target test class to the mixin class instance by calling this method
setUp(Object) - Method in TestRuntimeJunitAdapter
SharedRuntime - Annotation Type in grails.test.runtime
Annotation to be used in Junit tests and Spock specifications.
SharedRuntimeConfigurer - Interface in grails.test.runtime
The class given as parameter to SharedRuntime has to implement this interface.
shouldFail(Class<?>, Closure) - Method in GrailsUnitTestMixin
Asserts that the given code closure fails when it is evaluated and that a particular exception is thrown.
shouldSkipMethod(MethodNode) - Method in TestMixinTransformation
shutdownApplicationContext(TestRuntime) - Method in GrailsApplicationTestPlugin
shutdownDatastoreImplementation(TestRuntime, GrailsApplication) - Method in DomainClassTestPlugin
SkipMethod - Annotation Type in grails.test.mixin.support
A marker annotation for methods that doesn't be mixed in target classes
SPEC_CLASS - Field in TestMixinTransformation
SPRING_APPLICATION_CONFIGURATION_CLASS_NODE - Field in IntegrationTestMixinTransformation
SPRING_JUNIT4_CLASS_RUNNER - Field in IntegrationTestMixinTransformation
startQueuingDefineBeans(TestRuntime) - Method in GrailsApplicationTestPlugin
subflow(LinkedHashMap) - Method in WebFlowUnitTestSupport

T

tagNameKey(String, String) - Method in LazyTagLibraryLookup
TEAR_DOWN_METHOD - Field in TestMixinTransformation
tearDown(Object) - Method in TestRuntimeJunitAdapter
TEST_ANNOTATION - Field in TestForTransformation
TEST_ANNOTATION - Field in TestMixinTransformation
TestEvent - Class in grails.test.runtime
Event value object for the TestRuntime/TestPlugin system
TestEventInterceptor - Interface in grails.test.runtime
Interface for event interceptors in the TestRuntime
TestFor - Annotation Type in grails.test.mixin
Used to indicate the class under test.
testFor(Class<T>) - Method in ControllerUnitTestMixin
Signifies that the given controller class is the class under test
testFor(Class<T>) - Method in ServiceUnitTestMixin
Mocks a service class, registering it with the application context
testFor(ClassNode, ClassExpression) - Method in TestForTransformation
Main entry point for the calling the TestForTransformation programmatically.
TestForTransformation - Class in org.grails.compiler.injection.test
Transformation used by the TestFor annotation to signify the class under test.
TestMixin - Annotation Type in grails.test.mixin
An AST transformation that can be applied to test classes to mixin behavior from another class.
TestMixinRegistrar - Interface in grails.test.mixin.support
Strategy interface for adding new TextMixins that handle the TestFor annotation
TestMixinRegistry - Interface in grails.test.mixin.support
A registry for TestMixin instances
TestMixinRuntimeSupport - Class in grails.test.mixin.support
Abstract base class for test mixin classes that use the new TestRuntime
TestMixinRuntimeSupport(Set<String>) - Constructor in TestMixinRuntimeSupport
TestMixinTargetAware - Interface in grails.test.mixin
Mixins aware of the target class
TestMixinTransformation - Class in org.grails.compiler.injection.test
An AST transformation to be applied to tests for adding behavior to a target test class.
TestPlugin - Interface in grails.test.runtime
Interface to TestPlugin
TestPluginRegistrar - Interface in grails.test.runtime
Interface supported by TestMixin target classes and SharedRuntimeConfigurer classes registering or unregistering TestPlugin classes
TestPluginUsage - Class in grails.test.runtime
Value class for holding information about test plugin class registration or un-registeration (exclusion)
TestRuntime - Class in grails.test.runtime
TestRuntime is the container for the test runtime state
TestRuntime.LazyValue - Class in grails.test.runtime
TestRuntime(Set<String>, List<TestPlugin>, SharedRuntimeConfigurer) - Constructor in TestRuntime
TestRuntimeAwareMixin - Interface in grails.test.mixin
Interface for marking the mixin class aware of TestRuntime
TestRuntimeFactory - Class in grails.test.runtime
TestRuntimeFactory is a singleton that contains the TestPlugin registry and has methods for getting a TestRuntime instance with given features.
TestRuntimeFactoryException - Class in grails.test.runtime
TestRuntimeFactoryException(String) - Constructor in TestRuntimeFactoryException
TestRuntimeJunitAdapter - Class in grails.test.runtime
Internal class that's used as an adapter between JUnit
ClassRule:
/
@Rule fields and the TestRuntime system
TestRuntimeSettings - Class in grails.test.runtime
Value class for keeping settings for the test runtime
TestRuntimeUtil - Class in grails.test.runtime
Utility functions used in TestRuntime
to(String) - Method in WebFlowUnitTestSupport
translate(Closure, Closure) - Method in WebFlowUnitTestSupport

U

UrlMappingsUnitTestMixin - Class in grails.test.mixin.web
A mixin for testing URL mappings in Grails.
UseTestPlugin - Annotation Type in grails.test.mixin
Annotation for registering custom TestPlugin classes to the TestRuntime of the current test class.

V

value - Field in Mock
value() - Method in SharedRuntime
All tests annotated with this annotation and same value() will use the same shared TestRuntime instance.
value - Field in TestFor
value - Field in TestMixin
value - Field in UseTestPlugin
@return TestPlugin classes to register in the runtime
visit(ASTNode, SourceUnit) - Method in DirtiesRuntimeTransformation
visit(ASTNode, SourceUnit) - Method in IntegrationTestMixinTransformation
visit(ASTNode, SourceUnit) - Method in MockTransformation
visit(ASTNode, SourceUnit) - Method in TestForTransformation
visit(ASTNode, SourceUnit) - Method in TestMixinTransformation
VOID_TYPE - Field in TestForTransformation
VOID_TYPE - Field in TestMixinTransformation

W

weaveIntegrationTestMixin(ClassNode, ClassNode) - Method in IntegrationTestMixinTransformation
weaveMixinClass(ClassNode, Class) - Method in TestForTransformation
weaveMixinIntoClass(ClassNode, ClassNode, TestMixinTransformation.Junit3TestFixtureMethodHandler, ClassNode) - Method in TestMixinTransformation
weaveMixinsIntoClass(ClassNode, ListExpression, ClassNode) - Method in TestMixinTransformation
weaveMock(ClassNode, ClassExpression, boolean) - Method in TestForTransformation
weaveTestMixins(ClassNode, ListExpression, ClassNode) - Method in TestMixinTransformation
@param classNode The class node to weave into
WEB_APP_CONFIGURATION - Field in IntegrationTestMixinTransformation
WEB_INF_PREFIX - Field in GroovyPageUnitTestResourceLoader
WebFlowTestPlugin - Class in grails.test.runtime
a TestPlugin for TestRuntime that supports WebFlowUnitTestMixin
WebFlowUnitTestMixin - Class in grails.test.mixin.webflow
A unit test mixin for testing Web Flow interactions
WebFlowUnitTestMixin.TestState - Class in grails.test.mixin.webflow
WebFlowUnitTestMixin() - Constructor in WebFlowUnitTestMixin
WebFlowUnitTestSupport - Class in grails.test.mixin.webflow
Support class for building a mock Web Flow.
WebFlowUnitTestSupport(Closure) - Constructor in WebFlowUnitTestSupport
withInterceptors(Map<String, Object>, Closure) - Method in InterceptorUnitTestMixin
Execute the given request with the registered interceptors
withRequest(Map<String, Object>) - Method in InterceptorUnitTestMixin
Allows testing of the interceptor directly by setting up an incoming request that can be matched prior to invoking the interceptor
wrapWithEventName(Closure, Map) - Method in WebFlowUnitTestSupport

X

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 _