Class TicketIdentifierGenerationStrategyTest

java.lang.Object
net.shibboleth.idp.cas.ticket.TicketIdentifierGenerationStrategyTest

public class TicketIdentifierGenerationStrategyTest extends Object
Unit test for TicketIdentifierGenerationStrategy.
  • Field Details

    • TICKET_REGEX

      private static final Pattern TICKET_REGEX
  • Constructor Details

    • TicketIdentifierGenerationStrategyTest

      public TicketIdentifierGenerationStrategyTest()
  • Method Details

    • provideGenerators

      @DataProvider(name="generators") public Object[][] provideGenerators()
    • provideBadPrefixSuffix

      @DataProvider(name="url-safety") public Object[][] provideBadPrefixSuffix()
    • testGenerate

      public void testGenerate(net.shibboleth.idp.cas.ticket.TicketIdentifierGenerationStrategy generator, String expectedPrefix, int expectedRandomLength, String expectedSuffix) throws Exception
      Throws:
      Exception
    • testUrlSafety

      public void testUrlSafety(@Nonnull String prefix, String suffix)
    • testConcurrentGeneration

      public void testConcurrentGeneration() throws Exception
      Throws:
      Exception