Skip to content

Commit

Permalink
Fix tests for null check messaging
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmyjames committed Oct 21, 2020
1 parent acf3db6 commit 5bffb03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/com/auth0/client/auth/AuthAPITest.java
Original file line number Diff line number Diff line change
Expand Up @@ -1175,7 +1175,7 @@ public void shouldCreateRenewAuthRequest() throws Exception {
@Test
public void shouldThrowWhenExchangeMfaOtpCalledWithNullMfaToken() {
exception.expect(IllegalArgumentException.class);
exception.expectMessage("'mfaToken' cannot be null!");
exception.expectMessage("'mfa token' cannot be null!");
api.exchangeMfaOtp(null, new char[]{'o','t','p'});
}

Expand All @@ -1202,7 +1202,7 @@ public void shouldCreateExchangeMfaOtpRequest() throws Exception {
assertThat(body, hasEntry("grant_type", (Object) "http://auth0.com/oauth/grant-type/mfa-otp"));
assertThat(body, hasEntry("client_id", (Object) CLIENT_ID));
assertThat(body, hasEntry("client_secret", (Object) CLIENT_SECRET));
assertThat(body, hasEntry("mfa_token", (Object) "mfa token"));
assertThat(body, hasEntry("mfa_token", (Object) "mfaToken"));
assertThat(body, hasEntry("otp", (Object) "otp"));

assertThat(response, is(notNullValue()));
Expand Down

0 comments on commit 5bffb03

Please sign in to comment.