Skip to content

Commit aa5957e

Browse files
committed
fixed error in FetchHttpClientTest
1 parent 351f5c4 commit aa5957e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

firebase-config/src/test/java/com/google/firebase/remoteconfig/internal/ConfigFetchHttpClientTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
import static com.google.firebase.remoteconfig.RemoteConfigConstants.ResponseFieldKey.ENTRIES;
3636
import static com.google.firebase.remoteconfig.RemoteConfigConstants.ResponseFieldKey.EXPERIMENT_DESCRIPTIONS;
3737
import static com.google.firebase.remoteconfig.RemoteConfigConstants.ResponseFieldKey.STATE;
38+
import static com.google.firebase.remoteconfig.testutil.Assert.assertFalse;
3839
import static com.google.firebase.remoteconfig.testutil.Assert.assertThrows;
3940
import static org.mockito.MockitoAnnotations.initMocks;
4041

@@ -236,7 +237,7 @@ public void fetch_nullFirstOpenTime_fieldNotPresentInRequestBody() throws Except
236237

237238
assertThat(requestBody.getJSONObject(ANALYTICS_USER_PROPERTIES).toString())
238239
.isEqualTo(new JSONObject(customUserProperties).toString());
239-
assertThat(requestBody.isNull(FIRST_OPEN_TIME));
240+
assertFalse(requestBody.has(FIRST_OPEN_TIME));
240241
}
241242

242243
@Test

0 commit comments

Comments
 (0)