Class AbstractMockitoArgumentChecker

All Implemented Interfaces:
JavaCheck, JavaFileScanner
Direct Known Subclasses:
MockitoArgumentMatchersUsedOnAllParametersCheck, MockitoEqSimplificationCheck

public abstract class AbstractMockitoArgumentChecker extends IssuableSubscriptionVisitor
A visitor that targets the arguments of Mockito methods `given`, `verify`, and `when`. It also targets the arguments of method calls embedded or chained to `verify` and `when`.
  • Constructor Details

    • AbstractMockitoArgumentChecker

      public AbstractMockitoArgumentChecker()
  • Method Details

    • nodesToVisit

      public List<Tree.Kind> nodesToVisit()
      Specified by:
      nodesToVisit in class SubscriptionVisitor
    • visitNode

      public void visitNode(Tree tree)
      Overrides:
      visitNode in class SubscriptionVisitor
    • visitArguments

      protected abstract void visitArguments(Arguments arguments)
      Visits the argument of a target method and reports an issue if infringing on implemented rule.
      Parameters:
      arguments - List of arguments of the method