long e1id = e1.getLongId(); long e2id = e2.getLongId(); e1 = (TitanEdge)Iterables.getOnlyElement(v1.getEdges(OUT,connect.getName())); assertEquals("e1",e1.getProperty(name.getName())); assertEquals(e1id,e1.getLongId()); e2 = (TitanEdge)Iterables.getOnlyElement(v1.getEdges(OUT,related.getName())); assertEquals("e2",e2.getProperty(name.getName())); assertEquals(e2id,e2.getLongId()); assertEquals(e1id,e1.getLongId()); //should have same id e2 = (TitanEdge)Iterables.getOnlyElement(v1.getEdges(OUT,related.getName())); assertEquals("e2.2",e2.getProperty(name.getName())); assertNotEquals(e2id,e2.getLongId()); //should have different id since forked
assertNotEquals(rs[6].getLongId(),e.getLongId()); e = (TitanEdge)Iterables.getOnlyElement(v.getEdges(Direction.OUT,"o2o")); assertEquals(wintx,e.getProperty("sig")); assertEquals(rs[7].getLongId(),e.getLongId()); e = (TitanEdge)Iterables.getOnlyElement(v.getEdges(Direction.OUT,"o2m")); assertEquals(wintx,e.getProperty("sig")); assertNotEquals(rs[8].getLongId(),e.getLongId()); e = (TitanEdge)Iterables.getOnlyElement(v.getEdges(Direction.OUT,"em")); assertEquals(wintx,e.getProperty("sig")); assertEquals(rs[4].getLongId(),e.getLongId()); for (Edge ee : v.getEdges(Direction.OUT,"emf")) { assertNotEquals(rs[5].getLongId(),ee.getId());