use of org.springframework.session.data.redis.ReactiveRedisSessionRepository in project spring-boot by spring-projects.
the class ReactiveSessionAutoConfigurationRedisTests method defaultConfigWithCustomWebFluxTimeout.
@Test
void defaultConfigWithCustomWebFluxTimeout() {
this.contextRunner.withPropertyValues("spring.session.store-type=redis", "server.reactive.session.timeout=1m").withConfiguration(AutoConfigurations.of(RedisAutoConfiguration.class, RedisReactiveAutoConfiguration.class)).run((context) -> {
ReactiveRedisSessionRepository repository = validateSessionRepository(context, ReactiveRedisSessionRepository.class);
assertThat(repository).hasFieldOrPropertyWithValue("defaultMaxInactiveInterval", 60);
});
}
use of org.springframework.session.data.redis.ReactiveRedisSessionRepository in project spring-boot by spring-projects.
the class ReactiveSessionAutoConfigurationRedisTests method defaultConfigWithCustomTimeout.
@Test
void defaultConfigWithCustomTimeout() {
this.contextRunner.withPropertyValues("spring.session.store-type=redis", "spring.session.timeout=1m").withConfiguration(AutoConfigurations.of(RedisAutoConfiguration.class, RedisReactiveAutoConfiguration.class)).run((context) -> {
ReactiveRedisSessionRepository repository = validateSessionRepository(context, ReactiveRedisSessionRepository.class);
assertThat(repository).hasFieldOrPropertyWithValue("defaultMaxInactiveInterval", 60);
});
}
Aggregations