diff --git a/src/reference/docbook/testing.xml b/src/reference/docbook/testing.xml index ec78308b388..631b86bf654 100644 --- a/src/reference/docbook/testing.xml +++ b/src/reference/docbook/testing.xml @@ -1421,6 +1421,45 @@ public class MyTest { // class body... } + + Annotated Classes + + The term annotated class can refer to any + of the following. + + + + A class annotated with + @Configuration + + + + A component (i.e., a class annotated with + @Component, + @Service, + @Repository, etc.) + + + + A JSR-330 compliant class that is annotated with + javax.inject annotations + + + + Any other class that contains + @Bean-methods + + + + Consult the Javadoc for + @Configuration and + @Bean for further information + regarding the configuration and semantics of annotated + classes, paying special attention to the discussion of + @Bean Lite + Mode. + + If you omit the classes attribute from the @ContextConfiguration annotation, the TestContext framework will attempt to detect the presence of default