Search in sources :

Example 1 with EventRepositoryCassandra

use of org.ff4j.cassandra.store.EventRepositoryCassandra in project ff4j by ff4j.

the class EventRepositoryCassandraTest method initRepository.

/**
 * {@inheritDoc}
 */
@Override
protected EventRepository initRepository() {
    EventRepository cassandraStore = new EventRepositoryCassandra(conn);
    cassandraStore.createSchema();
    return cassandraStore;
}
Also used : EventRepositoryCassandra(org.ff4j.cassandra.store.EventRepositoryCassandra) EventRepository(org.ff4j.audit.repository.EventRepository)

Example 2 with EventRepositoryCassandra

use of org.ff4j.cassandra.store.EventRepositoryCassandra in project ff4j by ff4j.

the class EventRepositoryCassandraTest method testCustom.

@Test
public void testCustom() {
    EventRepositoryCassandra repoCassandra = (EventRepositoryCassandra) ff4j.getEventRepository();
    repoCassandra.setTtl(repoCassandra.getTtl());
    repoCassandra.setConn(repoCassandra.getConn());
    repoCassandra.setBuilder(repoCassandra.getBuilder());
    new EventRepositoryCassandra();
}
Also used : EventRepositoryCassandra(org.ff4j.cassandra.store.EventRepositoryCassandra) Test(org.junit.Test)

Aggregations

EventRepositoryCassandra (org.ff4j.cassandra.store.EventRepositoryCassandra)2 EventRepository (org.ff4j.audit.repository.EventRepository)1 Test (org.junit.Test)1