Class ProviderInjectionTest
- java.lang.Object
-
- org.jboss.arquillian.testng.Arquillian
-
- org.eclipse.microprofile.jwt.tck.container.jaxrs.ProviderInjectionTest
-
- All Implemented Interfaces:
org.testng.IHookable
,org.testng.ITestNGListener
public class ProviderInjectionTest extends org.jboss.arquillian.testng.Arquillian
Tests of injection JsonWebToken claims using the Instance interface.
-
-
Constructor Summary
Constructors Constructor Description ProviderInjectionTest()
-
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
verifyInjectedCustomDouble()
void
verifyInjectedCustomDouble2()
void
verifyInjectedCustomInteger()
void
verifyInjectedCustomInteger2()
void
verifyInjectedCustomString()
void
verifyInjectedCustomString2()
void
verifyInjectedIssuedAt()
void
verifyInjectedIssuedAt2()
void
verifyInjectedJTI()
void
verifyInjectedJTI2()
void
verifyInjectedOptionalAuthTime()
void
verifyInjectedOptionalAuthTime2()
void
verifyInjectedOptionalCustomMissing()
void
verifyInjectedOptionalSubject()
void
verifyInjectedOptionalSubject2()
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
-
verifyInjectedIssuedAt
@RunAsClient public void verifyInjectedIssuedAt() throws Exception
- Throws:
Exception
-
verifyInjectedOptionalSubject
@RunAsClient public void verifyInjectedOptionalSubject() throws Exception
- Throws:
Exception
-
verifyInjectedOptionalAuthTime
@RunAsClient public void verifyInjectedOptionalAuthTime() 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
-
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
-
verifyInjectedOptionalSubject2
@RunAsClient public void verifyInjectedOptionalSubject2() throws Exception
- Throws:
Exception
-
verifyInjectedOptionalAuthTime2
@RunAsClient public void verifyInjectedOptionalAuthTime2() throws Exception
- Throws:
Exception
-
verifyInjectedCustomString2
@RunAsClient public void verifyInjectedCustomString2() throws Exception
- Throws:
Exception
-
verifyInjectedCustomInteger2
@RunAsClient public void verifyInjectedCustomInteger2() throws Exception
- Throws:
Exception
-
-