Skip to content

Commit 8ae7239

Browse files
committed
add casting. fixes jdk7 test
1 parent c20a76c commit 8ae7239

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/test/java/com/auth0/net/CustomRequestTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ public void shouldParseJSONErrorResponseWithError() throws Exception {
214214
assertThat(authException.getStatusCode(), is(400));
215215
}
216216

217+
@SuppressWarnings("RedundantCast")
217218
@Test
218219
public void shouldParseJSONErrorResponseWithDescriptionAndExtraProperties() throws Exception {
219220
CustomRequest<List> request = new CustomRequest<>(client, server.getBaseUrl(), "GET", listType);
@@ -232,7 +233,7 @@ public void shouldParseJSONErrorResponseWithDescriptionAndExtraProperties() thro
232233
APIException authException = (APIException) exception;
233234
assertThat(authException.getDescription(), is("Multifactor authentication required"));
234235
assertThat(authException.getError(), is("mfa_required"));
235-
assertThat(authException.getValue("mfa_token"), is("Fe26...Ha"));
236+
assertThat(authException.getValue("mfa_token"), is((Object) "Fe26...Ha"));
236237
assertThat(authException.getValue("non_existing_key"), is(nullValue()));
237238
assertThat(authException.getStatusCode(), is(400));
238239
}

0 commit comments

Comments
 (0)