assertTrue(mgmt.containsRelationType("knows")); knows = mgmt.getEdgeLabel("knows"); mgmt.changeName(knows, "know"); assertTrue(mgmt.containsRelationType("know")); assertFalse(mgmt.containsRelationType("knows")); knows = mgmt.getEdgeLabel("know");
assertTrue(mgmt.containsRelationType("weight")); assertTrue(mgmt.containsPropertyKey("weight")); assertFalse(mgmt.containsEdgeLabel("weight")); assertTrue(mgmt.containsEdgeLabel("connect")); assertFalse(mgmt.containsPropertyKey("connect")); assertFalse(mgmt.containsRelationType("bla")); assertNull(mgmt.getPropertyKey("bla")); assertNull(mgmt.getEdgeLabel("bla")); assertTrue(mgmt.containsRelationType("weight")); assertTrue(mgmt.containsPropertyKey("weight")); assertFalse(mgmt.containsEdgeLabel("weight")); assertTrue(mgmt.containsEdgeLabel("connect")); assertFalse(mgmt.containsPropertyKey("connect")); assertFalse(mgmt.containsRelationType("bla")); assertNull(mgmt.getPropertyKey("bla")); assertNull(mgmt.getEdgeLabel("bla"));
assertTrue(mgmt.containsRelationType("name")); assertTrue(mgmt.containsGraphIndex("prop1")); assertFalse(mgmt.containsGraphIndex("prop3")); assertTrue(mgmt.containsRelationType("name")); assertTrue(mgmt.containsGraphIndex("prop1")); assertFalse(mgmt.containsGraphIndex("prop3"));
assertTrue(mgmt.containsRelationType("knows")); knows = mgmt.getEdgeLabel("knows"); mgmt.changeName(knows,"know"); assertTrue(mgmt.containsRelationType("know")); assertFalse(mgmt.containsRelationType("knows")); knows = mgmt.getEdgeLabel("know");
assertTrue(mgmt.containsRelationType("weight")); assertTrue(mgmt.containsPropertyKey("weight")); assertFalse(mgmt.containsEdgeLabel("weight")); assertTrue(mgmt.containsEdgeLabel("connect")); assertFalse(mgmt.containsPropertyKey("connect")); assertFalse(mgmt.containsRelationType("bla")); assertNull(mgmt.getPropertyKey("bla")); assertNull(mgmt.getEdgeLabel("bla")); assertTrue(mgmt.containsRelationType("weight")); assertTrue(mgmt.containsPropertyKey("weight")); assertFalse(mgmt.containsEdgeLabel("weight")); assertTrue(mgmt.containsEdgeLabel("connect")); assertFalse(mgmt.containsPropertyKey("connect")); assertFalse(mgmt.containsRelationType("bla")); assertNull(mgmt.getPropertyKey("bla")); assertNull(mgmt.getEdgeLabel("bla"));
assertTrue(mgmt.containsRelationType("name")); assertTrue(mgmt.containsGraphIndex("prop1")); assertFalse(mgmt.containsGraphIndex("prop3")); assertTrue(mgmt.containsRelationType("name")); assertTrue(mgmt.containsGraphIndex("prop1")); assertFalse(mgmt.containsGraphIndex("prop3"));