Search in sources :

Example 1 with PortResolver

use of org.springframework.security.web.PortResolver 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

Test (org.junit.jupiter.api.Test)1 MockPortResolver (org.springframework.security.MockPortResolver)1 PortMapper (org.springframework.security.web.PortMapper)1 PortResolver (org.springframework.security.web.PortResolver)1 RedirectStrategy (org.springframework.security.web.RedirectStrategy)1