use of com.datastax.oss.driver.api.core.context.DriverContext in project spring-boot by spring-projects.
the class CassandraMockConfiguration method cqlSession.
@Bean
CqlSession cqlSession() {
DriverContext context = mock(DriverContext.class);
given(context.getCodecRegistry()).willReturn(this.codecRegistry);
CqlSession cqlSession = mock(CqlSession.class);
given(cqlSession.getContext()).willReturn(context);
return cqlSession;
}
Aggregations