Skip to content

Commit

Permalink
Fix Test Cases
Browse files Browse the repository at this point in the history
  • Loading branch information
hemantxpatel committed Apr 29, 2024
1 parent bb98774 commit 25e2655
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@ void tokenJSON() {
new ParameterizedTypeReference<>() {
}
);
Assertions.assertEquals(response.getStatusCode(), HttpStatus.CREATED);
Assertions.assertEquals(response.getStatusCode(), HttpStatus.OK);
Assertions.assertEquals(response.getHeaders().getContentType(), MediaType.APPLICATION_JSON);
Assertions.assertNotNull(response.getBody());
Assertions.assertNotNull(response.getBody().getOrDefault("token", null));
Assertions.assertNotNull(response.getBody().getOrDefault("access_token", null));
Assertions.assertNotNull(response.getBody().getOrDefault("expiresAt", null));
}

Expand All @@ -127,10 +127,10 @@ void tokenFormUrlencoded() {
new ParameterizedTypeReference<>() {
}
);
Assertions.assertEquals(response.getStatusCode(), HttpStatus.CREATED);
Assertions.assertEquals(response.getStatusCode(), HttpStatus.OK);
Assertions.assertEquals(response.getHeaders().getContentType(), MediaType.APPLICATION_JSON);
Assertions.assertNotNull(response.getBody());
Assertions.assertNotNull(response.getBody().getOrDefault("token", null));
Assertions.assertNotNull(response.getBody().getOrDefault("access_token", null));
Assertions.assertNotNull(response.getBody().getOrDefault("expiresAt", null));
}
}

0 comments on commit 25e2655

Please sign in to comment.