Fixes test
This commit is contained in:
@@ -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!");
|
||||
|
||||
Reference in New Issue
Block a user