@Test public void openGraphConfigNotFound() throws ConfigurationException { assertThrows(ConfigurationException.class, () -> new GraphApp("conf/foobar").openGraph()); }
public GraphTraversalSource openGraph() throws ConfigurationException { LOGGER.info("opening graph"); conf = new PropertiesConfiguration(propFileName); graph = GraphFactory.open(conf); g = graph.traversal(); return g; }
GraphApp { public GraphTraversalSource openGraph() throws ConfigurationException { LOGGER.info("opening graph"); conf = new PropertiesConfiguration(propFileName); graph = GraphFactory.open(conf); g = graph.traversal(); return g; } }
GraphApp { public GraphTraversalSource openGraph() throws ConfigurationException { LOGGER.info("opening graph"); conf = new PropertiesConfiguration(propFileName); graph = GraphFactory.open(conf); g = graph.traversal(); return g; } GraphApp(final String fileName); }
GraphApp { public GraphTraversalSource openGraph() throws ConfigurationException { LOGGER.info("opening graph"); conf = new PropertiesConfiguration(propFileName); graph = GraphFactory.open(conf); g = graph.traversal(); return g; } GraphApp(final String fileName); GraphTraversalSource openGraph(); void closeGraph(); void dropGraph(); void createSchema(); void createElements(); void readElements(); void updateElements(); void deleteElements(); void runApp(); }
GraphApp { public GraphTraversalSource openGraph() throws ConfigurationException { LOGGER.info("opening graph"); conf = new PropertiesConfiguration(propFileName); graph = GraphFactory.open(conf); g = graph.traversal(); return g; } GraphApp(final String fileName); GraphTraversalSource openGraph(); void closeGraph(); void dropGraph(); void createSchema(); void createElements(); void readElements(); void updateElements(); void deleteElements(); void runApp();  }