@Test public void verifyScheduledTwiceOverridesExisting() { long time = 1L; DailyJob.schedule(DummyJobs.createBuilder(DummyJobs.SuccessJob.class), time, time); DailyJob.schedule(DummyJobs.createBuilder(DummyJobs.SuccessJob.class), time, time); Set<JobRequest> requests = manager().getAllJobRequests(); assertThat(requests).hasSize(1); assertThat(requests.iterator().next().getTag()).isEqualTo(DummyJobs.SuccessJob.TAG); }
public static int schedule(@NonNull JobRequest.Builder baseBuilder, long startMs, long endMs) { return schedule(baseBuilder, true, startMs, endMs, false); }
DailyJob extends Job { public static int schedule(@NonNull JobRequest.Builder baseBuilder, long startMs, long endMs) { return schedule(baseBuilder, true, startMs, endMs, false); } }
DailyJob extends Job { public static int schedule(@NonNull JobRequest.Builder baseBuilder, long startMs, long endMs) { return schedule(baseBuilder, true, startMs, endMs, false); }  }
DailyJob extends Job { public static int schedule(@NonNull JobRequest.Builder baseBuilder, long startMs, long endMs) { return schedule(baseBuilder, true, startMs, endMs, false); }  static int schedule(@NonNull JobRequest.Builder baseBuilder, long startMs, long endMs); static void scheduleAsync(@NonNull JobRequest.Builder baseBuilder, long startMs, long endMs); static void scheduleAsync(@NonNull final JobRequest.Builder baseBuilder, final long startMs, final long endMs,
                                     @NonNull final JobRequest.JobScheduledCallback callback); static int startNowOnce(@NonNull JobRequest.Builder baseBuilder); }
DailyJob extends Job { public static int schedule(@NonNull JobRequest.Builder baseBuilder, long startMs, long endMs) { return schedule(baseBuilder, true, startMs, endMs, false); }  static int schedule(@NonNull JobRequest.Builder baseBuilder, long startMs, long endMs); static void scheduleAsync(@NonNull JobRequest.Builder baseBuilder, long startMs, long endMs); static void scheduleAsync(@NonNull final JobRequest.Builder baseBuilder, final long startMs, final long endMs,
                                     @NonNull final JobRequest.JobScheduledCallback callback); static int startNowOnce(@NonNull JobRequest.Builder baseBuilder);  }