assertEquals("person", vl.name()); assertTrue(mgmt.containsGraphIndex("timeIndex")); TitanGraphIndex gindex = mgmt.getGraphIndex("timeIndex"); mgmt.changeName(gindex, "byTime"); assertFalse(mgmt.containsVertexLabel("people")); assertTrue(mgmt.containsGraphIndex("byTime")); assertFalse(mgmt.containsGraphIndex("timeIndex"));
assertTrue(mgmt.containsGraphIndex("index1")); assertFalse(mgmt.containsGraphIndex("index")); assertCount(3, mgmt.getGraphIndexes(Vertex.class)); assertNull(mgmt.getGraphIndex("indexx")); assertTrue(mgmt.containsGraphIndex("index1")); assertFalse(mgmt.containsGraphIndex("index")); assertCount(3, mgmt.getGraphIndexes(Vertex.class)); assertNull(mgmt.getGraphIndex("indexx"));
assertTrue(mgmt.containsGraphIndex("prop1")); assertFalse(mgmt.containsGraphIndex("prop3")); assertEquals(2, Iterables.size(mgmt.getGraphIndexes(Edge.class))); assertEquals(2, Iterables.size(mgmt.getGraphIndexes(TitanVertexProperty.class))); assertTrue(mgmt.containsGraphIndex("prop1")); assertFalse(mgmt.containsGraphIndex("prop3")); assertEquals(2, Iterables.size(mgmt.getGraphIndexes(Edge.class))); assertEquals(2, Iterables.size(mgmt.getGraphIndexes(TitanVertexProperty.class)));
assertEquals("person",vl.getName()); assertTrue(mgmt.containsGraphIndex("timeIndex")); TitanGraphIndex gindex = mgmt.getGraphIndex("timeIndex"); mgmt.changeName(gindex,"byTime"); assertFalse(mgmt.containsVertexLabel("people")); assertTrue(mgmt.containsGraphIndex("byTime")); assertFalse(mgmt.containsGraphIndex("timeIndex"));
assertTrue(mgmt.containsGraphIndex("index1")); assertFalse(mgmt.containsGraphIndex("index")); assertEquals(3,Iterables.size(mgmt.getGraphIndexes(Vertex.class))); assertNull(mgmt.getGraphIndex("indexx")); assertTrue(mgmt.containsGraphIndex("index1")); assertFalse(mgmt.containsGraphIndex("index")); assertEquals(3,Iterables.size(mgmt.getGraphIndexes(Vertex.class))); assertNull(mgmt.getGraphIndex("indexx"));
assertTrue(mgmt.containsGraphIndex("prop1")); assertFalse(mgmt.containsGraphIndex("prop3")); assertEquals(2,Iterables.size(mgmt.getGraphIndexes(Edge.class))); assertEquals(2,Iterables.size(mgmt.getGraphIndexes(TitanProperty.class))); assertTrue(mgmt.containsGraphIndex("prop1")); assertFalse(mgmt.containsGraphIndex("prop3")); assertEquals(2,Iterables.size(mgmt.getGraphIndexes(Edge.class))); assertEquals(2,Iterables.size(mgmt.getGraphIndexes(TitanProperty.class)));