All Classes and Interfaces

Classes
Class
Description
 
 
 
 
 
Replace Mockito 1.x `anyString()` with `nullable(String.class)`
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Removes unused "org.mockito" imports.
 
 
Replace usages of JUnit 4's @Rule ExpectedException with JUnit 5 Assertions.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.
 
 
 
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.