-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RemoveTestPrefix
does not check if a similarly named static import exists
#569
Comments
Thanks for the clear example and offer to help @blipper! Must say it's appreciated how diligently you're reporting issues you come across. Really helps fix any blind spots. Your examples would fit right in as a unit test, similar to this earlier one: Lines 328 to 347 in 30f35fe
Once there's a test we will likely want to add a similar exemption as seen here: rewrite-testing-frameworks/src/main/java/org/openrewrite/java/testing/cleanup/RemoveTestPrefix.java Lines 125 to 138 in 30f35fe
Your exact example might already work if the name of the static imported method matches the renamed test; but with a few small adjustments I'm sure we can find a way to fail and then fix the issue. |
RemoveTestPrefix
does not check if a similarly named static import exists
What version of OpenRewrite are you using?
Latest
How are you running OpenRewrite?
gradle
What is the smallest, simplest way to reproduce the problem?
What did you expect to see?
What did you see instead?
What is the full stack trace of any errors you encountered?
Compilation will fail
Are you interested in contributing a fix to OpenRewrite?
Yes
The text was updated successfully, but these errors were encountered: