@Test public void nullSchedulerThrows() { try { RxJava2CachedCallAdapterFactory.createWithScheduler(new MockCachingSystem(), null); fail(); } catch (NullPointerException e) { assertThat(e).hasMessage("scheduler == null"); } }
public static RxJava2CachedCallAdapterFactory createWithScheduler(@NonNull Context context, int appVersion, Scheduler scheduler) { if (scheduler == null) { throw new NullPointerException("mScheduler == null"); } return new RxJava2CachedCallAdapterFactory(RetroCache.getDualCache(context, appVersion), scheduler, false); }
RxJava2CachedCallAdapterFactory extends CallAdapter.Factory { public static RxJava2CachedCallAdapterFactory createWithScheduler(@NonNull Context context, int appVersion, Scheduler scheduler) { if (scheduler == null) { throw new NullPointerException("mScheduler == null"); } return new RxJava2CachedCallAdapterFactory(RetroCache.getDualCache(context, appVersion), scheduler, false); } }
RxJava2CachedCallAdapterFactory extends CallAdapter.Factory { public static RxJava2CachedCallAdapterFactory createWithScheduler(@NonNull Context context, int appVersion, Scheduler scheduler) { if (scheduler == null) { throw new NullPointerException("mScheduler == null"); } return new RxJava2CachedCallAdapterFactory(RetroCache.getDualCache(context, appVersion), scheduler, false); } private  RxJava2CachedCallAdapterFactory(@NonNull Cache<String, byte[]> cachingSystem, @Nullable Scheduler scheduler, boolean async); }
RxJava2CachedCallAdapterFactory extends CallAdapter.Factory { public static RxJava2CachedCallAdapterFactory createWithScheduler(@NonNull Context context, int appVersion, Scheduler scheduler) { if (scheduler == null) { throw new NullPointerException("mScheduler == null"); } return new RxJava2CachedCallAdapterFactory(RetroCache.getDualCache(context, appVersion), scheduler, false); } private  RxJava2CachedCallAdapterFactory(@NonNull Cache<String, byte[]> cachingSystem, @Nullable Scheduler scheduler, boolean async); static RxJava2CachedCallAdapterFactory create(@NonNull Context context, int appVersion); static RxJava2CachedCallAdapterFactory createAsync(@NonNull Context context, int appVersion); static RxJava2CachedCallAdapterFactory createWithScheduler(@NonNull Context context, int appVersion, Scheduler scheduler); static RxJava2CachedCallAdapterFactory create(@NonNull Cache<String, byte[]> cachingSystem); static RxJava2CachedCallAdapterFactory createAsync(@NonNull Cache<String, byte[]> cachingSystem); static RxJava2CachedCallAdapterFactory createWithScheduler(@NonNull Cache<String, byte[]> cachingSystem, Scheduler scheduler); @Override CallAdapter<?, ?> get(Type returnType, Annotation[] annotations, Retrofit retrofit); }
RxJava2CachedCallAdapterFactory extends CallAdapter.Factory { public static RxJava2CachedCallAdapterFactory createWithScheduler(@NonNull Context context, int appVersion, Scheduler scheduler) { if (scheduler == null) { throw new NullPointerException("mScheduler == null"); } return new RxJava2CachedCallAdapterFactory(RetroCache.getDualCache(context, appVersion), scheduler, false); } private  RxJava2CachedCallAdapterFactory(@NonNull Cache<String, byte[]> cachingSystem, @Nullable Scheduler scheduler, boolean async); static RxJava2CachedCallAdapterFactory create(@NonNull Context context, int appVersion); static RxJava2CachedCallAdapterFactory createAsync(@NonNull Context context, int appVersion); static RxJava2CachedCallAdapterFactory createWithScheduler(@NonNull Context context, int appVersion, Scheduler scheduler); static RxJava2CachedCallAdapterFactory create(@NonNull Cache<String, byte[]> cachingSystem); static RxJava2CachedCallAdapterFactory createAsync(@NonNull Cache<String, byte[]> cachingSystem); static RxJava2CachedCallAdapterFactory createWithScheduler(@NonNull Cache<String, byte[]> cachingSystem, Scheduler scheduler); @Override CallAdapter<?, ?> get(Type returnType, Annotation[] annotations, Retrofit retrofit);  }