Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[UnusedMethod] exempt @MethodSource with qualified method names
As mentioned in [the JUnit 5 docs](https://junit.org/junit5/docs/current/api/org.junit.jupiter.params/org/junit/jupiter/params/provider/MethodSource.html), the value within `@MethodSource` can be a fully-qualified name. This updates the code to handle this fact and adds some tests to try to flex it. The particular case we were hitting is the one with the `@Nested` test class using a parameter method in its parent. Fixes #2411 COPYBARA_INTEGRATE_REVIEW=#2411 from HubSpot:qualified-method-source-upstream 19ce7fb PiperOrigin-RevId: 381974583
- Loading branch information
stevegutz
authored and
Error Prone Team
committed
Jun 28, 2021
1 parent
dca7e79
commit 9b4ffa0
Showing
2 changed files
with
63 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters