MCPcopy Create free account
hub / github.com/HtmlUnit/htmlunit / string

Method string

src/test/java/org/htmlunit/util/CookieTest.java:115–122  ·  view source on GitHub ↗

@throws Exception if the test fails

()

Source from the content-addressed store, hash-verified

113 * @throws Exception if the test fails
114 */
115 @Test
116 public void string() throws Exception {
117 final Cookie cookie = new Cookie("localhost", "Name ", "Value ", "/Path x ", new Date(1234567890),
118 true, true, "SameSite");
119
120 assertEquals("Name =Value ;domain=localhost;path=/Path x ;"
121 + "expires=Thu Jan 15 07:56:07 CET 1970;secure;httpOnly;sameSite=SameSite", cookie.toString());
122 }
123}

Callers

nothing calls this directly

Calls 2

toStringMethod · 0.95
assertEqualsMethod · 0.45

Tested by

no test coverage detected