Search in sources :

Example 1 with DbUtils

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();
}
Also used : DbUtils(io.syndesis.qe.utils.DbUtils) Given(cucumber.api.java.en.Given)

Example 2 with DbUtils

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();
}
Also used : DbUtils(io.syndesis.qe.utils.DbUtils) Given(cucumber.api.java.en.Given)

Aggregations

Given (cucumber.api.java.en.Given)2 DbUtils (io.syndesis.qe.utils.DbUtils)2