Class PrimitiveInjectionTest
- java.lang.Object
-
- org.jboss.arquillian.testng.Arquillian
-
- org.eclipse.microprofile.jwt.tck.container.jaxrs.PrimitiveInjectionTest
-
- All Implemented Interfaces:
org.testng.IHookable
,org.testng.ITestNGListener
public class PrimitiveInjectionTest extends org.jboss.arquillian.testng.Arquillian
Tests that claims can be injected as primitive types into @RequestScoped beans
-
-
Constructor Summary
Constructors Constructor Description PrimitiveInjectionTest()
-
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
verifyInjectedCustomBoolean()
void
verifyInjectedCustomString()
void
verifyInjectedExpiration()
void
verifyInjectedGroups()
void
verifyInjectedIssuedAt()
void
verifyInjectedJTI()
void
verifyInjectedRawToken()
void
verifyInjectedSUB()
void
verifyInjectedUPN()
void
verifyIssuerClaim()
-
-
-
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
-
verifyInjectedGroups
@RunAsClient public void verifyInjectedGroups() throws Exception
- Throws:
Exception
-
verifyInjectedIssuedAt
@RunAsClient public void verifyInjectedIssuedAt() throws Exception
- Throws:
Exception
-
verifyInjectedExpiration
@RunAsClient public void verifyInjectedExpiration() throws Exception
- Throws:
Exception
-
verifyInjectedCustomString
@RunAsClient public void verifyInjectedCustomString() throws Exception
- Throws:
Exception
-
verifyInjectedCustomBoolean
@RunAsClient public void verifyInjectedCustomBoolean()
-
-