Search in sources :

Example 6 with DBHelper

use of org.apache.cayenne.test.jdbc.DBHelper in project cayenne by apache.

the class CacheInvalidationCase method startCayenne.

@Before
public void startCayenne() throws Exception {
    this.runtime = configureCayenne().build();
    DBHelper dbHelper = new DBHelper(runtime.getDataSource());
    this.e1 = new TableHelper(dbHelper, "E1").setColumns("ID");
    this.e1.deleteAll();
    this.e2 = new TableHelper(dbHelper, "E2").setColumns("ID");
    this.e2.deleteAll();
}
Also used : DBHelper(org.apache.cayenne.test.jdbc.DBHelper) TableHelper(org.apache.cayenne.test.jdbc.TableHelper) Before(org.junit.Before)

Aggregations

DBHelper (org.apache.cayenne.test.jdbc.DBHelper)6 TableHelper (org.apache.cayenne.test.jdbc.TableHelper)5 Before (org.junit.Before)5 Module (org.apache.cayenne.di.Module)1