Java Code Examples for org.wildfly.swarm.undertow.WARArchive#addAsManifestResource()

The following examples show how to use org.wildfly.swarm.undertow.WARArchive#addAsManifestResource() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ParametrizedPathsTest.java    From thorntail with Apache License 2.0 5 votes vote down vote up
protected static WARArchive initDeployment() throws Exception {
    WARArchive deployment = ShrinkWrap.create(WARArchive.class);
    deployment.addClass(ParametrizedPathsResource.class);
    deployment.addClass(TestApplication.class);
    deployment.addAsManifestResource(new ClassLoaderAsset("keys/public-key.pem"), "/MP-JWT-SIGNER");
    return deployment;
}
 
Example 2
Source File: KeycloakTokenTest.java    From thorntail with Apache License 2.0 5 votes vote down vote up
protected static WARArchive initDeployment() {
    WARArchive deployment = ShrinkWrap.create(WARArchive.class);
    deployment.addClass(KeycloakTokenResource.class);
    deployment.addClass(TestApplication.class);
    deployment.addAsManifestResource(new ClassLoaderAsset("keys/public-key.pem"), "/MP-JWT-SIGNER");
    return deployment;
}
 
Example 3
Source File: ApplicationScopedPrincipalLeakTest.java    From thorntail with Apache License 2.0 5 votes vote down vote up
protected static WARArchive initDeployment() {
    WARArchive deployment = ShrinkWrap.create(WARArchive.class);
    deployment.addClass(ApplicationScopedSubjectExposingResource.class);
    deployment.addClass(TestApplication.class);
    deployment.addAsManifestResource(new ClassLoaderAsset("keys/public-key.pem"), "/MP-JWT-SIGNER");
    return deployment;
}
 
Example 4
Source File: RolesMapPropertiesTest.java    From thorntail with Apache License 2.0 5 votes vote down vote up
@Deployment
public static Archive<?> createDeployment() throws Exception {
    WARArchive deployment = ShrinkWrap.create(WARArchive.class);
    deployment.addClass(RolesMapEndpoint.class);
    deployment.addClass(TestApplication.class);
    deployment.addAsResource("project-simple-config-roles-map.yml", "project-defaults.yml");
    deployment.addAsManifestResource(new ClassLoaderAsset("keys/public-key.pem"), "/MP-JWT-SIGNER");
    return deployment;
}
 
Example 5
Source File: MpJwtDisabledTest.java    From thorntail with Apache License 2.0 5 votes vote down vote up
protected static WARArchive initDeployment() {
    WARArchive deployment = ShrinkWrap.create(WARArchive.class);
    deployment.addClass(ApplicationScopedSubjectExposingResource.class);
    deployment.addClass(TestApplication.class);
    deployment.addAsManifestResource(new ClassLoaderAsset("keys/public-key.pem"), "/MP-JWT-SIGNER");
    return deployment;
}
 
Example 6
Source File: PrincipalLeakTest.java    From thorntail with Apache License 2.0 5 votes vote down vote up
protected static WARArchive initDeployment() {
    WARArchive deployment = ShrinkWrap.create(WARArchive.class);
    deployment.addClass(SubjectExposingResource.class);
    deployment.addClass(TestApplication.class);
    deployment.addAsManifestResource(new ClassLoaderAsset("keys/public-key.pem"), "/MP-JWT-SIGNER");
    return deployment;
}
 
Example 7
Source File: ContentTypesTest.java    From thorntail with Apache License 2.0 5 votes vote down vote up
protected static WARArchive initDeployment() {
    WARArchive deployment = ShrinkWrap.create(WARArchive.class);
    deployment.addClass(ContentTypesResource.class);
    deployment.addClass(TestApplication.class);
    deployment.addAsManifestResource(new ClassLoaderAsset("keys/public-key.pem"), "/MP-JWT-SIGNER");
    return deployment;
}