use of org.springframework.data.cassandra.core.cql.session.DefaultReactiveSessionFactory in project spring-data-cassandra by spring-projects.
the class ReactiveCqlTemplateIntegrationTests method before.
@BeforeEach
void before() {
reactiveSession = new DefaultBridgedReactiveSession(getSession());
if (initialized.compareAndSet(false, true)) {
getSession().execute("CREATE TABLE IF NOT EXISTS user (id text PRIMARY KEY, username text);");
}
getSession().execute("TRUNCATE user;");
getSession().execute("INSERT INTO user (id, username) VALUES ('WHITE', 'Walter');");
template = new ReactiveCqlTemplate(new DefaultReactiveSessionFactory(reactiveSession));
cassandraVersion = CassandraVersion.get(getSession());
}
use of org.springframework.data.cassandra.core.cql.session.DefaultReactiveSessionFactory in project spring-data-cassandra by spring-projects.
the class ReactiveCqlTemplateUnitTests method setup.
@BeforeEach
void setup() throws Exception {
this.sessionFactory = new DefaultReactiveSessionFactory(session);
this.template = new ReactiveCqlTemplate(sessionFactory);
}
Aggregations