@Test public void fetch_hasAbtExperiments_storesExperiments() throws Exception { ConfigContainer containerWithExperiments = ConfigContainer.newBuilder(firstFetchedContainer) .withAbtExperiments(generateAbtExperiments( 5)) .build(); ArgumentCaptor<ConfigContainer> captor = ArgumentCaptor.forClass(ConfigContainer.class); fetchCallToHttpClientUpdatesClockAndReturnsConfig(containerWithExperiments); fetchHandler.fetch(); verify(mockFetchedCache).put(captor.capture()); JSONAssert.assertEquals( containerWithExperiments.toString(), captor.getValue().toString(), false); }
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; }