mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Fix checkstyle
This commit is contained in:
parent
e571894903
commit
b350eaee8a
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user