Class MockitoTestExecutionListener

  • All Implemented Interfaces:
    org.springframework.core.Ordered, org.springframework.test.context.TestExecutionListener

    public class MockitoTestExecutionListener
    extends org.springframework.test.context.support.AbstractTestExecutionListener
    TestExecutionListener to trigger MockitoAnnotations.initMocks(Object) when @MockBean annotations are used. Primarily to allow Captor annotations.
    Since:
    1.4.2
    • Method Detail

      • getOrder

        public final int getOrder()
        Specified by:
        getOrder in interface org.springframework.core.Ordered
        Overrides:
        getOrder in class org.springframework.test.context.support.AbstractTestExecutionListener