MinimumCountRule implements IEventBasedRule<Integer> { @Override public boolean shouldAllowFeedbackPromptByDefault() { return false; } MinimumCountRule(final int minimumCount); @Override boolean shouldAllowFeedbackPromptByDefault(); @Override boolean shouldAllowFeedbackPrompt(@NonNull final Integer cachedEventValue); @NonNull @Override String getDescription();  }
@SuppressLint("Assert") @SuppressWarnings("ConstantConditions") @Test public void testThatRuleBlocksPromptIfEventHasNeverOccurred() { final int anyPositiveInteger = 1; assert anyPositiveInteger > 0; final MinimumCountRule minimumCountRule = new MinimumCountRule(anyPositiveInteger); final boolean ruleShouldAllowFeedbackPrompt = minimumCountRule.shouldAllowFeedbackPromptByDefault(); assertFalse( "Feedback prompt should be blocked if the associated event has never occurred.", ruleShouldAllowFeedbackPrompt); }