Class DefaultRedirectURICreationStrategyTest
- java.lang.Object
-
- net.shibboleth.idp.plugin.authn.duo.impl.DefaultRedirectURICreationStrategyTest
-
public class DefaultRedirectURICreationStrategyTest extends Object
Tests for the DefaultDuoOIDCIntegration class.
-
-
Field Summary
Fields Modifier and Type Field Description private static StringCALLBACK_PATHStatic callback path from servlet request.private DynamicDuoOIDCIntegrationintegrationA dummy integration to use.private MockHttpServletRequestrequestHTTP request mock.private net.shibboleth.idp.plugin.authn.duo.impl.DefaultRedirectURICreationStrategystrategyThe action to test.
-
Constructor Summary
Constructors Constructor Description DefaultRedirectURICreationStrategyTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()voidtestComputedRedirectAllowed()voidtestComputedRedirectAllowedHTTPCustomPort()voidtestComputedRedirectAllowedHTTPSCustomPort()voidtestComputedRedirectAllowedNullPort()voidtestComputedRedirectBadHostname()voidtestComputedRedirectDisallowed()voidtestComputedRedirectDisallowedOnPort()voidtestPreregisteredURL()
-
-
-
Field Detail
-
CALLBACK_PATH
private static final String CALLBACK_PATH
Static callback path from servlet request.- See Also:
- Constant Field Values
-
strategy
private net.shibboleth.idp.plugin.authn.duo.impl.DefaultRedirectURICreationStrategy strategy
The action to test.
-
integration
@Mock private DynamicDuoOIDCIntegration integration
A dummy integration to use.
-
request
private MockHttpServletRequest request
HTTP request mock.
-
-
Method Detail
-
setUp
@BeforeMethod public void setUp() throws Exception
- Throws:
Exception
-
testComputedRedirectAllowed
public final void testComputedRedirectAllowed() throws Exception- Throws:
Exception
-
testComputedRedirectDisallowed
public final void testComputedRedirectDisallowed() throws Exception- Throws:
Exception
-
testComputedRedirectAllowedHTTPSCustomPort
public final void testComputedRedirectAllowedHTTPSCustomPort() throws Exception- Throws:
Exception
-
testComputedRedirectAllowedHTTPCustomPort
public final void testComputedRedirectAllowedHTTPCustomPort() throws Exception- Throws:
Exception
-
testComputedRedirectAllowedNullPort
public final void testComputedRedirectAllowedNullPort() throws Exception- Throws:
Exception
-
testComputedRedirectDisallowedOnPort
public final void testComputedRedirectDisallowedOnPort() throws Exception- Throws:
Exception
-
-