Class MoreJUnitMatchers

java.lang.Object
tech.picnic.errorprone.bugpatterns.util.MoreJUnitMatchers

public final class MoreJUnitMatchers extends Object
A collection of JUnit-specific helper methods and Matchers.

These constants and methods are additions to the ones found in JUnitMatchers.

  • Field Details

    • TEST_METHOD

      public static final com.google.errorprone.matchers.MultiMatcher<MethodTree,AnnotationTree> TEST_METHOD
      Matches JUnit Jupiter test methods.
    • SETUP_OR_TEARDOWN_METHOD

      public static final com.google.errorprone.matchers.MultiMatcher<MethodTree,AnnotationTree> SETUP_OR_TEARDOWN_METHOD
      Matches JUnit Jupiter setup and teardown methods.
    • HAS_METHOD_SOURCE

      public static final com.google.errorprone.matchers.MultiMatcher<MethodTree,AnnotationTree> HAS_METHOD_SOURCE
      Matches methods that have a MethodSource annotation.