Test methods should have void return type
MSALTest 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. TestMethodsShouldBeVoidmod run . --recipe= org. openrewrite. java. testing. cleanup. TestMethodsShouldBeVoidInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.