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

A

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
 

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
 
maybeAddStaticImport(String, String) - Method in class org.openrewrite.java.testing.junitassertj.AssertTrueToAssertThat
This method will add a static import method to the compilation unit if there is a reference to the method in the compilation unit.
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.UpdateTestAnnotation
 
visitCompilationUnit(J.CompilationUnit) - Method in class org.openrewrite.java.testing.junitassertj.AssertTrueToAssertThat
 
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.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