Class JUnit4ToJUnit5
java.lang.Object
eu.solven.cleanthat.engine.java.refactorer.AJavaParserMutator
eu.solven.cleanthat.engine.java.refactorer.mutators.JUnit4ToJUnit5
- All Implemented Interfaces:
IMutator
,IRuleExternalUrls
Migrate from JUnit4 to JUnit5/Jupiter
- Author:
- Benoit Lacelle
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()
boolean
protected boolean
processAnnotation
(com.github.javaparser.ast.expr.AnnotationExpr annotation) protected boolean
processNotRecursively
(com.github.javaparser.ast.Node node) boolean
walkNode
(com.github.javaparser.ast.Node tree) Methods inherited from class eu.solven.cleanthat.engine.java.refactorer.AJavaParserMutator
getThreadJavaParser, onMethodName, optResolvedType, replaceNode, scopeHasRequiredType, scopeHasRequiredType, tryReplace
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
getCheckstyleId, getIds, getPmdId, getSonarId, isProductionReady
Methods inherited from interface eu.solven.cleanthat.engine.java.refactorer.meta.IRuleExternalUrls
checkstyleUrl, jsparrowUrl, pmdUrl, sonarUrl
-
Constructor Details
-
JUnit4ToJUnit5
public JUnit4ToJUnit5()
-
-
Method Details
-
minimalJavaVersion
- Specified by:
minimalJavaVersion
in interfaceIMutator
- Returns:
- the minimal JDK for which this rule is applicable. For instance, any rule related with diamond operator requires JDK1.5
-
getId
-
isJreOnly
public boolean isJreOnly() -
walkNode
public boolean walkNode(com.github.javaparser.ast.Node tree) - Specified by:
walkNode
in interfaceIMutator
- Overrides:
walkNode
in classAJavaParserMutator
- Returns:
- true if the AST has been modified.
-
processNotRecursively
protected boolean processNotRecursively(com.github.javaparser.ast.Node node) - Overrides:
processNotRecursively
in classAJavaParserMutator
-
processAnnotation
protected boolean processAnnotation(com.github.javaparser.ast.expr.AnnotationExpr annotation)
-