<?xml version="1.0" encoding="UTF-8"?>
<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" >

    <engine>
        <property name="deploymentExportPath">target/deployments</property>
    </engine>
    <defaultProtocol type="Servlet 3.0"/>
    <!--<property name="javaVmArguments">
        -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y
    </property>-->
    
    <extension qualifier="persistence">
        <property name="defaultDataSource">java:/comp/env/jdbc/org/libreccm/ccm-core/h2-mem</property>
        
        <!-- 
            Disable automatic cleanup, does not work because of referential 
            integrity constrains.
        -->
        <property name="defaultCleanupPhase">NONE</property>
        
        <property name="dumpData">true</property>
        <property name="dumpDirectory">target</property>
    </extension>
    
    <extension qualifier="persistence-dbunit">
        <property name="defaultDataSetFormat">json</property>
        <property name="datatypeFactory">org.dbunit.ext.h2.H2DataTypeFactory</property>
        <property name="excludePoi">true</property>
        <property name="qualifiedTableNames">true</property>
    </extension>
    
    <!--<extension qualifier="persistence-script">
        <property name="scriptsToExecuteAfterTest">scripts/h2-cleanup.sql</property>
    </extension>-->

    
</arquillian>