Class Summary
| Class |
Description |
| AssertArrayEqualsToAssertThat |
This is a refactoring visitor that will convert JUnit-style assertArrayEquals() to assertJ's assertThat().containsExactly().
|
| AssertEqualsToAssertThat |
This is a refactoring visitor that will convert JUnit-style assertEquals() to assertJ's assertThat().isEqualTo().
|
| AssertFalseToAssertThat |
This is a refactoring visitor that will convert JUnit-style assertFalse() to assertJ's assertThat().isFalse().
|
| AssertNotEqualsToAssertThat |
This is a refactoring visitor that will convert JUnit-style assertNotEquals() to assertJ's assertThat().isNotEqualTo().
|
| AssertNotNullToAssertThat |
This is a refactoring visitor that will convert JUnit-style assertNotNull() to assertJ's assertThat().isNotNull().
|
| AssertNullToAssertThat |
This is a refactoring visitor that will convert JUnit-style assertNull() to assertJ's assertThat().isNull().
|
| AssertSameToAssertThat |
This is a refactoring visitor that will convert JUnit-style assertSame() to assertJ's assertThat().isSameAs().
|
| AssertToAssertions |
Change JUnit4's org.junit.Assert into JUnit5's org.junit.jupiter.api.Assertions
The most significant difference between these classes is that in JUnit4 the optional String message is the first
parameter, and the JUnit5 versions have the optional message as the final parameter
|
| AssertTrueToAssertThat |
This is a refactoring visitor that will convert JUnit-style assertTrue() to assertJ's assertThat().isTrue().
|
| CategoryToTag |
Transforms the Junit4 @Category, which can list multiple categories, into one @Tag annotation per category listed
|
| CategoryToTag.Scoped |
|
| CleanupJUnitImports |
Orders imports and removes unused imports from classes which import symbols from the "org.junit" package.
|
| CleanupMockitoImports |
Orders imports and removes unused imports from classes which import symbols from the "org.mockito" package.
|
| ExpectedExceptionToAssertThrows |
Replace usages of JUnit 4's @Rule ExpectedException with JUnit 5 Assertions.assertThrows
Currently only supports migration of this method from ExpectedException: void expect(Class extends Throwable> type)
Migrating the other methods of ExpectedException is not yet implemented.
|
| MaybeAddJUnit5Dependencies |
|
| MockitoRunnerToMockitoExtension |
Convert @RunWith(MockitoJUnitRunner.class) and @RunWith(MockitoJUnit44Runner.class) to @ExtendWith(MockitoExtension.class)
MockitoJUnitRunner was part of the core library, but the MockitoExtension is in its own module.
|
| MockUtilsToStatic |
In Mockito 1 you use a code snippet like:
|
| SpringRunnerToSpringExtension |
JUnit4 Spring test classes are annotated with @RunWith(SpringRunner.class)
Turn this into the JUnit5-compatible @ExtendsWith(SpringExtension.class)
|
| TemporaryFolderToTempDir |
Translates JUnit4's org.junit.rules.TemporaryFolder into JUnit 5's org.junit.jupiter.api.io.TempDir
|
| UpdateTestAnnotation |
|