java - How JUNIT read arquillian.xml in eclipse? -
i tried run arquillian test in eclipse instead of running mvn. under maven, ok, eclipse, give me exceptions:
org.jboss.arquillian.container.spi.configurationexception: jbosshome 'null' must exist @ org.jboss.arquillian.container.spi.client.deployment.validate.configurationdirectoryexists(validate.java:139) @ org.jboss.as.arquillian.container.distributioncontainerconfiguration.validate(distributioncontainerconfiguration.java:103) @ org.jboss.as.arquillian.container.managed.managedcontainerconfiguration.validate(managedcontainerconfiguration.java:65) @ org.jboss.arquillian.container.impl.containerimpl.createdeployableconfiguration(containerimpl.java:115) @ org.jboss.arquillian.container.impl.containerimpl.setup(containerimpl.java:181) @ org.jboss.arquillian.container.impl.client.container.containerlifecyclecontroller$7.perform(containerlifecyclecontroller.java:149) @ org.jboss.arquillian.container.impl.client.container.containerlifecyclecontroller$7.perform(containerlifecyclecontroller.java:145) @ ....
i tried debug problem, arquillian class, didn't find trying read arquilian.xml, under arquillian class
public class managedcontainerconfiguration extends distributioncontainerconfiguration { /** * default timeout value waiting on ports 10 seconds */ private static final integer default_value_wait_for_ports_timeout_seconds = 10; private string javavmarguments = system.getproperty("jboss.options", "-xmx512m -xx:maxpermsize=128m"); private int startuptimeoutinseconds = 60; private boolean outputtoconsole = true;
from class, managed container test, arquillian gives default configuration, how can use configuration in arquillian.xml run junit test?
i've put arquillian.xml under src/test/resources folder.
it should evaluating arquillian.xml anyway ... can try set jboss_home env variable. suggestion if want execute tests ide use intellij. experience showed, pretty runs better in intellij tests.
Comments
Post a Comment