java.lang.Object
eu.solven.cleanthat.engine.java.refactorer.AJavaParserMutator
eu.solven.cleanthat.engine.java.refactorer.mutators.JUnit4ToJUnit5
All Implemented Interfaces:
IMutator, IRuleExternalUrls

public class JUnit4ToJUnit5 extends AJavaParserMutator implements IMutator
Migrate from JUnit4 to JUnit5/Jupiter
Author:
Benoit Lacelle
  • Constructor Details

    • JUnit4ToJUnit5

      public JUnit4ToJUnit5()
  • Method Details

    • minimalJavaVersion

      public String minimalJavaVersion()
      Specified by:
      minimalJavaVersion in interface IMutator
      Returns:
      the minimal JDK for which this rule is applicable. For instance, any rule related with diamond operator requires JDK1.5
    • getId

      public String getId()
      Specified by:
      getId in interface IMutator
    • isJreOnly

      public boolean isJreOnly()
      Specified by:
      isJreOnly in interface IMutator
      Returns:
      true if this rule process only jre standard classes
    • walkNode

      public boolean walkNode(com.github.javaparser.ast.Node tree)
      Specified by:
      walkNode in interface IMutator
      Overrides:
      walkNode in class AJavaParserMutator
      Returns:
      true if the AST has been modified.
    • processNotRecursively

      protected boolean processNotRecursively(com.github.javaparser.ast.Node node)
      Overrides:
      processNotRecursively in class AJavaParserMutator
    • processAnnotation

      protected boolean processAnnotation(com.github.javaparser.ast.expr.AnnotationExpr annotation)