Class AnnotatedMethodProvider

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Class<? extends java.lang.annotation.Annotation> annotation  
    • Constructor Summary

      Constructors 
      Constructor Description
      AnnotatedMethodProvider​(java.lang.Class<? extends java.lang.annotation.Annotation> ann)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Collection<java.lang.reflect.Method> getTestMethods​(java.lang.Class<?> suiteClass, ClassModel suiteClassModel)
      Determine which methods are test methods.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • annotation

        private final java.lang.Class<? extends java.lang.annotation.Annotation> annotation
    • Constructor Detail

      • AnnotatedMethodProvider

        public AnnotatedMethodProvider​(java.lang.Class<? extends java.lang.annotation.Annotation> ann)
    • Method Detail

      • getTestMethods

        public java.util.Collection<java.lang.reflect.Method> getTestMethods​(java.lang.Class<?> suiteClass,
                                                                             ClassModel suiteClassModel)
        Description copied from interface: TestMethodProvider
        Determine which methods are test methods. The contract is that methods must be public, instance bound (not static) and parameterless. No other restrictions apply (as if these weren't enough...).
        Specified by:
        getTestMethods in interface TestMethodProvider
        Parameters:
        suiteClass - The suite class.
        suiteClassModel - A precomputed model of the suite class including method annotations and class hierarchy walking utilities. This is made available for performance reasons only.
        Returns:
        Return a set of methods which should be invoked by the runner as tests.