2 Replies Latest reply on Jun 19, 2014 3:24 AM by Thomas Jodes

    API for reading current container's properties

    Thomas Jodes Newbie

      Hi,

      it there an API or any possibility to read the current arquillian container's properties before my own tests run?

       

      Assume you have got following arquillian.xml on test classpath, I'd like to read managementPort and managementAdress when arquillian uses either container jbossas-remote or jbossas-local

       

      <arquillian xmlns="http://jboss.org/schema/arquillian"

          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

          xsi:schemaLocation="http://jboss.org/schema/arquillian http://jboss.org/schema/arquillian/arquillian_1_0.xsd">

       

          <container qualifier="jbossas-remote">

              <configuration>

                  <property name="managementAddress">someHost</property>

                  <property name="managementPort">9975</property>

                  <property name="username">user</property>

                  <property name="password">pass</property>

              </configuration>

          </container>

       

          <container qualifier="jbossas-local">

              <configuration>

                  <property name="managementAddress">localhost</property>

                  <property name="managementPort">9999</property>

                  <property name="username">user</property>

                  <property name="password">pass</property>

              </configuration>

          </container>

      </arquillian>


      Thanks in advance!