Skip to content

Introduce bootstrap strategy in the TestContext framework [SPR-9955] #14588

Closed
@spring-projects-issues

Description

@spring-projects-issues

Sam Brannen opened SPR-9955 and commented

Status Quo

Work done in conjunction with #9917 and #9265 introduced physical package cycles in the spring-test module. The work performed in conjunction with #14557 uses reflection to resolve these physical package cycles; however, logical package cycles still remain.

Deliverables

  1. Introduce a bootstrap strategy in the TestContext framework (TCF) that is responsible for determining and appropriately delegating to or instantiating the following:
    • AbstractDelegatingSmartContextLoader (i.e., a concrete subclass thereof)
    • MergedContextConfiguration (or a subclass thereof)
  2. Refactor ContextLoaderUtils to instantiate and delegate to a bootstrap instance instead of using extensive reflection.
  3. Introduce a meta-annotation that can be used to designate the concrete bootstrap strategy to use.
    • For example, @WebAppConfiguration could be annotated with such a meta-annotation that points to the web bootstrap strategy implementation.

Affects: 3.2 RC1

Issue Links:

Referenced from: commits b308659, a281bdb

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions