@Test @SuppressWarnings("unchecked") public void testNetworkAsFallbackTypeWithCacheButNoResult() { multiRecordConfiguration = new MultiRecordConfiguration(MultiRecordConfiguration.Type.NETWORK_AS_FALLBACK); SuccessEvent event = new SuccessEvent(); multiRecordConfiguration.setSuccessEvent(event); multiRecordConfiguration.setCache(mock(RecordCache.class)); assertThat(multiRecordConfiguration.shouldLoadFromCache()).isTrue(); assertThat(multiRecordConfiguration.shouldLoadFromNetwork()).isTrue(); }
public void setCache(RecordCache<T> cache) { this.cache = cache; }
MultiRecordConfiguration extends BaseRecordConfiguration<List<T>> { public void setCache(RecordCache<T> cache) { this.cache = cache; } }
MultiRecordConfiguration extends BaseRecordConfiguration<List<T>> { public void setCache(RecordCache<T> cache) { this.cache = cache; } MultiRecordConfiguration();  MultiRecordConfiguration(Type type); }
MultiRecordConfiguration extends BaseRecordConfiguration<List<T>> { public void setCache(RecordCache<T> cache) { this.cache = cache; } MultiRecordConfiguration();  MultiRecordConfiguration(Type type); void setCache(RecordCache<T> cache); RecordCache<T> getCache(); void removeCache(); }
MultiRecordConfiguration extends BaseRecordConfiguration<List<T>> { public void setCache(RecordCache<T> cache) { this.cache = cache; } MultiRecordConfiguration();  MultiRecordConfiguration(Type type); void setCache(RecordCache<T> cache); RecordCache<T> getCache(); void removeCache();  }