Class AssertToAssertions
- java.lang.Object
-
- org.openrewrite.AbstractSourceVisitor<T>
-
- org.openrewrite.AbstractRefactorVisitor<org.openrewrite.java.tree.J>
-
- org.openrewrite.java.JavaRefactorVisitor
-
- org.openrewrite.java.JavaIsoRefactorVisitor
-
- org.openrewrite.java.testing.junit5.AssertToAssertions
-
- All Implemented Interfaces:
org.openrewrite.java.JavaSourceVisitor<org.openrewrite.java.tree.J>,org.openrewrite.RefactorVisitor<org.openrewrite.java.tree.J>,org.openrewrite.SourceVisitor<org.openrewrite.java.tree.J>
public class AssertToAssertions extends org.openrewrite.java.JavaIsoRefactorVisitorChange 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
-
-
Constructor Summary
Constructors Constructor Description AssertToAssertions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.openrewrite.java.tree.J.ClassDeclvisitClassDecl(org.openrewrite.java.tree.J.ClassDecl classDecl)org.openrewrite.java.tree.J.MethodInvocationvisitMethodInvocation(org.openrewrite.java.tree.J.MethodInvocation method)-
Methods inherited from class org.openrewrite.java.JavaIsoRefactorVisitor
visitAnnotatedType, visitAnnotation, visitArrayAccess, visitArrayType, visitAssert, visitAssign, visitAssignOp, visitBinary, visitBlock, visitBreak, visitCase, visitCatch, visitCompilationUnit, visitContinue, visitDoWhileLoop, visitElse, visitEmpty, visitEnumValue, visitEnumValueSet, visitFieldAccess, visitFinally, visitForEachLoop, visitForLoop, visitIdentifier, visitIf, visitImport, visitInstanceOf, visitLabel, visitLambda, visitLiteral, visitMemberReference, visitMethod, visitMultiCatch, visitMultiVariable, visitNewArray, visitNewClass, visitPackage, visitParameterizedType, visitParentheses, visitPrimitive, visitReturn, visitStatement, visitSwitch, visitSynchronized, visitTernary, visitThrow, visitTry, visitTypeCast, visitTypeName, visitTypeParameter, visitTypeParameters, visitUnary, visitUnparsedSource, visitVariable, visitWhileLoop, visitWildcard
-
Methods inherited from class org.openrewrite.java.JavaRefactorVisitor
addImport, maybeAddImport, maybeAddImport, maybeRemoveImport, maybeRemoveImport, maybeUnwrapParentheses
-
Methods inherited from class org.openrewrite.AbstractRefactorVisitor
andThen, andThen, next, refactor, refactor, refactor
-
Methods inherited from class org.openrewrite.AbstractSourceVisitor
getCursor, setCursoringOn, visit, visitAfter, visitAfter
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openrewrite.java.JavaSourceVisitor
enclosingBlock, enclosingClass, enclosingCompilationUnit, enclosingMethod, isInSameNameScope, isInSameNameScope, visitExpression
-
-
-
-
Method Detail
-
visitClassDecl
public org.openrewrite.java.tree.J.ClassDecl visitClassDecl(org.openrewrite.java.tree.J.ClassDecl classDecl)
- Specified by:
visitClassDeclin interfaceorg.openrewrite.java.JavaSourceVisitor<org.openrewrite.java.tree.J>- Overrides:
visitClassDeclin classorg.openrewrite.java.JavaIsoRefactorVisitor
-
visitMethodInvocation
public org.openrewrite.java.tree.J.MethodInvocation visitMethodInvocation(org.openrewrite.java.tree.J.MethodInvocation method)
- Specified by:
visitMethodInvocationin interfaceorg.openrewrite.java.JavaSourceVisitor<org.openrewrite.java.tree.J>- Overrides:
visitMethodInvocationin classorg.openrewrite.java.JavaIsoRefactorVisitor
-
-