Improve documentation for @Bean 'lite' mode and annotated class support in the TestContext Framework [SPR-9401] #14037
Labels
in: test
Issues in the test module
type: documentation
A documentation task
type: enhancement
A general enhancement
Milestone
Sam Brannen opened SPR-9401 and commented
Background
#13690 raised valid concerns about exactly what kinds of classes are supported in the TestContext Framework (TCF) with regard to the
classes
attribute in@ContextConfiguration
.In addition, the issues that users ran into were partly due to lacking documentation of the so-called
@Bean
lite mode.Status Quo
Classes that are declared via
@ContextConfiguration(classes=...)
(either explicitly or implicitly) are required to be what we call annotated classes.Annotated classes include:
@Component
,@Service
, etc.)@Configuration
classes@Bean
annotated methodsHowever, the current documentation typically refers to configuration classes when it should in fact refer to and explain what is meant by annotated classes and lite mode.
Deliverables
@Bean
to better explain the semantics of lite mode.Affects: 3.1 GA
Issue Links:
@Bean
'lite' mode and annotated classes in the reference manual@Configuration
@Configuration
("supersedes")1 votes, 3 watchers
The text was updated successfully, but these errors were encountered: