@Test public void getBlocking_hasNoCachedValueAndFileReadFails_returnsNull() throws Exception { when(mockStorageClient.read()).thenThrow(IO_EXCEPTION); ConfigContainer container = cacheClient.getBlocking(); assertThat(container).isNull(); }
@Nullable public ConfigContainer getBlocking() { return getBlocking(DISK_READ_TIMEOUT_IN_SECONDS); }
ConfigCacheClient { @Nullable public ConfigContainer getBlocking() { return getBlocking(DISK_READ_TIMEOUT_IN_SECONDS); } }
ConfigCacheClient { @Nullable public ConfigContainer getBlocking() { return getBlocking(DISK_READ_TIMEOUT_IN_SECONDS); } private  ConfigCacheClient(ExecutorService executorService, ConfigStorageClient storageClient); }
ConfigCacheClient { @Nullable public ConfigContainer getBlocking() { return getBlocking(DISK_READ_TIMEOUT_IN_SECONDS); } private  ConfigCacheClient(ExecutorService executorService, ConfigStorageClient storageClient); Task<ConfigContainer> putWithoutWaitingForDiskWrite(ConfigContainer configContainer); @Nullable ConfigContainer getBlocking(); Task<ConfigContainer> put(ConfigContainer configContainer); Task<ConfigContainer> put(
      ConfigContainer configContainer, boolean shouldUpdateInMemoryContainer); synchronized Task<ConfigContainer> get(); void clear(); static synchronized ConfigCacheClient getInstance(
      ExecutorService executorService, ConfigStorageClient storageClient); @VisibleForTesting static synchronized void clearInstancesForTest(); }
ConfigCacheClient { @Nullable public ConfigContainer getBlocking() { return getBlocking(DISK_READ_TIMEOUT_IN_SECONDS); } private  ConfigCacheClient(ExecutorService executorService, ConfigStorageClient storageClient); Task<ConfigContainer> putWithoutWaitingForDiskWrite(ConfigContainer configContainer); @Nullable ConfigContainer getBlocking(); Task<ConfigContainer> put(ConfigContainer configContainer); Task<ConfigContainer> put(
      ConfigContainer configContainer, boolean shouldUpdateInMemoryContainer); synchronized Task<ConfigContainer> get(); void clear(); static synchronized ConfigCacheClient getInstance(
      ExecutorService executorService, ConfigStorageClient storageClient); @VisibleForTesting static synchronized void clearInstancesForTest();  }