Fixes test

This commit is contained in:
spencergibb
2022-10-10 14:28:10 -04:00
parent 733e9f3ee8
commit b18ea82607
2 changed files with 9 additions and 2 deletions

View File

@@ -71,7 +71,8 @@ public class RefreshEndpointIntegrationTests {
HttpHeaders headers = new HttpHeaders();
headers.setContentType(MediaType.APPLICATION_JSON);
HttpEntity request = new HttpEntity(headers);
ResponseEntity<String> refreshResponse = template.postForEntity("http://localhost:" + this.port + BASE_PATH + "/refresh", request, String.class);
ResponseEntity<String> refreshResponse = template
.postForEntity("http://localhost:" + this.port + BASE_PATH + "/refresh", request, String.class);
assertThat(refreshResponse.getStatusCode()).isEqualTo(HttpStatus.OK);
String message = template.getForObject("http://localhost:" + this.port + "/", String.class);
then(message).isEqualTo("Hello Dave!");