@Test public void fetch_HasNoErrors_everythingWorks() throws Exception { fetchCallToHttpClientUpdatesClockAndReturnsConfig(firstFetchedContainer); assertWithMessage("Fetch() failed!").that(fetchHandler.fetch().isSuccessful()).isTrue(); verify(mockFetchedCache).put(firstFetchedContainer); }
public Task<FetchResponse> fetch() { return fetch(frcMetadata.getMinimumFetchIntervalInSeconds()); }
ConfigFetchHandler { public Task<FetchResponse> fetch() { return fetch(frcMetadata.getMinimumFetchIntervalInSeconds()); } }
ConfigFetchHandler { public Task<FetchResponse> fetch() { return fetch(frcMetadata.getMinimumFetchIntervalInSeconds()); } ConfigFetchHandler(
      FirebaseInstallationsApi firebaseInstallations,
      @Nullable AnalyticsConnector analyticsConnector,
      Executor executor,
      Clock clock,
      Random randomGenerator,
      ConfigCacheClient fetchedConfigsCache,
      ConfigFetchHttpClient frcBackendApiClient,
      ConfigMetadataClient frcMetadata,
      Map<String, String> customHttpHeaders); }
ConfigFetchHandler { public Task<FetchResponse> fetch() { return fetch(frcMetadata.getMinimumFetchIntervalInSeconds()); } ConfigFetchHandler(
      FirebaseInstallationsApi firebaseInstallations,
      @Nullable AnalyticsConnector analyticsConnector,
      Executor executor,
      Clock clock,
      Random randomGenerator,
      ConfigCacheClient fetchedConfigsCache,
      ConfigFetchHttpClient frcBackendApiClient,
      ConfigMetadataClient frcMetadata,
      Map<String, String> customHttpHeaders); Task<FetchResponse> fetch(); Task<FetchResponse> fetch(long minimumFetchIntervalInSeconds); @VisibleForTesting @Nullable AnalyticsConnector getAnalyticsConnector(); }
ConfigFetchHandler { public Task<FetchResponse> fetch() { return fetch(frcMetadata.getMinimumFetchIntervalInSeconds()); } ConfigFetchHandler(
      FirebaseInstallationsApi firebaseInstallations,
      @Nullable AnalyticsConnector analyticsConnector,
      Executor executor,
      Clock clock,
      Random randomGenerator,
      ConfigCacheClient fetchedConfigsCache,
      ConfigFetchHttpClient frcBackendApiClient,
      ConfigMetadataClient frcMetadata,
      Map<String, String> customHttpHeaders); Task<FetchResponse> fetch(); Task<FetchResponse> fetch(long minimumFetchIntervalInSeconds); @VisibleForTesting @Nullable AnalyticsConnector getAnalyticsConnector(); static final long DEFAULT_MINIMUM_FETCH_INTERVAL_IN_SECONDS; }