@Override
public void createDatastore(Datastore datastore) {
_datastoreCreated = true;
assertEquals("my datastore", datastore.getName());
DataContextProvider dcp = datastore.getDataContextProvider();
DataContext dc = dcp.getDataContext();
Table table = dc.getDefaultSchema().getTables()[0];
Query q = dc.query().from(table).select(table.getColumns()).toQuery();
DataSet dataSet = dc.executeQuery(q);
scenarioHelper.performAssertions(dataSet, true);
dcp.close();
}
};
OutputWriter writer = DatastoreOutputWriterFactory.getWriter(outputDir, creationDelegate, "my datastore", "dataset",
scenarioHelper.getColumns().toArray(new InputColumn[0]));