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.
AssertJ has a more idiomatic way of asserting that a boolean is true.
AssertJ has a more idiomatic way of asserting that a String is empty.
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.