@Test @SuppressWarnings("unchecked") public void testNetworkAsFallbackTypeWithoutCache() { singleRecordConfiguration = new SingleRecordConfiguration(SingleRecordConfiguration.Type.NETWORK_AS_FALLBACK); SuccessEvent event = new SuccessEvent(); singleRecordConfiguration.setSuccessEvent(event); singleRecordConfiguration.setCache(null); assertThat(singleRecordConfiguration.shouldLoadFromCache()).isFalse(); }
public void setCache(RecordCache<T> cache) { this.cache = cache; }
SingleRecordConfiguration extends BaseRecordConfiguration<T> { public void setCache(RecordCache<T> cache) { this.cache = cache; } }
SingleRecordConfiguration extends BaseRecordConfiguration<T> { public void setCache(RecordCache<T> cache) { this.cache = cache; } SingleRecordConfiguration();  SingleRecordConfiguration(Type type); }
SingleRecordConfiguration extends BaseRecordConfiguration<T> { public void setCache(RecordCache<T> cache) { this.cache = cache; } SingleRecordConfiguration();  SingleRecordConfiguration(Type type); void setCache(RecordCache<T> cache); RecordCache<T> getCache(); void removeCache(); }
SingleRecordConfiguration extends BaseRecordConfiguration<T> { public void setCache(RecordCache<T> cache) { this.cache = cache; } SingleRecordConfiguration();  SingleRecordConfiguration(Type type); void setCache(RecordCache<T> cache); RecordCache<T> getCache(); void removeCache();  }