@Test public void getLastSuccessfulFetchTime_isNotSet_returnsZero() { assertThat(metadataClient.getLastSuccessfulFetchTime()).isEqualTo(LAST_FETCH_TIME_NO_FETCH_YET); }
Date getLastSuccessfulFetchTime() { return new Date( frcMetadata.getLong( LAST_SUCCESSFUL_FETCH_TIME_IN_MILLIS_KEY, LAST_FETCH_TIME_IN_MILLIS_NO_FETCH_YET)); }
ConfigMetadataClient { Date getLastSuccessfulFetchTime() { return new Date( frcMetadata.getLong( LAST_SUCCESSFUL_FETCH_TIME_IN_MILLIS_KEY, LAST_FETCH_TIME_IN_MILLIS_NO_FETCH_YET)); } }
ConfigMetadataClient { Date getLastSuccessfulFetchTime() { return new Date( frcMetadata.getLong( LAST_SUCCESSFUL_FETCH_TIME_IN_MILLIS_KEY, LAST_FETCH_TIME_IN_MILLIS_NO_FETCH_YET)); } ConfigMetadataClient(SharedPreferences frcMetadata); }
ConfigMetadataClient { Date getLastSuccessfulFetchTime() { return new Date( frcMetadata.getLong( LAST_SUCCESSFUL_FETCH_TIME_IN_MILLIS_KEY, LAST_FETCH_TIME_IN_MILLIS_NO_FETCH_YET)); } ConfigMetadataClient(SharedPreferences frcMetadata); boolean isDeveloperModeEnabled(); long getFetchTimeoutInSeconds(); long getMinimumFetchIntervalInSeconds(); FirebaseRemoteConfigInfo getInfo(); @WorkerThread void clear(); @WorkerThread void setConfigSettings(FirebaseRemoteConfigSettings settings); void setConfigSettingsWithoutWaitingOnDiskWrite(FirebaseRemoteConfigSettings settings); }
ConfigMetadataClient { Date getLastSuccessfulFetchTime() { return new Date( frcMetadata.getLong( LAST_SUCCESSFUL_FETCH_TIME_IN_MILLIS_KEY, LAST_FETCH_TIME_IN_MILLIS_NO_FETCH_YET)); } ConfigMetadataClient(SharedPreferences frcMetadata); boolean isDeveloperModeEnabled(); long getFetchTimeoutInSeconds(); long getMinimumFetchIntervalInSeconds(); FirebaseRemoteConfigInfo getInfo(); @WorkerThread void clear(); @WorkerThread void setConfigSettings(FirebaseRemoteConfigSettings settings); void setConfigSettingsWithoutWaitingOnDiskWrite(FirebaseRemoteConfigSettings settings); @VisibleForTesting static final long LAST_FETCH_TIME_IN_MILLIS_NO_FETCH_YET; }