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

Method nullPath

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

@throws Exception if the test fails

()

Source from the content-addressed store, hash-verified

99 * @throws Exception if the test fails
100 */
101 @Test
102 public void nullPath() throws Exception {
103 final Cookie cookie1 = new Cookie("localhost", "a", "one", null, null, false, false, null);
104 final Cookie cookie2 = new Cookie("localhost", "a", "one", null, null, false, false, null);
105 final Cookie cookie3 = new Cookie("localhost", "a", "one", "/", null, true, false, null);
106 assertEquals(cookie1, cookie2);
107 assertEquals(cookie2, cookie3);
108 assertEquals(cookie1.hashCode(), cookie2.hashCode());
109 assertEquals(cookie2.hashCode(), cookie3.hashCode());
110 }
111
112 /**
113 * @throws Exception if the test fails

Callers

nothing calls this directly

Calls 2

hashCodeMethod · 0.95
assertEqualsMethod · 0.45

Tested by

no test coverage detected