Package net.shibboleth.idp.cas.flow.impl
Class AbstractFlowActionTest
- java.lang.Object
-
- org.springframework.test.context.testng.AbstractTestNGSpringContextTests
-
- net.shibboleth.idp.cas.flow.impl.AbstractFlowActionTest
-
- All Implemented Interfaces:
Aware,ApplicationContextAware,org.testng.IHookable,org.testng.ITestNGListener
- Direct Known Subclasses:
BuildProxyChainActionTest,BuildRelyingPartyContextActionTest,BuildSAMLMetadataContextActionTest,CheckProxyAuthorizationActionTest,GrantProxyTicketActionTest,GrantServiceTicketActionTest,HttpClientProxyValidatorTest,PublishProtocolResponseActionTest,ValidateProxyCallbackActionTest,ValidateRenewActionTest,ValidateTicketActionTest
@ContextConfiguration(locations="/spring/test-flow-beans.xml", initializers=net.shibboleth.idp.spring.IdPPropertiesApplicationContextInitializer.class) @WebAppConfiguration @TestPropertySource(properties="idp.initializer.failFast = false") public abstract class AbstractFlowActionTest extends AbstractTestNGSpringContextTests
Abstract base class for all flow action tests.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractFlowActionTest.MockDataSealerKeyStrategyTest implementation ofDataSealerKeyStrategythat emits a static key for all inquiries.
-
Field Summary
Fields Modifier and Type Field Description private TicketIdentifierGenerationStrategyproxyGrantingTicketGeneratorprivate TicketIdentifierGenerationStrategyproxyTicketGeneratorprivate TicketIdentifierGenerationStrategyserviceTicketGeneratorprotected static StringTEST_PRINCIPAL_NAMEprotected static StringTEST_SESSION_IDprotected TicketServiceticketService-
Fields inherited from class org.springframework.test.context.testng.AbstractTestNGSpringContextTests
applicationContext, logger
-
-
Constructor Summary
Constructors Constructor Description AbstractFlowActionTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ProxyGrantingTicketcreateProxyGrantingTicket(ProxyTicket pt)protected ProxyGrantingTicketcreateProxyGrantingTicket(ServiceTicket st)protected ProxyTicketcreateProxyTicket(ProxyGrantingTicket pgt, String service)protected ServiceTicketcreateServiceTicket(String service, boolean renew)protected static Instantexpiry()protected StringgenerateProxyGrantingTicketId()protected StringgenerateProxyTicketId()protected StringgenerateServiceTicketId()protected static ProfileRequestContextgetProfileContext(RequestContext context)voidinitOpenSAML()Initialize OpenSAML.protected static IdPSessionmockSession(String sessionId, boolean expiredFlag, AuthenticationResult... results)-
Methods inherited from class org.springframework.test.context.testng.AbstractTestNGSpringContextTests
run, setApplicationContext, springTestContextAfterTestClass, springTestContextAfterTestMethod, springTestContextBeforeTestClass, springTestContextBeforeTestMethod, springTestContextPrepareTestInstance
-
-
-
-
Field Detail
-
TEST_SESSION_ID
protected static final String TEST_SESSION_ID
- See Also:
- Constant Field Values
-
TEST_PRINCIPAL_NAME
protected static final String TEST_PRINCIPAL_NAME
- See Also:
- Constant Field Values
-
ticketService
@Autowired protected TicketService ticketService
-
serviceTicketGenerator
private TicketIdentifierGenerationStrategy serviceTicketGenerator
-
proxyTicketGenerator
private TicketIdentifierGenerationStrategy proxyTicketGenerator
-
proxyGrantingTicketGenerator
private TicketIdentifierGenerationStrategy proxyGrantingTicketGenerator
-
-
Method Detail
-
getProfileContext
protected static ProfileRequestContext getProfileContext(RequestContext context)
-
mockSession
protected static IdPSession mockSession(String sessionId, boolean expiredFlag, AuthenticationResult... results)
-
expiry
protected static Instant expiry()
-
generateServiceTicketId
protected String generateServiceTicketId()
-
generateProxyTicketId
protected String generateProxyTicketId()
-
generateProxyGrantingTicketId
protected String generateProxyGrantingTicketId()
-
createServiceTicket
protected ServiceTicket createServiceTicket(String service, boolean renew)
-
createProxyTicket
protected ProxyTicket createProxyTicket(ProxyGrantingTicket pgt, String service)
-
createProxyGrantingTicket
protected ProxyGrantingTicket createProxyGrantingTicket(ServiceTicket st)
-
createProxyGrantingTicket
protected ProxyGrantingTicket createProxyGrantingTicket(ProxyTicket pt)
-
initOpenSAML
@BeforeSuite public void initOpenSAML() throws InitializationExceptionInitialize OpenSAML.- Throws:
InitializationException- ...
-
-