/** Test method for {@link com.mapper.map.MapNode#addAdjacentMapEdge(com.mapper.map.MapEdge)} . */ public void testAddAdjacentEdge() { GeoPoint rapsonHall = new GeoPoint(ARCH_LAT, ARCH_LONG); MapNode rapsonHallNode = new MapNode(51, rapsonHall); MapEdge gopherEdge = new MapEdge(5, this.node, rapsonHallNode); node.addAdjacentSkywayEdge(gopherEdge); List<MapEdge> edges = node.getAdjacentEdges(); Assert.assertNotNull(edges); Assert.assertEquals(1, edges.size()); Assert.assertEquals(gopherEdge, edges.get(0)); }
/** * Test method for {@link com.mapper.map.MapNode#getAdjacentMapEdges()}. * * <p>Verifies that the skyway edge list, after node initialization, is empty. */ public void testGetAdjacentMapEdges_initialized() { List<MapEdge> edges = node.getAdjacentEdges(); Assert.assertNotNull(edges); Assert.assertEquals(0, edges.size()); }