You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the smallest, simplest way to reproduce the problem?
If a SpringBootTest class has an additional ExtendWith annotation which contains additional test extension classes the recipe removes the whole line istsead of just removing the SpringExtension.class and keeping the rest.
Status before execution of recipe:
Would welcome a draft PR that adds that test, and then whatever you can do to explore a fix. I imagine we'll want to explore the ExtendsWith annotation here:
if (!FindAnnotations.find(c, EXTEND_WITH_SPRING_EXTENSION_ANNOTATION_PATTERN).isEmpty()) {
As a simplest case we could not make any change at all when there is more than one argument.
If you want to go more advanced you can remove the target argument from the annotation.
What version of OpenRewrite are you using?
I am using
How are you running OpenRewrite?
I am using the Maven plugin, and my project is a single module project. Command used to run it:
What is the smallest, simplest way to reproduce the problem?
If a
SpringBootTest
class has an additionalExtendWith
annotation which contains additional test extension classes the recipe removes the whole line istsead of just removing theSpringExtension.class
and keeping the rest.Status before execution of recipe:
What did you expect to see?
expected status after execution:
What did you see instead?
status after execution of recipe:
What is the full stack trace of any errors you encountered?
Are you interested in contributing a fix to OpenRewrite?
Maybe :-)
The text was updated successfully, but these errors were encountered: