-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed
Labels
in: testIssues in the test moduleIssues in the test moduletype: enhancementA general enhancementA general enhancement
Milestone
Description
Dave Syer opened SPR-11634 and commented
Background
It should be up to a SmartContextLoader
to decide if it supports both classes
and locations
. Historically there was no ApplicationContext
that supported both XML resources and annotated classes (so you had to choose one as an entry point). That isn't the case any longer since Spring Boot doesn't care much what it eats.
Deliverables
- Stop throwing an
IllegalArgumentException
in the constructor inContextConfigurationAttributes
if bothlocations
andclasses
are supplied. - Update the Javadoc for all related classes to ensure that it doesn't state that
locations
andclasses
cannot be used simultaneously.- for example:
ContextConfigurationAttributes
,@ContextConfiguration
, etc.
- for example:
- Update the Testing chapter of the reference manual to ensure that it doesn't state that
locations
andclasses
cannot be used simultaneously.
Affects: 4.0.3
Metadata
Metadata
Assignees
Labels
in: testIssues in the test moduleIssues in the test moduletype: enhancementA general enhancementA general enhancement