Class AssertToAssertions
- java.lang.Object
-
- org.openrewrite.Recipe
-
- org.openrewrite.java.testing.junit5.AssertToAssertions
-
public class AssertToAssertions extends org.openrewrite.RecipeChange 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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAssertToAssertions.AssertToAssertionsVisitor
-
Constructor Summary
Constructors Constructor Description AssertToAssertions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected @Nullable org.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext>getApplicableTest()java.lang.StringgetDescription()java.lang.StringgetDisplayName()protected org.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext>getVisitor()
-
-
-
Method Detail
-
getDisplayName
public java.lang.String getDisplayName()
- Specified by:
getDisplayNamein classorg.openrewrite.Recipe
-
getDescription
public java.lang.String getDescription()
- Overrides:
getDescriptionin classorg.openrewrite.Recipe
-
getApplicableTest
@Nullable protected @Nullable org.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext> getApplicableTest()
- Overrides:
getApplicableTestin classorg.openrewrite.Recipe
-
getVisitor
protected org.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext> getVisitor()
- Overrides:
getVisitorin classorg.openrewrite.Recipe
-
-