提交 aef67ea6 编写于 作者: S Sam Brannen

Polishing

上级 b2ad16aa
...@@ -393,9 +393,7 @@ class MockHttpServletResponseTests { ...@@ -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("/");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册