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