Jvm options not showing with arquillian test on jboss

I run arquillian in jboss managed container mode. I set the following jvm parameters when running arquillian testcases in the arquillian.xml file:

<property name="javaVmArguments">-Xmx2048m -XX:MaxPermSize=256m -Djboss.socket.binding.port-offset=629 -Djboss.bind.address.unsecure=127.0.0.1 

However, in my test code, I cannot see these jvm parameters. When the following code is executed in a test script, it returns "Not set."

 System.getProperty("jboss.bind.address.unsecure", "Not set")); 

My test case is as follows:

 @Test @InSequence(2) @OperateOnDeployment("PIB") public void testDeployCamelEngineService() throws Exception { this.deployer.deploy("CamelEngine"); changeConfigParameters("med_service_protocol_info", "CM"); } 

I use some JVM parameters in the changeConfigParameters method.

Any idea what I'm doing wrong?

+2
source share
1 answer

I think this property sets the arguments for jvm, in which the container is deployed, and not for vm, which runs the tests.

0
source

All Articles