Class MockitoJUnitRule

java.lang.Object
org.mockito.junit.MockitoJUnitRule
All Implemented Interfaces:
org.junit.rules.MethodRule, MockitoRule

@Deprecated public class MockitoJUnitRule extends Object implements org.junit.rules.MethodRule, MockitoRule
Deprecated.
Please use MockitoJUnit.rule() instead of direct use. The reason of the deprecation is that we want to avoid concrete classes in the public api.
Since:
1.10.6
See Also:
  • Constructor Details

    • MockitoJUnitRule

      @Deprecated public MockitoJUnitRule()
      Deprecated.
      Please use MockitoJUnit.rule(). The reason of the deprecation is that we want to avoid concrete classes in the public api.
    • MockitoJUnitRule

      @Deprecated public MockitoJUnitRule(Object targetTest)
      Deprecated.
      Please use MockitoJUnit.rule(). The reason of the deprecation is that we want to avoid concrete classes in the public api.
  • Method Details

    • apply

      public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runners.model.FrameworkMethod method, Object target)
      Deprecated.
      Specified by:
      apply in interface org.junit.rules.MethodRule