105106107108109110111112113114115
assertNotEquals(b1,b2) ; } @Test public void allocGraphScope4() { LabelToNode alloc = LabelToNode.createScopeByDocument() ; Node b1 = alloc.get(null, "xyz" ) ; Node b2 = alloc.get(gragh2, "xyz" ) ; // DIFFERENT assertEquals(b1,b2) ; }
114115116117118119120121122123124
assertEquals(b1,b2) ; } @Test public void allocGraphScope5() { LabelToNode alloc = LabelToNode.createScopeByDocument() ; Node b1 = alloc.get(null, "xyz" ) ; Node b2 = alloc.get(null, "xyz" ) ; // SAME assertEquals(b1,b2) ; }