CooldownDaysRule implements IEventBasedRule<Long> { @Override public boolean shouldAllowFeedbackPromptByDefault() { return true; } CooldownDaysRule(final long cooldownPeriodDays); @Override boolean shouldAllowFeedbackPromptByDefault(); @Override boolean shouldAllowFeedbackPrompt(@NonNull final Long cachedEventValue); @NonNull @Override String getDescription();  }
@SuppressLint("Assert") @SuppressWarnings("ConstantConditions") @Test public void testThatRuleAllowsPromptIfEventHasNeverOccurred() { final int anyPositiveInteger = 1; assert anyPositiveInteger > 0; final CooldownDaysRule cooldownDaysRule = new CooldownDaysRule(anyPositiveInteger); final boolean ruleShouldAllowFeedbackPrompt = cooldownDaysRule.shouldAllowFeedbackPromptByDefault(); assertTrue( "Feedback prompt should be allowed if the associated event has never occurred.", ruleShouldAllowFeedbackPrompt); }