Package net.shibboleth.idp.cas.flow.impl
Class ValidateTicketActionTest
- java.lang.Object
-
- org.springframework.test.context.testng.AbstractTestNGSpringContextTests
-
- net.shibboleth.idp.cas.flow.impl.AbstractFlowActionTest
-
- net.shibboleth.idp.cas.flow.impl.ValidateTicketActionTest
-
- All Implemented Interfaces:
Aware,ApplicationContextAware,org.testng.IHookable,org.testng.ITestNGListener
public class ValidateTicketActionTest extends AbstractFlowActionTest
Unit test forValidateTicketActionclass.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.shibboleth.idp.cas.flow.impl.AbstractFlowActionTest
AbstractFlowActionTest.MockDataSealerKeyStrategy
-
-
Field Summary
Fields Modifier and Type Field Description private static StringTEST_SERVICE-
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 ValidateTicketActionTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static net.shibboleth.idp.cas.flow.impl.ValidateTicketActionnewAction(TicketService service)voidtestInvalidTicketFormat()voidtestProxyTicketValidateSuccess()voidtestServiceMismatch()voidtestServiceTicketValidateSuccess()voidtestServiceTicketValidateSuccessWithJSessionID()voidtestTicketExpired()voidtestTicketRetrievalError()-
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
-
TEST_SERVICE
private static final String TEST_SERVICE
- See Also:
- Constant Field Values
-
-
Method Detail
-
testServiceTicketValidateSuccess
public void testServiceTicketValidateSuccess() throws Exception- Throws:
Exception
-
testServiceTicketValidateSuccessWithJSessionID
public void testServiceTicketValidateSuccessWithJSessionID() throws Exception- Throws:
Exception
-
testProxyTicketValidateSuccess
public void testProxyTicketValidateSuccess() throws Exception- Throws:
Exception
-
newAction
private static net.shibboleth.idp.cas.flow.impl.ValidateTicketAction newAction(TicketService service)
-
-