@Test public void testGetContentCacheControllerViaRequire() { assertThat(underTest.require(CacheControllerHolder.CONTENT), is(contentCacheController)); }
public CacheController require(final CacheType cacheType) { return checkNotNull(get(cacheType), "Unexpected cache type: " + cacheType); }
CacheControllerHolder { public CacheController require(final CacheType cacheType) { return checkNotNull(get(cacheType), "Unexpected cache type: " + cacheType); } }
CacheControllerHolder { public CacheController require(final CacheType cacheType) { return checkNotNull(get(cacheType), "Unexpected cache type: " + cacheType); } CacheControllerHolder(final CacheController contentCacheController,
                               final CacheController metadataCacheController); }
CacheControllerHolder { public CacheController require(final CacheType cacheType) { return checkNotNull(get(cacheType), "Unexpected cache type: " + cacheType); } CacheControllerHolder(final CacheController contentCacheController,
                               final CacheController metadataCacheController); @Nonnull CacheController getContentCacheController(); @Nonnull CacheController getMetadataCacheController(); @Nullable CacheController get(final CacheType cacheType); CacheController require(final CacheType cacheType); @Nullable CacheController set(final CacheType cacheType, @Nullable final CacheController cacheController); void invalidateCaches(); }
CacheControllerHolder { public CacheController require(final CacheType cacheType) { return checkNotNull(get(cacheType), "Unexpected cache type: " + cacheType); } CacheControllerHolder(final CacheController contentCacheController,
                               final CacheController metadataCacheController); @Nonnull CacheController getContentCacheController(); @Nonnull CacheController getMetadataCacheController(); @Nullable CacheController get(final CacheType cacheType); CacheController require(final CacheType cacheType); @Nullable CacheController set(final CacheType cacheType, @Nullable final CacheController cacheController); void invalidateCaches(); static final CacheType CONTENT; static final CacheType METADATA; }