@SuppressWarnings("ConstantConditions") @Test public void testThatRuleAllowsPromptIfEventHasNeverOccurred() { final int fakeCurrentVersionCode = 42; final VersionCodeChangedRule versionCodeChangedRule = new VersionCodeChangedRule(fakeCurrentVersionCode); final boolean ruleShouldAllowFeedbackPrompt = versionCodeChangedRule.shouldAllowFeedbackPromptByDefault(); assertTrue( "Feedback prompt should be allowed if the associated event has never occurred.", ruleShouldAllowFeedbackPrompt); }
@Override public boolean shouldAllowFeedbackPromptByDefault() { return true; }
VersionCodeChangedRule implements IEventBasedRule<Integer> { @Override public boolean shouldAllowFeedbackPromptByDefault() { return true; } }
VersionCodeChangedRule implements IEventBasedRule<Integer> { @Override public boolean shouldAllowFeedbackPromptByDefault() { return true; } VersionCodeChangedRule(@NonNull final Context context); @VisibleForTesting(otherwise = PRIVATE)  VersionCodeChangedRule(final int appVersionCode); }
VersionCodeChangedRule implements IEventBasedRule<Integer> { @Override public boolean shouldAllowFeedbackPromptByDefault() { return true; } VersionCodeChangedRule(@NonNull final Context context); @VisibleForTesting(otherwise = PRIVATE)  VersionCodeChangedRule(final int appVersionCode); @Override boolean shouldAllowFeedbackPromptByDefault(); @Override boolean shouldAllowFeedbackPrompt(@NonNull final Integer cachedEventValue); @NonNull @Override String getDescription(); }
VersionCodeChangedRule implements IEventBasedRule<Integer> { @Override public boolean shouldAllowFeedbackPromptByDefault() { return true; } VersionCodeChangedRule(@NonNull final Context context); @VisibleForTesting(otherwise = PRIVATE)  VersionCodeChangedRule(final int appVersionCode); @Override boolean shouldAllowFeedbackPromptByDefault(); @Override boolean shouldAllowFeedbackPrompt(@NonNull final Integer cachedEventValue); @NonNull @Override String getDescription();  }