<!--
  ~ Licensed to the Apache Software Foundation (ASF) under one
  ~ or more contributor license agreements. See the NOTICE file
  ~ distributed with this work for additional information
  ~ regarding copyright ownership. The ASF licenses this file
  ~ to you under the Apache License, Version 2.0 (the
  ~ "License"); you may not use this file except in compliance
  ~ with the License. You may obtain a copy of the License at
  ~
  ~ http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing,
  ~ software distributed under the License is distributed on an
  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  ~ KIND, either express or implied. See the License for the
  ~ specific language governing permissions and limitations
  ~ under the License.
  -->

<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">

    <!--Uncomment to have test archives exported to the file system for inspection -->
    <!--
    <engine>
        <property name="deploymentExportPath">target/</property>
    </engine>
    -->

    <!-- We need to specify this because the default protocol for AS7 and Wildfly doesn't work very well -->
    <defaultProtocol type="Servlet 6.0" />

    <container qualifier="wildfly-managed">
        <configuration>
            <!-- for debugging add: -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y  -->
            <property name="javaVmArguments">-client -Xms64m -Xmx1024m -Dcdicontainer.version=${cdicontainer.version} ${jacoco.agent}</property>
            <property name="outputToConsole">false</property>
            <property name="allowConnectingToRunningServer">true</property>
            <property name="cdicontainer.version">${cdicontainer.version}</property>
        </configuration>
    </container>

    <container qualifier="wildfly-build-managed">
        <configuration>
            <property name="jbossHome">${arquillian.jboss_home}</property>
            <property name="javaVmArguments">-client -Xms64m -Xmx1024m -Djboss.socket.binding.port-offset=50000 -Dcdicontainer.version=${cdicontainer.version} -Ddeltaspike.bean-manager.delegate_lookup=false</property>
<!-- debug options
            <property name="javaVmArguments">-client -noverify -Xms64m -Xmx1024m -XX:MaxPermSize=512m -Djboss.socket.binding.port-offset=50000 -Dcdicontainer.version=${cdicontainer.version} -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005</property>
-->
            <property name="outputToConsole">false</property>
            <property name="managementPort">59990</property>
        </configuration>
    </container>

    <container qualifier="wildfly-remote">
        
    </container>

</arquillian>
