A C E M O S T U V 
All Classes All Packages

A

AssertArrayEqualsToAssertThat - Class in org.openrewrite.java.testing.junitassertj
This is a refactoring visitor that will convert JUnit-style assertArrayEquals() to assertJ's assertThat().containsExactly().
AssertArrayEqualsToAssertThat() - Constructor for class org.openrewrite.java.testing.junitassertj.AssertArrayEqualsToAssertThat
 
AssertEqualsToAssertThat - Class in org.openrewrite.java.testing.junitassertj
This is a refactoring visitor that will convert JUnit-style assertEquals() to assertJ's assertThat().isEqualTo().
AssertEqualsToAssertThat() - Constructor for class org.openrewrite.java.testing.junitassertj.AssertEqualsToAssertThat
 
AssertFalseToAssertThat - Class in org.openrewrite.java.testing.junitassertj
This is a refactoring visitor that will convert JUnit-style assertFalse() to assertJ's assertThat().isFalse().
AssertFalseToAssertThat() - Constructor for class org.openrewrite.java.testing.junitassertj.AssertFalseToAssertThat
 
AssertNotEqualsToAssertThat - Class in org.openrewrite.java.testing.junitassertj
This is a refactoring visitor that will convert JUnit-style assertNotEquals() to assertJ's assertThat().isNotEqualTo().
AssertNotEqualsToAssertThat() - Constructor for class org.openrewrite.java.testing.junitassertj.AssertNotEqualsToAssertThat
 
AssertNotNullToAssertThat - Class in org.openrewrite.java.testing.junitassertj
This is a refactoring visitor that will convert JUnit-style assertNotNull() to assertJ's assertThat().isNotNull().
AssertNotNullToAssertThat() - Constructor for class org.openrewrite.java.testing.junitassertj.AssertNotNullToAssertThat
 
AssertNullToAssertThat - Class in org.openrewrite.java.testing.junitassertj
This is a refactoring visitor that will convert JUnit-style assertNull() to assertJ's assertThat().isNull().
AssertNullToAssertThat() - Constructor for class org.openrewrite.java.testing.junitassertj.AssertNullToAssertThat
 
AssertSameToAssertThat - Class in org.openrewrite.java.testing.junitassertj
This is a refactoring visitor that will convert JUnit-style assertSame() to assertJ's assertThat().isSameAs().
AssertSameToAssertThat() - Constructor for class org.openrewrite.java.testing.junitassertj.AssertSameToAssertThat
 
AssertToAssertions - Class in org.openrewrite.java.testing.junit5
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
AssertToAssertions() - Constructor for class org.openrewrite.java.testing.junit5.AssertToAssertions
 
AssertTrueToAssertThat - Class in org.openrewrite.java.testing.junitassertj
This is a refactoring visitor that will convert JUnit-style assertTrue() to assertJ's assertThat().isTrue().
AssertTrueToAssertThat() - Constructor for class org.openrewrite.java.testing.junitassertj.AssertTrueToAssertThat
 

C

CategoryToTag - Class in org.openrewrite.java.testing.junit5
Transforms the Junit4 @Category, which can list multiple categories, into one @Tag annotation per category listed
CategoryToTag() - Constructor for class org.openrewrite.java.testing.junit5.CategoryToTag
 
CategoryToTag.Scoped - Class in org.openrewrite.java.testing.junit5
 
CleanupJUnitImports - Class in org.openrewrite.java.testing.junit5
Orders imports and removes unused imports from classes which import symbols from the "org.junit" package.
CleanupJUnitImports() - Constructor for class org.openrewrite.java.testing.junit5.CleanupJUnitImports
 
CleanupMockitoImports - Class in org.openrewrite.java.testing.mockito
Orders imports and removes unused imports from classes which import symbols from the "org.mockito" package.
CleanupMockitoImports() - Constructor for class org.openrewrite.java.testing.mockito.CleanupMockitoImports
 

E

ExpectedExceptionToAssertThrows - Class in org.openrewrite.java.testing.junit5
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 type) Migrating the other methods of ExpectedException is not yet implemented.
ExpectedExceptionToAssertThrows() - Constructor for class org.openrewrite.java.testing.junit5.ExpectedExceptionToAssertThrows
 

M

MaybeAddJUnit5Dependencies - Class in org.openrewrite.java.testing.junit5
 
MaybeAddJUnit5Dependencies() - Constructor for class org.openrewrite.java.testing.junit5.MaybeAddJUnit5Dependencies
 
MockitoRunnerToMockitoExtension - Class in org.openrewrite.java.testing.junit5
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.
MockitoRunnerToMockitoExtension() - Constructor for class org.openrewrite.java.testing.junit5.MockitoRunnerToMockitoExtension
 
MockUtilsToStatic - Class in org.openrewrite.java.testing.mockito
In Mockito 1 you use a code snippet like:
MockUtilsToStatic() - Constructor for class org.openrewrite.java.testing.mockito.MockUtilsToStatic
 

O

org.openrewrite.java.testing.junit5 - package org.openrewrite.java.testing.junit5
 
org.openrewrite.java.testing.junitassertj - package org.openrewrite.java.testing.junitassertj
 
org.openrewrite.java.testing.mockito - package org.openrewrite.java.testing.mockito
 

S

Scoped(J) - Constructor for class org.openrewrite.java.testing.junit5.CategoryToTag.Scoped
 
setVersion(String) - Method in class org.openrewrite.java.testing.junit5.MaybeAddJUnit5Dependencies
 
SpringRunnerToSpringExtension - Class in org.openrewrite.java.testing.junit5
JUnit4 Spring test classes are annotated with @RunWith(SpringRunner.class) Turn this into the JUnit5-compatible @ExtendsWith(SpringExtension.class)
SpringRunnerToSpringExtension() - Constructor for class org.openrewrite.java.testing.junit5.SpringRunnerToSpringExtension
 

T

TemporaryFolderToTempDir - Class in org.openrewrite.java.testing.junit5
Translates JUnit4's org.junit.rules.TemporaryFolder into JUnit 5's org.junit.jupiter.api.io.TempDir
TemporaryFolderToTempDir() - Constructor for class org.openrewrite.java.testing.junit5.TemporaryFolderToTempDir
 

U

UpdateTestAnnotation - Class in org.openrewrite.java.testing.junit5
 
UpdateTestAnnotation() - Constructor for class org.openrewrite.java.testing.junit5.UpdateTestAnnotation
 

V

validate() - Method in class org.openrewrite.java.testing.junit5.MaybeAddJUnit5Dependencies
 
visitClassDecl(J.ClassDecl) - Method in class org.openrewrite.java.testing.junit5.AssertToAssertions
 
visitClassDecl(J.ClassDecl) - Method in class org.openrewrite.java.testing.junit5.CategoryToTag.Scoped
 
visitClassDecl(J.ClassDecl) - Method in class org.openrewrite.java.testing.junit5.CategoryToTag
 
visitClassDecl(J.ClassDecl) - Method in class org.openrewrite.java.testing.junit5.ExpectedExceptionToAssertThrows
 
visitClassDecl(J.ClassDecl) - Method in class org.openrewrite.java.testing.junit5.SpringRunnerToSpringExtension
 
visitClassDecl(J.ClassDecl) - Method in class org.openrewrite.java.testing.junit5.TemporaryFolderToTempDir
 
visitCompilationUnit(J.CompilationUnit) - Method in class org.openrewrite.java.testing.junit5.CleanupJUnitImports
 
visitCompilationUnit(J.CompilationUnit) - Method in class org.openrewrite.java.testing.junit5.UpdateTestAnnotation
 
visitCompilationUnit(J.CompilationUnit) - Method in class org.openrewrite.java.testing.mockito.CleanupMockitoImports
 
visitCompilationUnit(J.CompilationUnit) - Method in class org.openrewrite.java.testing.mockito.MockUtilsToStatic
 
visitMethod(J.MethodDecl) - Method in class org.openrewrite.java.testing.junit5.CategoryToTag.Scoped
 
visitMethod(J.MethodDecl) - Method in class org.openrewrite.java.testing.junit5.CategoryToTag
 
visitMethod(J.MethodDecl) - Method in class org.openrewrite.java.testing.junit5.UpdateTestAnnotation
 
visitMethodInvocation(J.MethodInvocation) - Method in class org.openrewrite.java.testing.junit5.AssertToAssertions
 
visitMethodInvocation(J.MethodInvocation) - Method in class org.openrewrite.java.testing.junit5.ExpectedExceptionToAssertThrows
 
visitMethodInvocation(J.MethodInvocation) - Method in class org.openrewrite.java.testing.junitassertj.AssertArrayEqualsToAssertThat
 
visitMethodInvocation(J.MethodInvocation) - Method in class org.openrewrite.java.testing.junitassertj.AssertEqualsToAssertThat
 
visitMethodInvocation(J.MethodInvocation) - Method in class org.openrewrite.java.testing.junitassertj.AssertFalseToAssertThat
 
visitMethodInvocation(J.MethodInvocation) - Method in class org.openrewrite.java.testing.junitassertj.AssertNotEqualsToAssertThat
 
visitMethodInvocation(J.MethodInvocation) - Method in class org.openrewrite.java.testing.junitassertj.AssertNotNullToAssertThat
 
visitMethodInvocation(J.MethodInvocation) - Method in class org.openrewrite.java.testing.junitassertj.AssertNullToAssertThat
 
visitMethodInvocation(J.MethodInvocation) - Method in class org.openrewrite.java.testing.junitassertj.AssertSameToAssertThat
 
visitMethodInvocation(J.MethodInvocation) - Method in class org.openrewrite.java.testing.junitassertj.AssertTrueToAssertThat
 
visitNewClass(J.NewClass) - Method in class org.openrewrite.java.testing.mockito.MockUtilsToStatic
 
A C E M O S T U V 
All Classes All Packages