Class ApplicationScopedInjectionTest

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

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

      • ApplicationScopedInjectionTest

        public ApplicationScopedInjectionTest()
    • 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
      • verifyInjectedRawTokenClaimValue

        @RunAsClient
        public void verifyInjectedRawTokenClaimValue()
                                              throws Exception
        Throws:
        Exception
      • verifyInjectedRawTokenJwt

        @RunAsClient
        public void verifyInjectedRawTokenJwt()
                                       throws Exception
        Throws:
        Exception
      • verifyInjectedRawToken1Provider

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