Skip to content

Improve documentation for @IfProfileValue precedence [SPR-11902] #16521

Closed
@spring-projects-issues

Description

@spring-projects-issues

Shalom Deitch opened SPR-11902 and commented

Status Quo

If you search for @IfProfileValue in the reference manual, you will find the following paragraph:

Indicates that the annotated test is enabled for a specific testing environment. If the configured ProfileValueSource returns a matching value for the provided name, the test is enabled. This annotation can be applied to an entire class or to individual methods. Class-level usage overrides method-level usage.

Proposal

If the class-level usage overrides the method-level, then there is no point in having both. I assume that it should be: method-level usage overrides class-level usage.


Affects: 4.0.5

Issue Links:

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions