Test methods should have void return type

MSAL

Test methods annotated with @Test, @ParameterizedTest, @RepeatedTest, @TestTemplate should have void return type. Non-void return types can cause test discovery issues, and warnings as of JUnit 5.13+. This recipe changes the return type to void and drops the returned values. Test methods that override a method or are called elsewhere in the same file are left unchanged.

org.openrewrite.java.testing.cleanup.TestMethodsShouldBeVoid
mod run . --recipe=org.openrewrite.java.testing.cleanup.TestMethodsShouldBeVoid

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.