Skip to content

Support @Sql annotations on test interfaces #18827

Closed as not planned
Closed as not planned
@spring-projects-issues

Description

@spring-projects-issues

Sam Brannen opened SPR-14255 and commented

Status Quo

#18755 introduced support for declaring test annotations on test interfaces for all class-level annotations in the Spring TestContext Framework except @Sql and @SqlGroup.

Analysis

As of Spring Framework 4.3, there is no first-class support in the framework for finding repeatable annotations like @Sql on interfaces with support for merged composed annotations without finding shadowed annotations on superclasses.

Deliverables

  • Determine if it is feasible to implement a search algorithm for merged repeatable annotations on interfaces (i.e., something between the "get" and "find" variants in AnnotatedElementUtils).
  • If it is feasible, support @Sql and @SqlGroup on test interfaces.

Affects: 4.3 GA

Issue Links:

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: testIssues in the test modulestatus: declinedA suggestion or change that we don't feel we should currently applytype: enhancementA general enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions