Class NoInstanceHooksOverridesRule

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

    public class NoInstanceHooksOverridesRule
    extends NoShadowingOrOverridesOnMethodsRule
    Don't allow Before and After hook overrides as it is most likely a user error and will result in superclass methods not being called (requires manual chaining).
    • Constructor Detail

      • NoInstanceHooksOverridesRule

        public NoInstanceHooksOverridesRule()