Class AnnotationEnabler

    • Constructor Detail

      • AnnotationEnabler

        public AnnotationEnabler()
    • Method Detail

      • getMockAnnotations

        public java.lang.Class<? extends java.lang.annotation.Annotation>[] getMockAnnotations()
        Specified by:
        getMockAnnotations in interface AnnotationEnablerListener
        Returns:
        The mock annotations considered by this annotation enabler.
      • beforeTestMethod

        public void beforeTestMethod​(java.lang.Object testInstance,
                                     java.lang.reflect.Method method,
                                     java.lang.Object[] arguments)
                              throws java.lang.Exception
        Description copied from class: AbstractPowerMockTestListenerBase
        Provides an empty implementation.
        Specified by:
        beforeTestMethod in interface PowerMockTestListener
        Overrides:
        beforeTestMethod in class AbstractPowerMockTestListenerBase
        Parameters:
        testInstance - The test case instance.
        method - The test method that is currently executed.
        arguments - The arguments passed to the test method if any. May be an empty array but never null.
        Throws:
        java.lang.Exception - If something unexpected occurs.
      • getEasyMockAnnotationSupport

        protected EasyMockAnnotationSupport getEasyMockAnnotationSupport​(java.lang.Object testInstance)