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 30, 2024
1 parent 78b7dc3 commit 8eda499
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 8eda499

Please sign in to comment.