use of com.baidu.hugegraph.auth.AuthManager in project incubator-hugegraph by apache.
the class AuthTest method testProjectRemoveGraph.
@Test
public void testProjectRemoveGraph() {
Id projectId = makeProjectAndAddGraph(graph(), "test_project", "graph_test");
AuthManager authManager = graph().authManager();
Assert.assertNotNull(projectId);
HugeProject project = authManager.getProject(projectId);
Assert.assertNotNull(project);
Assert.assertFalse(project.graphs().isEmpty());
projectId = authManager.projectRemoveGraphs(project.id(), ImmutableSet.of("graph_test"));
project = authManager.getProject(projectId);
Assert.assertNotNull(project);
Assert.assertTrue(project.graphs().isEmpty());
}
Aggregations