Class JsonValueInjectionTest
- java.lang.Object
-
- org.jboss.arquillian.testng.Arquillian
-
- org.eclipse.microprofile.jwt.tck.container.jaxrs.JsonValueInjectionTest
-
- All Implemented Interfaces:
org.testng.IHookable
,org.testng.ITestNGListener
public class JsonValueInjectionTest extends org.jboss.arquillian.testng.Arquillian
Tests of injection of JsonWebToken claims using JsonValue subtypes.
-
-
Constructor Summary
Constructors Constructor Description JsonValueInjectionTest()
-
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
verifyInjectedAudience()
void
verifyInjectedAudience2()
void
verifyInjectedAuthTime()
void
verifyInjectedAuthTime2()
void
verifyInjectedCustomDouble()
void
verifyInjectedCustomDouble2()
void
verifyInjectedCustomDoubleArray()
void
verifyInjectedCustomInteger()
void
verifyInjectedCustomInteger2()
void
verifyInjectedCustomIntegerArray()
void
verifyInjectedCustomString()
void
verifyInjectedCustomString2()
void
verifyInjectedCustomStringArray()
void
verifyInjectedIssuedAt()
void
verifyInjectedIssuedAt2()
void
verifyInjectedJTI()
void
verifyInjectedJTI2()
void
verifyInjectedRawToken()
void
verifyInjectedRawToken2()
void
verifyIssuerClaim()
void
verifyIssuerClaim2()
-
-
-
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
-
verifyInjectedRawToken
@RunAsClient public void verifyInjectedRawToken() throws Exception
- Throws:
Exception
-
verifyInjectedAudience
@RunAsClient public void verifyInjectedAudience() throws Exception
- Throws:
Exception
-
verifyInjectedAuthTime
@RunAsClient public void verifyInjectedAuthTime() throws Exception
- Throws:
Exception
-
verifyInjectedIssuedAt
@RunAsClient public void verifyInjectedIssuedAt() 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
-
verifyInjectedCustomStringArray
@RunAsClient public void verifyInjectedCustomStringArray() throws Exception
- Throws:
Exception
-
verifyInjectedCustomIntegerArray
@RunAsClient public void verifyInjectedCustomIntegerArray() throws Exception
- Throws:
Exception
-
verifyInjectedCustomDoubleArray
@RunAsClient public void verifyInjectedCustomDoubleArray() throws Exception
- Throws:
Exception
-
verifyInjectedRawToken2
@RunAsClient public void verifyInjectedRawToken2() throws Exception
- Throws:
Exception
-
verifyInjectedAudience2
@RunAsClient public void verifyInjectedAudience2() throws Exception
- Throws:
Exception
-
verifyInjectedIssuedAt2
@RunAsClient public void verifyInjectedIssuedAt2() throws Exception
- Throws:
Exception
-
verifyInjectedAuthTime2
@RunAsClient public void verifyInjectedAuthTime2() throws Exception
- Throws:
Exception
-
verifyInjectedCustomString2
@RunAsClient public void verifyInjectedCustomString2() throws Exception
- Throws:
Exception
-
verifyInjectedCustomInteger2
@RunAsClient public void verifyInjectedCustomInteger2() throws Exception
- Throws:
Exception
-
-