Class JUnit4ToJUnit5
java.lang.Object
eu.solven.cleanthat.engine.java.refactorer.AJavaparserAstMutator
eu.solven.cleanthat.engine.java.refactorer.AJavaparserNodeMutator
eu.solven.cleanthat.engine.java.refactorer.mutators.JUnit4ToJUnit5
- All Implemented Interfaces:
IDisabledMutator
,ICountMutatorIssues
,IJavaparserAstMutator
,IJavaparserNodeMutator
,IMutator
,IMutatorExternalReferences
,IWalkingMutator<com.github.javaparser.ast.Node,
com.github.javaparser.ast.Node>
Migrate from JUnit4 to JUnit5/Jupiter.
We may better invest on OpenRewrite for a full-fledged JUnit4->JUnit5 migration
- Author:
- Benoit Lacelle
-
Field Summary
Fields inherited from interface eu.solven.cleanthat.engine.java.refactorer.meta.IMutator
ID_NOOP, IS_PRODUCTION_READY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()
getTags()
boolean
protected boolean
processAnnotation
(NodeAndSymbolSolver<? extends com.github.javaparser.ast.expr.AnnotationExpr> annotation) protected boolean
processNotRecursively
(NodeAndSymbolSolver<?> node) boolean
walkAstHasChanged
(com.github.javaparser.ast.Node tree) Methods inherited from class eu.solven.cleanthat.engine.java.refactorer.AJavaparserNodeMutator
cancelDueToComment, getNbRemoveIssues, getNbReplaceIssues, isMethodReturnUsed, logJavaParserIssue, onMethodName, optResolved, replaceNode, tryRemove, tryReplace, tryReplace
Methods inherited from class eu.solven.cleanthat.engine.java.refactorer.AJavaparserAstMutator
getNbIdempotencyIssues, messageForIssueReporting, simulateOnClone, walkAst
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface eu.solven.cleanthat.engine.java.refactorer.meta.IMutator
getIds, isDraft
Methods inherited from interface eu.solven.cleanthat.engine.java.refactorer.meta.IMutatorExternalReferences
checkstyleUrl, errorProneUrl, getCheckstyleId, getCleanthatId, getErrorProneId, getJSparrowId, getLegacyIds, getPmdId, getPmdIds, getSeeUrls, getSonarId, getSpotBugsId, jSparrowUrl, pmdUrl, sonarUrl, spotBugsUrl
-
Constructor Details
-
JUnit4ToJUnit5
public JUnit4ToJUnit5()
-
-
Method Details
-
minimalJavaVersion
- Specified by:
minimalJavaVersion
in interfaceIMutator
-
getTags
-
getId
-
isJreOnly
public boolean isJreOnly() -
walkAstHasChanged
public boolean walkAstHasChanged(com.github.javaparser.ast.Node tree) - Specified by:
walkAstHasChanged
in interfaceIWalkingMutator<com.github.javaparser.ast.Node,
com.github.javaparser.ast.Node>
-
processNotRecursively
- Overrides:
processNotRecursively
in classAJavaparserNodeMutator
-
processAnnotation
protected boolean processAnnotation(NodeAndSymbolSolver<? extends com.github.javaparser.ast.expr.AnnotationExpr> annotation)
-