Search in sources :

Example 6 with PortMapper

use of org.springframework.security.web.PortMapper in project spring-security by spring-projects.

the class RetryWithHttpEntryPointTests method testGettersSetters.

@Test
public void testGettersSetters() {
    RetryWithHttpEntryPoint ep = new RetryWithHttpEntryPoint();
    PortMapper portMapper = mock(PortMapper.class);
    PortResolver portResolver = mock(PortResolver.class);
    RedirectStrategy redirector = mock(RedirectStrategy.class);
    ep.setPortMapper(portMapper);
    ep.setPortResolver(portResolver);
    ep.setRedirectStrategy(redirector);
    assertThat(ep.getPortMapper()).isSameAs(portMapper);
    assertThat(ep.getPortResolver()).isSameAs(portResolver);
    assertThat(ep.getRedirectStrategy()).isSameAs(redirector);
}
Also used : MockPortResolver(org.springframework.security.MockPortResolver) PortResolver(org.springframework.security.web.PortResolver) PortMapper(org.springframework.security.web.PortMapper) RedirectStrategy(org.springframework.security.web.RedirectStrategy) Test(org.junit.jupiter.api.Test)

Aggregations

PortMapper (org.springframework.security.web.PortMapper)6 Test (org.junit.jupiter.api.Test)4 MockServerWebExchange (org.springframework.mock.web.server.MockServerWebExchange)1 MockPortResolver (org.springframework.security.MockPortResolver)1 AuthenticationManager (org.springframework.security.authentication.AuthenticationManager)1 PortResolver (org.springframework.security.web.PortResolver)1 RedirectStrategy (org.springframework.security.web.RedirectStrategy)1 InsecureChannelProcessor (org.springframework.security.web.access.channel.InsecureChannelProcessor)1 RetryWithHttpEntryPoint (org.springframework.security.web.access.channel.RetryWithHttpEntryPoint)1 RetryWithHttpsEntryPoint (org.springframework.security.web.access.channel.RetryWithHttpsEntryPoint)1 SecureChannelProcessor (org.springframework.security.web.access.channel.SecureChannelProcessor)1 RememberMeServices (org.springframework.security.web.authentication.RememberMeServices)1 SessionAuthenticationStrategy (org.springframework.security.web.authentication.session.SessionAuthenticationStrategy)1 RequestCache (org.springframework.security.web.savedrequest.RequestCache)1 ServerWebExchange (org.springframework.web.server.ServerWebExchange)1