Skip to content

Commit 2c65bca

Browse files
committed
Fix tests broken after merge.
1 parent ee1af7a commit 2c65bca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

appcheck/firebase-appcheck-playintegrity/src/test/java/com/google/firebase/appcheck/playintegrity/internal/PlayIntegrityAppCheckProviderTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
public class PlayIntegrityAppCheckProviderTest {
5555

5656
private static final String PROJECT_NUMBER = "123456";
57-
private static final String ATTESTATION_TOKEN = "token";
57+
private static final String APP_CHECK_TOKEN = "appCheckToken";
5858
private static final String TIME_TO_LIVE = "3600s";
5959
private static final String CHALLENGE = "testChallenge";
6060
private static final String INTEGRITY_TOKEN = "integrityToken";
@@ -74,7 +74,7 @@ public class PlayIntegrityAppCheckProviderTest {
7474
public void setup() {
7575
MockitoAnnotations.initMocks(this);
7676
when(mockIntegrityTokenResponse.token()).thenReturn(INTEGRITY_TOKEN);
77-
when(mockAppCheckTokenResponse.getAttestationToken()).thenReturn(ATTESTATION_TOKEN);
77+
when(mockAppCheckTokenResponse.getToken()).thenReturn(APP_CHECK_TOKEN);
7878
when(mockAppCheckTokenResponse.getTimeToLive()).thenReturn(TIME_TO_LIVE);
7979
}
8080

@@ -108,7 +108,7 @@ public void getToken_onSuccess_setsTaskResult() throws Exception {
108108

109109
AppCheckToken token = task.getResult();
110110
assertThat(token).isInstanceOf(DefaultAppCheckToken.class);
111-
assertThat(token.getToken()).isEqualTo(ATTESTATION_TOKEN);
111+
assertThat(token.getToken()).isEqualTo(APP_CHECK_TOKEN);
112112

113113
verify(mockNetworkClient).generatePlayIntegrityChallenge(any(), eq(mockRetryManager));
114114

0 commit comments

Comments
 (0)