Search in sources :

Example 1 with DbPropsQueryMap

use of jodd.db.querymap.DbPropsQueryMap in project jodd by oblac.

the class DbHsqldbTestCase method setUp.

@Before
public void setUp() throws Exception {
    DbManager.getInstance().setQueryMap(new DbPropsQueryMap());
    LoggerFactory.setLoggerFactory(new TestLoggerFactory());
    cp = new CoreConnectionPool();
    cp.setDriver("org.hsqldb.jdbcDriver");
    cp.setUrl("jdbc:hsqldb:mem:test");
    cp.setUser("sa");
    cp.setPassword("");
    cp.init();
    dbtxm = new DbJtxTransactionManager(cp);
    // initial data
    DbSession session = new DbSession(cp);
    createTables(session);
    session.closeSession();
}
Also used : DbPropsQueryMap(jodd.db.querymap.DbPropsQueryMap) CoreConnectionPool(jodd.db.pool.CoreConnectionPool) DbJtxTransactionManager(jodd.db.jtx.DbJtxTransactionManager) Before(org.junit.Before)

Aggregations

DbJtxTransactionManager (jodd.db.jtx.DbJtxTransactionManager)1 CoreConnectionPool (jodd.db.pool.CoreConnectionPool)1 DbPropsQueryMap (jodd.db.querymap.DbPropsQueryMap)1 Before (org.junit.Before)1