Skip to content

Commit ce7c223

Browse files
authored
Updating unit test for error code common PR (#2147)
### Summary See AzureAD/microsoft-authentication-library-common-for-android#2460. With the null_pointer_error code, this unit test needs to be updated to compare with the null_pointer_error code vs the unknown_error code.
1 parent efe532c commit ce7c223

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

msal/src/test/java/com/microsoft/identity/client/e2e/tests/mocked/AcquireTokenMockTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ public void testAcquireTokenFailureUnsuccessfulTokenResult() {
200200
.withLoginHint(username)
201201
.withScopes(Arrays.asList(mScopes))
202202
.fromAuthority(getAuthority())
203-
.withCallback(AcquireTokenTestHelper.failureInteractiveCallback(ErrorCodes.UNKNOWN_ERROR_CODE))
203+
.withCallback(AcquireTokenTestHelper.failureInteractiveCallback(ErrorCodes.NULL_POINTER_ERROR_CDOE))
204204
.build();
205205

206206
mApplication.acquireToken(parameters);

msal/src/test/java/com/microsoft/identity/client/e2e/utils/ErrorCodes.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,5 @@ public class ErrorCodes {
2929
public static final String NO_ACCOUNT_FOUND_ERROR_CODE = "no_account_found";
3030
public static final String NO_CURRENT_ACCOUNT_ERROR_CODE = "no_current_account";
3131
public static final String INTERNAL_SERVER_ERROR_CODE = "internal_server_error";
32+
public static final String NULL_POINTER_ERROR_CDOE = "null_pointer_error";
3233
}

0 commit comments

Comments
 (0)