Polishing

This commit is contained in:
Sam Brannen 2019-08-27 17:42:00 +02:00
parent b2ad16aaa7
commit aef67ea6bd
1 changed files with 1 additions and 3 deletions

View File

@ -393,9 +393,7 @@ class MockHttpServletResponseTests {
private void assertPrimarySessionCookie(String expectedValue) { private void assertPrimarySessionCookie(String expectedValue) {
Cookie cookie = this.response.getCookie("SESSION"); Cookie cookie = this.response.getCookie("SESSION");
assertThat(cookie).isNotNull(); assertThat(cookie).isInstanceOf(MockCookie.class);
boolean condition = cookie instanceof MockCookie;
assertThat(condition).isTrue();
assertThat(cookie.getName()).isEqualTo("SESSION"); assertThat(cookie.getName()).isEqualTo("SESSION");
assertThat(cookie.getValue()).isEqualTo(expectedValue); assertThat(cookie.getValue()).isEqualTo(expectedValue);
assertThat(cookie.getPath()).isEqualTo("/"); assertThat(cookie.getPath()).isEqualTo("/");