use of io.syndesis.qe.utils.DbUtils in project syndesis-qe by syndesisio.
the class CommonSteps method cleanTodoTable.
@Given("^clean TODO table$")
public void cleanTodoTable() {
DbUtils dbUtils = new DbUtils(SampleDbConnectionManager.getInstance().getConnection());
dbUtils.deleteRecordsInTable("TODO");
SampleDbConnectionManager.getInstance().closeConnection();
}
use of io.syndesis.qe.utils.DbUtils in project syndesis-qe by syndesisio.
the class CommonSteps method executeSql.
@Given("^execute SQL command \"([^\"]*)\"$")
public void executeSql(String sqlCmd) {
DbUtils dbUtils = new DbUtils(SampleDbConnectionManager.getInstance().getConnection());
dbUtils.readSqlOnSampleDb(sqlCmd);
SampleDbConnectionManager.getInstance().closeConnection();
}