Search in sources :

Example 1 with EventRepositorySpringJdbc

use of org.ff4j.springjdbc.store.EventRepositorySpringJdbc in project ff4j by ff4j.

the class SpringJdbcEventRepositoryTest method initRepository.

/**
 * {@inheritDoc}
 */
@Override
protected EventRepository initRepository() {
    builder = new EmbeddedDatabaseBuilder();
    db = // 
    builder.setType(EmbeddedDatabaseType.HSQL).addScript(// 
    "classpath:schema-ddl.sql").addScript(// 
    "classpath:ff-store.sql").build();
    return new EventRepositorySpringJdbc(db);
}
Also used : EventRepositorySpringJdbc(org.ff4j.springjdbc.store.EventRepositorySpringJdbc) EmbeddedDatabaseBuilder(org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseBuilder)

Aggregations

EventRepositorySpringJdbc (org.ff4j.springjdbc.store.EventRepositorySpringJdbc)1 EmbeddedDatabaseBuilder (org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseBuilder)1