- 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
-
- 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
- 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
-