jboss上的Arquillian测试用例中不可见的jvm参数 [英] jvm parameters not visible with in arquillian testcase on jboss
问题描述
我正在以jboss托管容器模式运行Arquillian. 在arquillian.xml文件中启动Arquillian测试用例时,我正在设置以下jvm参数:
I am running arquillian in the jboss managed container mode. I am setting the following jvm parameters while starting arquillian testcases in arquillian.xml file:
<property name="javaVmArguments">-Xmx2048m -XX:MaxPermSize=256m -Djboss.socket.binding.port-offset=629 -Djboss.bind.address.unsecure=127.0.0.1
但是,在我的测试代码中,我看不到这些jvm参数. 当以下代码在测试用例中执行时,它将返回未设置".
However, in my testcode, I am unable to see these jvm parameters. When the following code executes in the testcase, it returns "Not set".
System.getProperty("jboss.bind.address.unsecure", "Not set"));
我的测试用例如下:
@Test
@InSequence(2)
@OperateOnDeployment("PIB")
public void testDeployCamelEngineService() throws Exception {
this.deployer.deploy("CamelEngine");
changeConfigParameters("med_service_protocol_info", "CM");
}
我在changeConfigParameters方法中使用了一些JVM参数.
I am using some JVM parameters in the changeConfigParameters method .
知道我在做什么错吗?
推荐答案
我认为此属性为部署容器的jvm设置参数,而不是为运行测试的vm设置参数.
I think this property sets the arguments for the jvm that the container is deployed on, not for the vm that is running the tests.
这篇关于jboss上的Arquillian测试用例中不可见的jvm参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!