Class HttpClientProxyValidatorTest
- java.lang.Object
-
- org.springframework.test.context.testng.AbstractTestNGSpringContextTests
-
- net.shibboleth.idp.cas.flow.impl.AbstractFlowActionTest
-
- net.shibboleth.idp.cas.proxy.impl.HttpClientProxyValidatorTest
-
- All Implemented Interfaces:
Aware,ApplicationContextAware,org.testng.IHookable,org.testng.ITestNGListener
public class HttpClientProxyValidatorTest extends AbstractFlowActionTest
Unit test forHttpClientProxyValidatorclass.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classHttpClientProxyValidatorTest.ConfigurableStatusHandler-
Nested classes/interfaces inherited from class net.shibboleth.idp.cas.flow.impl.AbstractFlowActionTest
AbstractFlowActionTest.MockDataSealerKeyStrategy
-
-
Field Summary
Fields Modifier and Type Field Description private ApplicationContextcontextprivate net.shibboleth.idp.cas.proxy.impl.HttpClientProxyValidatorvalidator-
Fields inherited from class net.shibboleth.idp.cas.flow.impl.AbstractFlowActionTest
TEST_PRINCIPAL_NAME, TEST_SESSION_ID, ticketService
-
Fields inherited from class org.springframework.test.context.testng.AbstractTestNGSpringContextTests
applicationContext, logger
-
-
Constructor Summary
Constructors Constructor Description HttpClientProxyValidatorTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private ProfileRequestContextbuildProfileRequestContext(String serviceUrl)Object[][]buildTestData()private org.eclipse.jetty.server.ServerstartServer(String keyStorePath, org.eclipse.jetty.server.Handler handler)voidtestAuthenticate(String serviceURL, String keyStorePath, int status, Exception expected)-
Methods inherited from class net.shibboleth.idp.cas.flow.impl.AbstractFlowActionTest
createProxyGrantingTicket, createProxyGrantingTicket, createProxyTicket, createServiceTicket, expiry, generateProxyGrantingTicketId, generateProxyTicketId, generateServiceTicketId, getProfileContext, initOpenSAML, mockSession
-
Methods inherited from class org.springframework.test.context.testng.AbstractTestNGSpringContextTests
run, setApplicationContext, springTestContextAfterTestClass, springTestContextAfterTestMethod, springTestContextBeforeTestClass, springTestContextBeforeTestMethod, springTestContextPrepareTestInstance
-
-
-
-
Field Detail
-
validator
@Autowired private net.shibboleth.idp.cas.proxy.impl.HttpClientProxyValidator validator
-
context
@Autowired private ApplicationContext context
-
-
Method Detail
-
buildTestData
@DataProvider(name="data") public Object[][] buildTestData()
-
testAuthenticate
public void testAuthenticate(String serviceURL, String keyStorePath, int status, Exception expected) throws Exception
- Throws:
Exception
-
startServer
private org.eclipse.jetty.server.Server startServer(String keyStorePath, org.eclipse.jetty.server.Handler handler)
-
buildProfileRequestContext
private ProfileRequestContext buildProfileRequestContext(String serviceUrl)
-
-