📄️ 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 25 for tests
The OpenRewrite UpgradeToJava25 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 25 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.
📄️ Mockito Best Practices
To apply Mockito testing best practices to your codebase, you can use the OpenRewrite recipe org.openrewrite.java.testing.mockito.MockitoBestPractices from rewrite-testing-frameworks.
📄️ Upgrade to Jackson 3
To upgrade your project from Jackson 2.x to Jackson 3.x, you can use the OpenRewrite recipe org.openrewrite.java.jackson.UpgradeJackson23 from rewrite-jackson.
📄️ Adopt JSpecify Best Practices
To adopt JSpecify nullability annotations and apply all associated best practices, you can use the OpenRewrite recipe org.openrewrite.java.jspecify.JSpecifyBestPractices from rewrite-migrate-java.
📄️ Resolve Sonar Findings
To automatically resolve common static analysis findings reported by SonarQube and similar tools, you can use the OpenRewrite recipe org.openrewrite.staticanalysis.CommonStaticAnalysis from rewrite-static-analysis.
📄️ SLF4J Logging Best Practices
To apply SLF4J logging best practices to your codebase, you can use the OpenRewrite recipe org.openrewrite.java.logging.slf4j.Slf4jBestPractices from rewrite-logging-frameworks.
📄️ Upgrade to Spring Boot 4.0
To upgrade your project from Spring Boot 3.x to Spring Boot 4.0, you can use the OpenRewrite recipe org.openrewrite.java.spring.boot4.UpgradeSpringBoot40 from rewrite-spring.