use of com.thinkaurelius.titan.core.schema.VertexLabelMaker in project titan by thinkaurelius.
the class ManagementTest method testReservedNamesRejectedForVertexLabels.
@Test
public void testReservedNamesRejectedForVertexLabels() {
for (String s : ILLEGAL_USER_DEFINED_NAMES) {
TitanManagement tm = graph.openManagement();
VertexLabelMaker vlm = null;
try {
vlm = tm.makeVertexLabel(s);
Assert.fail("Vertex label \"" + s + "\" must be rejected");
} catch (IllegalArgumentException e) {
log.debug("Caught expected exception", e);
} finally {
tm.commit();
}
}
}
Aggregations