@Test public void testGetStatement(){ DSEConfigurationMock config = new DSEConfigurationMock(); DSEConnectionManager dseConnectionManager = new DSEConnectionManager(config); SimpleGraphStatement statement = dseConnectionManager.getStatement("mock-command"); AssertJUnit.assertNotNull(statement); AssertJUnit.assertEquals(statement.getGraphName(), config.getGraph()); assertNotNull(dseConnectionManager.getDSEGraphSession()); }
public SimpleGraphStatement getStatement(String cmd) { SimpleGraphStatement sVertexStatement = new SimpleGraphStatement(cmd); sVertexStatement.setGraphName(config.getGraph()); return sVertexStatement; }
DSEConnectionManager { public SimpleGraphStatement getStatement(String cmd) { SimpleGraphStatement sVertexStatement = new SimpleGraphStatement(cmd); sVertexStatement.setGraphName(config.getGraph()); return sVertexStatement; } }
DSEConnectionManager { public SimpleGraphStatement getStatement(String cmd) { SimpleGraphStatement sVertexStatement = new SimpleGraphStatement(cmd); sVertexStatement.setGraphName(config.getGraph()); return sVertexStatement; } @Inject  DSEConnectionManager(DSEPersistenceConfiguration config); }
DSEConnectionManager { public SimpleGraphStatement getStatement(String cmd) { SimpleGraphStatement sVertexStatement = new SimpleGraphStatement(cmd); sVertexStatement.setGraphName(config.getGraph()); return sVertexStatement; } @Inject  DSEConnectionManager(DSEPersistenceConfiguration config); SimpleGraphStatement getStatement(String cmd); DSEGraphSession getDSEGraphSession(); }
DSEConnectionManager { public SimpleGraphStatement getStatement(String cmd) { SimpleGraphStatement sVertexStatement = new SimpleGraphStatement(cmd); sVertexStatement.setGraphName(config.getGraph()); return sVertexStatement; } @Inject  DSEConnectionManager(DSEPersistenceConfiguration config); SimpleGraphStatement getStatement(String cmd); DSEGraphSession getDSEGraphSession();  }