use of org.springframework.session.web.http.DefaultCookieSerializer in project spring-boot by spring-projects.
the class SessionAutoConfigurationTests method autoConfiguredCookieSerializerIsConfiguredWithRememberMeRequestAttribute.
@Test
void autoConfiguredCookieSerializerIsConfiguredWithRememberMeRequestAttribute() {
this.contextRunner.withBean(SpringSessionRememberMeServicesConfiguration.class).run((context) -> {
DefaultCookieSerializer cookieSerializer = context.getBean(DefaultCookieSerializer.class);
assertThat(cookieSerializer).hasFieldOrPropertyWithValue("rememberMeRequestAttribute", SpringSessionRememberMeServices.REMEMBER_ME_LOGIN_ATTR);
});
}
Aggregations