Promote { public static Condition.Value after(int n) { return new Condition().after(n); }  static Condition.Value after(int n); static Condition.Value every(int n); static Condition.Value every(int n, float backoff); static Promote ban(Context c, int id); static Promote reset(Context c); final static int RATE; final static int SHARE; final static int FACEBOOK_TWITTER; final static int TWITTER_FACEBOOK; final static int FACEBOOK; final static int TWITTER; }
@Test public void testShowImmediate() { assertThat(Promote.after(0).times().show(c, 100, null), is(true)); assertThat(Promote.after(0).days().show(c, 101, null), is(true)); assertThat(Promote.after(0).days().after(0).times().show(c, 102, null), is(true)); }
@Test public void testAfter() { assertThat(Promote.after(2).times().show(c, 100, null), is(false)); assertThat(Promote.after(2).times().show(c, 100, null), is(false)); assertThat(Promote.after(2).times().show(c, 100, null), is(true)); assertThat(Promote.after(2).times().show(c, 100, null), is(true)); assertThat(Promote.after(2).times().show(c, 100, null), is(true)); assertThat(Promote.after(2).times().show(c, 100, null), is(true)); }