Package org.openrewrite.java.testing.junit5
@NonNullApi
@NonNullFields
package org.openrewrite.java.testing.junit5
-
ClassesClassDescriptionReplace usages of JUnit 4's @Rule ExpectedException with JUnit 5 Assertions.Converts Pragmatists JUnitParamsRunner tests to their JUnit 5 ParameterizedTest and associated MethodSource equivalent https://github.com/Pragmatists/JUnitParams Supports the following conversions `@Parameters` annotation with out arguments and default `parametersFor...` init-method exists `@Parameters(method = "...")` annotation with defined method references `@Parameters(named = "...")` and associated `@NamedParameter` init-method Unsupported tests are identified with a comment on the associated `@Parameters(...)` annotation.Replaces JUnit 4 MockitoJUnit rules with JUnit MockitoExtension.Recipe for converting JUnit4 okhttp3 MockWebServer Rules with their JUnit5 equivalent.