@NonNullApi @NonNullFields
Package org.openrewrite.java.testing.junit5
-
Class Summary Class Description AssertToAssertions AssertToAssertions.AssertToAssertionsVisitor CategoryToTag CategoryToTag.CategoryToTagVisitor CleanupJUnitImports CleanupJUnitImports.CleanupJUnitImportsVisitor ExpectedExceptionToAssertThrows Replace usages of JUnit 4's @Rule ExpectedException with JUnit 5 Assertions.ExpectedExceptionToAssertThrows.ExpectedExceptionToAssertThrowsVisitor JUnitParamsRunnerToParameterized 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.MigrateJUnitTestCase MockitoJUnitToMockitoExtension Replaces JUnit 4 MockitoJUnit rules with JUnit MockitoExtension.MockitoJUnitToMockitoExtension.MockitoRuleToMockitoExtensionVisitor ParameterizedRunnerToParameterized RemoveObsoleteRunners RunnerToExtension TemporaryFolderToTempDir TestRuleToTestInfo UpdateBeforeAfterAnnotations UpdateBeforeAfterAnnotations.UpdateBeforeAfterAnnotationsVisitor UpdateMockWebServer Recipe for converting JUnit4 okhttp3 MockWebServer Rules with their JUnit5 equivalent.UpdateTestAnnotation UseTestMethodOrder