use of org.springframework.security.config.web.server.ServerHttpSecurity in project spring-security by spring-projects.
the class ServerHttpSecurityConfigurationTests method loadConfigWhenProxyingEnabledAndSubclassThenServerHttpSecurityExists.
@Test
public void loadConfigWhenProxyingEnabledAndSubclassThenServerHttpSecurityExists() {
this.spring.register(SubclassConfig.class, ReactiveAuthenticationTestConfiguration.class, WebFluxSecurityConfiguration.class).autowire();
ServerHttpSecurity serverHttpSecurity = this.spring.getContext().getBean(ServerHttpSecurity.class);
assertThat(serverHttpSecurity).isNotNull();
}
use of org.springframework.security.config.web.server.ServerHttpSecurity in project spring-security by spring-projects.
the class ServerHttpSecurityConfigurationTests method loadConfigWhenReactiveUserDetailsServiceConfiguredThenServerHttpSecurityExists.
@Test
public void loadConfigWhenReactiveUserDetailsServiceConfiguredThenServerHttpSecurityExists() {
this.spring.register(ServerHttpSecurityConfiguration.class, ReactiveAuthenticationTestConfiguration.class, WebFluxSecurityConfiguration.class).autowire();
ServerHttpSecurity serverHttpSecurity = this.spring.getContext().getBean(ServerHttpSecurity.class);
assertThat(serverHttpSecurity).isNotNull();
}
Aggregations