use of org.springframework.data.cassandra.core.convert.CassandraConverter in project spring-data-cassandra by spring-projects.
the class CqlSessionFactoryBean method getMappingContext.
/**
* @return the {@link CassandraMappingContext}.
*/
protected CassandraMappingContext getMappingContext() {
CassandraConverter converter = getConverter();
Assert.state(converter != null, "CassandraConverter was not properly initialized");
return converter.getMappingContext();
}
use of org.springframework.data.cassandra.core.convert.CassandraConverter in project spring-boot by spring-projects.
the class CassandraDataAutoConfigurationTests method userTypeResolverShouldBeSet.
@Test
void userTypeResolverShouldBeSet() {
load();
CassandraConverter cassandraConverter = this.context.getBean(CassandraConverter.class);
assertThat(cassandraConverter).extracting("userTypeResolver").isInstanceOf(SimpleUserTypeResolver.class);
}
use of org.springframework.data.cassandra.core.convert.CassandraConverter in project spring-boot by spring-projects.
the class CassandraDataAutoConfigurationTests method codecRegistryShouldBeSet.
@Test
void codecRegistryShouldBeSet() {
load();
CassandraConverter cassandraConverter = this.context.getBean(CassandraConverter.class);
assertThat(cassandraConverter.getCodecRegistry()).isSameAs(this.context.getBean(CassandraMockConfiguration.class).codecRegistry);
}
use of org.springframework.data.cassandra.core.convert.CassandraConverter in project spring-boot by spring-projects.
the class CassandraReactiveDataAutoConfigurationTests method userTypeResolverShouldBeSet.
@Test
void userTypeResolverShouldBeSet() {
load("spring.data.cassandra.keyspaceName:boot_test");
CassandraConverter cassandraConverter = this.context.getBean(CassandraConverter.class);
assertThat(cassandraConverter).extracting("userTypeResolver").isInstanceOf(SimpleUserTypeResolver.class);
}
Aggregations