Skip to content

Introduce class-level execution phases for @Sql [SPR-14357] #18929

Closed as not planned
@spring-projects-issues

Description

@spring-projects-issues

urbanq opened SPR-14357 and commented

It would be helpful to introduce class-level support in the ExecutionPhase enum used by @Sql: BEFORE_CLASS and AFTER_CLASS.

So when executing integration test we can easily run one single SQL script for all test methods in the test class.


Affects: 4.2.6

Reference URL: https://stackoverflow.com/questions/32871817/using-annotation-sql-is-it-possible-to-execute-scripts-in-class-level-before-m

Issue Links:

4 votes, 5 watchers

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: testIssues in the test modulestatus: supersededAn issue that has been superseded by anothertype: enhancementA general enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions