Search in sources :

Example 1 with JdbcEventRepository

use of org.ff4j.audit.repository.JdbcEventRepository in project ff4j by ff4j.

the class JdbcEventRepositorySchemaTest method initStore.

/**
 * {@inheritDoc}
 */
public void initStore() {
    builder = new EmbeddedDatabaseBuilder();
    db = builder.setType(EmbeddedDatabaseType.HSQL).build();
    testedStore = new JdbcEventRepository(db);
}
Also used : JdbcEventRepository(org.ff4j.audit.repository.JdbcEventRepository) EmbeddedDatabaseBuilder(org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseBuilder)

Example 2 with JdbcEventRepository

use of org.ff4j.audit.repository.JdbcEventRepository in project ff4j by ff4j.

the class JdbcEventRepositoryTest 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 JdbcEventRepository(db);
}
Also used : JdbcEventRepository(org.ff4j.audit.repository.JdbcEventRepository) EmbeddedDatabaseBuilder(org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseBuilder)

Aggregations

JdbcEventRepository (org.ff4j.audit.repository.JdbcEventRepository)2 EmbeddedDatabaseBuilder (org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseBuilder)2