@Test public void verifyHasExtras() { long start = 0; long end = 1L; int jobId = DailyJob.schedule(DummyJobs.createBuilder(DummyJobs.SuccessJob.class), start, end); JobRequest request = manager().getJobRequest(jobId); assertThat(request).isNotNull(); assertThat(request.getExtras().getLong(DailyJob.EXTRA_START_MS, -1)).isEqualTo(0L); assertThat(request.getExtras().getLong(DailyJob.EXTRA_END_MS, -1)).isEqualTo(1L); assertThat(request.getExtras().size()).isEqualTo(2); }
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);  }