use of java.util.PropertyPermission in project wildfly by wildfly.
the class AbstractRemoteEJBForwardingTestCase method createNonForwardingDeployment.
public static Archive<?> createNonForwardingDeployment() {
JavaArchive ejbJar = ShrinkWrap.create(JavaArchive.class, AbstractForwardingStatefulSBImpl.MODULE_NAME + ".jar");
ejbJar.addPackage(CommonStatefulSB.class.getPackage());
ejbJar.addPackage(RemoteStatefulSB.class.getPackage());
ejbJar.addAsResource(createPermissionsXmlAsset(new PropertyPermission("jboss.node.name", "read")), "META-INF/jboss-permissions.xml");
return ejbJar;
}
use of java.util.PropertyPermission in project wildfly by wildfly.
the class ThreadPoolMetricsTestCase method getDeployment.
@Deployment
public static JavaArchive getDeployment() {
final JavaArchive ejbJar = ShrinkWrap.create(JavaArchive.class, "ArtemisThreadpoolMetricsTestCase.jar");
ejbJar.addPackage(TimeoutUtil.class.getPackage());
ejbJar.addClasses(JMSThreadPoolMetricsSetup.class, JMSThreadPoolMetricsMDB.class, JMSThreadPoolMetricsUtil.class);
ejbJar.addAsManifestResource(new StringAsset("Dependencies: org.jboss.as.controller-client, org.jboss.dmr, org.jboss.remoting\n"), "MANIFEST.MF");
ejbJar.addAsManifestResource(createPermissionsXmlAsset(new FilePermission(System.getProperty("jboss.inst") + File.separatorChar + "standalone" + File.separatorChar + "tmp" + File.separatorChar + "auth" + File.separatorChar + "*", "read"), new PropertyPermission("ts.timeout.factor", "read"), RemotingPermission.CREATE_ENDPOINT, RemotingPermission.CONNECT), "jboss-permissions.xml");
return ejbJar;
}
use of java.util.PropertyPermission in project wildfly by wildfly.
the class ApplicationContextLifecycleTestCase method deployTestResults.
@Deployment
public static Archive<?> deployTestResults() {
final JavaArchive jar = ShrinkWrap.create(JavaArchive.class, TEST_RESULTS + ".jar");
jar.addClasses(TestResultsBean.class, TestResults.class, TimeoutUtil.class);
jar.addAsManifestResource(createPermissionsXmlAsset(new PropertyPermission(TimeoutUtil.FACTOR_SYS_PROP, "read")), "permissions.xml");
return jar;
}
use of java.util.PropertyPermission in project wildfly by wildfly.
the class ServiceProviderRegistrationTestCase method createDeployment.
@Deployment(testable = false)
public static Archive<?> createDeployment() {
WebArchive war = ShrinkWrap.create(WebArchive.class, MODULE_NAME + ".war");
war.addPackage(ServiceProviderRetriever.class.getPackage());
war.addAsManifestResource(createPermissionsXmlAsset(new PropertyPermission(NODE_NAME_PROPERTY, "read"), new RuntimePermission("getClassLoader")), "permissions.xml");
war.setWebXML(org.jboss.as.test.clustering.cluster.provider.ServiceProviderRegistrationTestCase.class.getPackage(), "web.xml");
return war;
}
use of java.util.PropertyPermission in project wildfly by wildfly.
the class RegistryTestCase method createDeployment.
@Deployment(testable = false)
public static Archive<?> createDeployment() {
WebArchive war = ShrinkWrap.create(WebArchive.class, MODULE_NAME + ".war");
war.addPackage(RegistryRetriever.class.getPackage());
war.addAsManifestResource(createPermissionsXmlAsset(new PropertyPermission(NODE_NAME_PROPERTY, "read"), new RuntimePermission("getClassLoader")), "permissions.xml");
war.setWebXML(org.jboss.as.test.clustering.cluster.registry.RegistryTestCase.class.getPackage(), "web.xml");
return war;
}
Aggregations