Class ApplicationScopedInjectionTest
- java.lang.Object
-
- org.jboss.arquillian.testng.Arquillian
-
- org.eclipse.microprofile.jwt.tck.container.jaxrs.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 Summary
Constructors Constructor Description ApplicationScopedInjectionTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.jboss.shrinkwrap.api.spec.WebArchive
createDeployment()
Create a CDI aware base web application archivestatic void
generateToken()
void
verifyInjectedRawToken1Provider()
void
verifyInjectedRawTokenClaimValue()
void
verifyInjectedRawTokenJwt()
-
-
-
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
-
-