use of org.neo4j.graphdb.DatabaseShutdownException in project neo4j by neo4j.
the class TestNeo4jApiExceptions method shouldGiveNiceErrorWhenShutdownKernelApi.
@Test
public void shouldGiveNiceErrorWhenShutdownKernelApi() {
GraphDatabaseService graphDb = graph;
Node node = graphDb.createNode();
commit();
graphDb.shutdown();
try {
asList(node.getLabels().iterator());
fail("Did not get a nice exception");
} catch (DatabaseShutdownException e) {
// good
}
}
Aggregations