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 Further Examples of Client-side REST TestsĭelegatingSmartContextLoader: One of two default loaders, it delegates internally toĪn AnnotationConfigContextLoader, a GenericXmlContextLoader, or a Dependency Injection with SpringExtension.Executing SQL scripts declaratively with 3.5.11.Demonstration of All Transaction-related Annotations.Transaction Rollback and Commit Behavior.Testing Request- and Session-scoped Beans