All Classes and Interfaces

Classes
Class
Description
 
 
 
 
 
 
 
Replace Mockito 1.x `anyString()` with `nullable(String.class)`
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Removes unused "org.mockito" imports.
Ensures that all mockStatic calls are properly closed.
 
 
 
A recipe to replace JUnit 4's EnvironmentVariables rule from contrib with the JUnit 5-compatible `SystemStubsExtension` and `EnvironmentVariables` from the System Stubs library.
 
Replace usages of JUnit 4's @Rule ExpectedException with JUnit 5 Assertions.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Utility class containing JUnit4 related helper methods used in JUnit4 to JUnit5 migration recipes
 
 
 
 
 
 
 
 
 
 
 
Converts Pragmatists JUnitParamsRunner tests to their JUnit 5 ParameterizedTest and associated MethodSource equivalent ... Supports the following conversions `@Parameters` annotation without 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.
 
 
Deprecated.
Use MockitoJUnitRunnerToExtension instead.
 
Replaces JUnit 4 MockitoJUnit rules with JUnit MockitoExtension.
 
 
 
In Mockito 1 you use a code snippet like:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Recipe for converting JUnit 4 okhttp3 MockWebServer Rules with their JUnit 5 equivalent.