Class PowerMockRule

java.lang.Object
org.powermock.modules.junit4.rule.PowerMockRule
All Implemented Interfaces:
org.junit.rules.MethodRule

public class PowerMockRule extends Object implements org.junit.rules.MethodRule
  • Field Details

    • previousTargetClass

      private static Class<?> previousTargetClass
    • mockPolicyInitializer

      private static MockPolicyInitializer mockPolicyInitializer
    • testSuiteChunker

      private static TestSuiteChunker testSuiteChunker
  • Constructor Details

    • PowerMockRule

      public PowerMockRule()
  • Method Details

    • apply

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

      protected boolean isNotRuleInitialized(Object target)
    • init

      protected void init(Object target)