mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-20 04:09:04 +00:00
Polishing
This commit is contained in:
+1
-3
@@ -393,9 +393,7 @@ class MockHttpServletResponseTests {
|
||||
|
||||
private void assertPrimarySessionCookie(String expectedValue) {
|
||||
Cookie cookie = this.response.getCookie("SESSION");
|
||||
assertThat(cookie).isNotNull();
|
||||
boolean condition = cookie instanceof MockCookie;
|
||||
assertThat(condition).isTrue();
|
||||
assertThat(cookie).isInstanceOf(MockCookie.class);
|
||||
assertThat(cookie.getName()).isEqualTo("SESSION");
|
||||
assertThat(cookie.getValue()).isEqualTo(expectedValue);
|
||||
assertThat(cookie.getPath()).isEqualTo("/");
|
||||
|
||||
Reference in New Issue
Block a user