Class ClaimValueInjectionTest

  • All Implemented Interfaces:
    org.testng.IHookable, org.testng.ITestNGListener

    public class ClaimValueInjectionTest
    extends org.jboss.arquillian.testng.Arquillian
    Tests of injection of JsonWebToken claims using ClaimValue interface wrappers.
    • Constructor Detail

      • ClaimValueInjectionTest

        public ClaimValueInjectionTest()
    • Method Detail

      • createDeployment

        @Deployment(testable=true)
        public static org.jboss.shrinkwrap.api.spec.WebArchive createDeployment()
                                                                         throws IOException
        Create a CDI aware base web application archive
        Returns:
        the base base web application archive
        Throws:
        IOException - - on resource failure
      • generateToken

        @BeforeClass(alwaysRun=true)
        public static void generateToken()
                                  throws Exception
        Throws:
        Exception
      • verifyIssuerClaim

        @RunAsClient
        public void verifyIssuerClaim()
                               throws Exception
        Throws:
        Exception
      • verifyIssuerStandardClaim

        @RunAsClient
        public void verifyIssuerStandardClaim()
                                       throws Exception
        Throws:
        Exception
      • verifyInjectedRawToken

        @RunAsClient
        public void verifyInjectedRawToken()
                                    throws Exception
        Throws:
        Exception
      • verifyInjectedRawTokenStandard

        @RunAsClient
        public void verifyInjectedRawTokenStandard()
                                            throws Exception
        Throws:
        Exception
      • verifyInjectedJTI

        @RunAsClient
        public void verifyInjectedJTI()
                               throws Exception
        Throws:
        Exception
      • verifyInjectedJTIStandard

        @RunAsClient
        public void verifyInjectedJTIStandard()
                                       throws Exception
        Throws:
        Exception
      • verifyInjectedAudience

        @RunAsClient
        public void verifyInjectedAudience()
                                    throws Exception
        Throws:
        Exception
      • verifyInjectedAudienceStandard

        @RunAsClient
        public void verifyInjectedAudienceStandard()
                                            throws Exception
        Throws:
        Exception
      • verifyInjectedIssuedAt

        @RunAsClient
        public void verifyInjectedIssuedAt()
                                    throws Exception
        Throws:
        Exception
      • verifyInjectedIssuedAtStandard

        @RunAsClient
        public void verifyInjectedIssuedAtStandard()
                                            throws Exception
        Throws:
        Exception
      • verifyInjectedOptionalSubject

        @RunAsClient
        public void verifyInjectedOptionalSubject()
                                           throws Exception
        Throws:
        Exception
      • verifyInjectedSubjectStandard

        @RunAsClient
        public void verifyInjectedSubjectStandard()
                                           throws Exception
        Throws:
        Exception
      • verifyInjectedOptionalAuthTime

        @RunAsClient
        public void verifyInjectedOptionalAuthTime()
                                            throws Exception
        Throws:
        Exception
      • verifyInjectedAuthTimeStandard

        @RunAsClient
        public void verifyInjectedAuthTimeStandard()
                                            throws Exception
        Throws:
        Exception
      • verifyInjectedOptionalCustomMissing

        @RunAsClient
        public void verifyInjectedOptionalCustomMissing()
                                                 throws Exception
        Throws:
        Exception
      • verifyInjectedCustomString

        @RunAsClient
        public void verifyInjectedCustomString()
                                        throws Exception
        Throws:
        Exception
      • verifyInjectedCustomInteger

        @RunAsClient
        public void verifyInjectedCustomInteger()
                                         throws Exception
        Throws:
        Exception
      • verifyInjectedCustomDouble

        @RunAsClient
        public void verifyInjectedCustomDouble()
                                        throws Exception
        Throws:
        Exception
      • verifyInjectedCustomBoolean

        @RunAsClient
        public void verifyInjectedCustomBoolean()
                                         throws Exception
        Throws:
        Exception