
GenericXmlContextLoader: Loads a standard ApplicationContext from XML resource GenericGroovyXmlWebContextLoader: Loads a WebApplicationContext from resource Locations that are either Groovy scripts or XML configuration files. GenericGroovyXmlContextLoader: Loads a standard ApplicationContext from resource Groovy support is enabled only if Groovy is on the classpath.ĪnnotationConfigContextLoader: Loads a standard ApplicationContext from componentĪnnotationConfigWebContextLoader: Loads a WebApplicationContext from component A web ContextLoader is used only if is present on the The test class or on the presence of default locations or default configurationĬlasses. GenericGroovyXmlWebContextLoader, depending either on the configuration declared for To an AnnotationConfigWebContextLoader, a GenericXmlWebContextLoader, or a WebDelegatingSmartContextLoader: One of two default loaders, it delegates internally Groovy support is enabled only if Groovy is on the classpath. Test class or on the presence of default locations or default configuration classes. GenericGroovyXmlContextLoader, depending either on the configuration declared for the Meta-Annotation Support for TestingĭelegatingSmartContextLoader: One of two default loaders, it delegates internally toĪn AnnotationConfigContextLoader, a GenericXmlContextLoader, or a Further Examples of Client-side REST Tests Dependency Injection with SpringExtension.Script Configuration with Merging and Overriding Configuration with 5.11.Executing SQL scripts declaratively with Path Resource Semantics Demonstration of All Transaction-related Annotations Testing Request- and Session-scoped Beans Context Configuration with Dynamic Property Sources Inheriting and Overriding Test Property Sources.Context Configuration with Test Property Sources Context Configuration with Environment Profiles Context Configuration with Context Initializers Mixing XML, Groovy Scripts, and Component Classes Context Configuration with Component Classes Context Configuration with Groovy Scripts Merging TestExecutionListener Implementations Ordering TestExecutionListener Implementations Automatic Discovery of Default TestExecutionListener Implementations

Registering TestExecutionListener Implementations
