📄️ Change test method signatures
When it comes to adopting better testing practices for your own projects, you'll likely want to clear out some common old conventions first, before applying further changes.
📄️ Java 21 for tests
The OpenRewrite UpgradeToJava21 recipe can automatically convert string concatenation to text blocks in your Java code, as well as upgrade other parts of your application to align with Java 21 best practices, like using getFirst() and getLast() on sequenced collections.
📄️ JUnit 6 Best Practices
To upgrade to JUnit 6 and apply all associated best practices, you can use the OpenRewrite recipe org.openrewrite.java.testing.junit.JUnit6BestPractices.
📄️ AssertJ Best Practices
To switch to AssertJ and apply all associated best practices, you can use the OpenRewrite recipe org.openrewrite.java.testing.assertj.Assertj.