MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / testEquality

Method testEquality

java/test/org/openqa/selenium/PointTest.java:36–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34 }
35
36 @Test
37 void testEquality() {
38 Point p1 = new Point(30, 60);
39 Point p2 = new Point(40, 60);
40
41 assertThat(p1).isNotEqualTo(p2);
42 // Doesn't have to be different, but known to be different for this case.
43 assertThat(p1.hashCode()).isNotEqualTo(p2.hashCode());
44
45 Point p1copy = new Point(30, 60);
46
47 assertThat(p1copy).isEqualTo(p1);
48 assertThat(p1copy.hashCode()).isEqualTo(p1.hashCode());
49 }
50
51 @Test
52 void testMoveBy() {

Callers

nothing calls this directly

Calls 1

hashCodeMethod · 0.95

Tested by

no test coverage detected