Search in sources :

Example 1 with CsrfRequestDataValueProcessor

use of org.springframework.security.web.reactive.result.view.CsrfRequestDataValueProcessor in project spring-security by spring-projects.

the class EnableWebFluxSecurityTests method requestDataValueProcessor.

@Test
public void requestDataValueProcessor() {
    this.spring.register(Config.class).autowire();
    ConfigurableApplicationContext context = this.spring.getContext();
    CsrfRequestDataValueProcessor rdvp = context.getBean(AbstractView.REQUEST_DATA_VALUE_PROCESSOR_BEAN_NAME, CsrfRequestDataValueProcessor.class);
    assertThat(rdvp).isNotNull();
}
Also used : ConfigurableApplicationContext(org.springframework.context.ConfigurableApplicationContext) CsrfRequestDataValueProcessor(org.springframework.security.web.reactive.result.view.CsrfRequestDataValueProcessor) Test(org.junit.jupiter.api.Test)

Aggregations

Test (org.junit.jupiter.api.Test)1 ConfigurableApplicationContext (org.springframework.context.ConfigurableApplicationContext)1 CsrfRequestDataValueProcessor (org.springframework.security.web.reactive.result.view.CsrfRequestDataValueProcessor)1