Class EncodingTicketServiceTest
- java.lang.Object
-
- net.shibboleth.idp.cas.ticket.impl.EncodingTicketServiceTest
-
public class EncodingTicketServiceTest extends Object
Unit test forEncodingTicketService.
-
-
Field Summary
Fields Modifier and Type Field Description private IdentifierGenerationStrategypgtIdGeneratorprivate SecureRandomsecureRandomprivate IdentifierGenerationStrategysessionIdGeneratorprivate net.shibboleth.idp.cas.ticket.impl.EncodingTicketServiceticketService
-
Constructor Summary
Constructors Constructor Description EncodingTicketServiceTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private ProxyGrantingTicketnewPGT(TicketState state, String service)private TicketStatenewState(String principal)voidsetUp()voidtestCreateFetchRemoveEncodedProxyGrantingTicket()voidtestCreateRemoveProxyTicketInvalid()voidtestCreateRemoveProxyTicketSuccess()voidtestCreateRemoveServiceTicketInvalid()voidtestCreateRemoveServiceTicketSuccess()voidtestCreateServiceTicketSuccessWithLongID()
-
-
-
Field Detail
-
ticketService
private net.shibboleth.idp.cas.ticket.impl.EncodingTicketService ticketService
-
sessionIdGenerator
private IdentifierGenerationStrategy sessionIdGenerator
-
pgtIdGenerator
private IdentifierGenerationStrategy pgtIdGenerator
-
secureRandom
private SecureRandom secureRandom
-
-
Method Detail
-
testCreateRemoveServiceTicketSuccess
public void testCreateRemoveServiceTicketSuccess() throws Exception- Throws:
Exception
-
testCreateRemoveServiceTicketInvalid
public void testCreateRemoveServiceTicketInvalid() throws Exception- Throws:
Exception
-
testCreateServiceTicketSuccessWithLongID
public void testCreateServiceTicketSuccessWithLongID() throws Exception- Throws:
Exception
-
testCreateRemoveProxyTicketSuccess
public void testCreateRemoveProxyTicketSuccess() throws Exception- Throws:
Exception
-
testCreateRemoveProxyTicketInvalid
public void testCreateRemoveProxyTicketInvalid() throws Exception- Throws:
Exception
-
testCreateFetchRemoveEncodedProxyGrantingTicket
public void testCreateFetchRemoveEncodedProxyGrantingTicket()
-
newState
private TicketState newState(String principal)
-
newPGT
private ProxyGrantingTicket newPGT(TicketState state, String service)
-
-