Class MockitoTestRule

  • All Implemented Interfaces:
    org.junit.rules.TestRule

    @Deprecated
    public class MockitoTestRule
    extends Object
    implements org.junit.rules.TestRule
    Deprecated.
    since 7.20 use MockitoJUnit.testRule(Object)
    Wrapper around Mockito's own JUnit Rule support, since we need a TestRule for chaining, not a MethodRule.

    Hopefully this all goes away when Mockito drops support for older JUnit releases.

    • Constructor Detail

      • MockitoTestRule

        public MockitoTestRule​(Object target)
        Deprecated.
    • Method Detail

      • apply

        public org.junit.runners.model.Statement apply​(org.junit.runners.model.Statement base,
                                                       org.junit.runner.Description description)
        Deprecated.
        Specified by:
        apply in interface org.junit.rules.TestRule