Fix checkstyle

This commit is contained in:
Madhura Bhave 2021-10-06 21:36:52 -07:00
parent e571894903
commit b350eaee8a

View File

@ -42,7 +42,7 @@ import static org.assertj.core.api.Assertions.assertThat;
* @author Madhura Bhave * @author Madhura Bhave
*/ */
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT) @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
public class SampleSessionHazelcastApplicationTests { class SampleSessionHazelcastApplicationTests {
@Autowired @Autowired
private TestRestTemplate restTemplate; private TestRestTemplate restTemplate;
@ -52,7 +52,7 @@ public class SampleSessionHazelcastApplicationTests {
@Test @Test
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public void sessionsEndpointShouldReturnUserSession() { void sessionsEndpointShouldReturnUserSession() {
URI uri = URI.create("http://localhost:" + this.port + "/"); URI uri = URI.create("http://localhost:" + this.port + "/");
ResponseEntity<String> firstResponse = performRequest(this.restTemplate, uri, null); ResponseEntity<String> firstResponse = performRequest(this.restTemplate, uri, null);
String cookie = firstResponse.getHeaders().getFirst("Set-Cookie"); String cookie = firstResponse.getHeaders().getFirst("Set-Cookie");