Open timo-abele opened 9 months ago
Thanks for pointing this out! Wasn't aware of Fest, and understand how that leads to ambiguity here. It seems the AssertJ recipes that we have are hardwired to use static imports, as for instance seen here. https://github.com/openrewrite/rewrite-testing-frameworks/blob/368384a174bd92d49880c19a879fb9e14afcfa27/src/main/java/org/openrewrite/java/testing/assertj/JUnitAssertEqualsToAssertThat.java#L69-L74
Looks like we can first migrate Fest to AssertJ as seen here: https://joel-costigliola.github.io/assertj/assertj-core-migrating-from-fest.html This would be very similar to what we already do here. https://github.com/openrewrite/rewrite-testing-frameworks/blob/964e677739350ce16cc0b4ee55fb47d152a2baf0/src/main/resources/META-INF/rewrite/assertj.yml#L32-L46
Should be fairly straightforward especially for the 2.x version of Fest. I'd expect no more than a handful of Yaml recipes to get the bulk of the usages migrated, which would then also avoid these conflicts here.
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.
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?
Project won't compile, job
testCompile
saysAre you interested in contributing a fix to OpenRewrite?
No