Skip to content

Support class-level @CustomFilter annotations in TestRequestBuilder. - #2515

Merged
copybara-service[bot] merged 1 commit into
mainfrom
piper_1001660089
Oct 21, 2026
Merged

copybara-service[bot] merged 1 commit into
mainfrom
piper_1001660089

Conversation

@copybara-service

Copy link
Copy Markdown

Support class-level @CustomFilter annotations in TestRequestBuilder.

Previously, TestRequestBuilder.CustomFilters only inspected annotations directly on the test method via Description.getAnnotations(), ignoring @CustomFilter annotations applied at the test class level.

Include class-level annotations from Description.getTestClass() when evaluating custom filters, skipping any class annotation whose type is already present on the test method so that method-level overrides do not invoke the same filter twice.

@copybara-service
copybara-service Bot force-pushed the piper_1001660089 branch 4 times, most recently from b967022 to eedf186 Compare October 21, 2026 16:04
Previously, `TestRequestBuilder.CustomFilters` only inspected annotations directly on the test method via `Description.getAnnotations()`, ignoring `@CustomFilter` annotations applied at the test class level.

Include class-level annotations from `Description.getTestClass()` when evaluating custom filters, skipping any class annotation whose type is already present on the test method so that method-level overrides do not invoke the same filter twice.

PiperOrigin-RevId: 1003995266
@copybara-service
copybara-service Bot merged commit edea994 into main Oct 21, 2026
5 checks passed
@copybara-service
copybara-service Bot deleted the piper_1001660089 branch October 21, 2026 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant