use of org.springframework.session.hazelcast.HazelcastSessionRepository in project spring-boot by spring-projects.
the class SessionAutoConfigurationHazelcastTests method customFlushMode.
@Test
public void customFlushMode() {
load(Collections.<Class<?>>singletonList(HazelcastConfiguration.class), "spring.session.store-type=hazelcast", "spring.session.hazelcast.flush-mode=immediate");
HazelcastSessionRepository repository = validateSessionRepository(HazelcastSessionRepository.class);
assertThat(new DirectFieldAccessor(repository).getPropertyValue("hazelcastFlushMode")).isEqualTo(HazelcastFlushMode.IMMEDIATE);
}
Aggregations