@throws Exception if the test fails
()
| 81 | * @throws Exception if the test fails |
| 82 | */ |
| 83 | @Test |
| 84 | public void properties() throws Exception { |
| 85 | final Cookie cookie = new Cookie("localhost", "Name ", "Value ", "/Path x ", new Date(1234567890), |
| 86 | true, true, "SameSite"); |
| 87 | |
| 88 | assertEquals("localhost", cookie.getDomain()); |
| 89 | assertEquals("Name ", cookie.getName()); |
| 90 | assertEquals("Value ", cookie.getValue()); |
| 91 | assertEquals("/Path x ", cookie.getPath()); |
| 92 | assertEquals(new Date(1234567890), cookie.getExpires()); |
| 93 | assertTrue(cookie.isSecure()); |
| 94 | assertTrue(cookie.isHttpOnly()); |
| 95 | assertEquals("SameSite", cookie.getSameSite()); |
| 96 | } |
| 97 | |
| 98 | /** |
| 99 | * @throws Exception if the test fails |
nothing calls this directly
no test coverage detected