58596061626364656667
} @Test public void compareToEquals() { PathNode pn = util.new PathNode(); NodePair np = new NodePair("name", pn); NodePair np1 = new NodePair("name", pn); assertEquals(0, np.compareTo(np1)); assertEquals(np, np1); }
6768697071727374
} @Test(expected = NullPointerException.class) public void nullCompareTo() { PathNode pn = util.new PathNode(); NodePair np = new NodePair("name", pn); assertEquals(1, np.compareTo(null)); }
7475767778798081
} @Test public void nullEquals() { PathNode pn = util.new PathNode(); NodePair np = new NodePair("name", pn); assertFalse(np.equals(null)); }
8182838485868788
} @Test public void otherObjectEquals() { PathNode pn = util.new PathNode(); NodePair np = new NodePair("name", pn); assertFalse(np.equals(pn)); }
88899091929394959697
} @Test public void notEqualNodes() { PathNode pn = util.new PathNode(); NodePair np = new NodePair("name", pn); NodePair np1 = new NodePair("diff", pn); assertTrue(np.compareTo(np1) > 0); assertFalse(np.equals(np1)); }