<!DOCTYPE xwork PUBLIC "-//OpenSymphony Group//XWork 1.0//EN" "http://www.opensymphony.com/xwork/xwork-1.0.dtd">

<xwork>

    <include file="webwork-default.xml"/>

    <package name="default" extends="webwork-default">

        <result-types>
            <result-type name="jsUnitXml" class="net.jsunit.action.XmlResult"/>
            <result-type name="jsUnitLatestVersion" class="net.jsunit.action.LatestVersionResult"/>
        </result-types>

        <interceptors>
            <interceptor name="browserTestRunner" class="net.jsunit.interceptor.BrowserTestRunnerInterceptor"/>
            <interceptor name="browserResult" class="net.jsunit.interceptor.BrowserResultInterceptor"/>
            <interceptor name="requestSource" class="net.jsunit.interceptor.RequestSourceInterceptor"/>
            <interceptor name="versionGrabber" class="net.jsunit.interceptor.VersionGrabberInterceptor"/>

            <interceptor-stack name="defaultStack">
                <interceptor-ref name="servlet-config"/>
                <interceptor-ref name="prepare"/>
                <interceptor-ref name="params"/>
                <interceptor-ref name="browserTestRunner"/>
            </interceptor-stack>
        </interceptors>

        <default-interceptor-ref name="defaultStack"/>

        <action name="acceptor" class="net.jsunit.action.ResultAcceptorAction">
            <result name="success" type="jsUnitXml"/>
            <interceptor-ref name="defaultStack"/>
            <interceptor-ref name="browserResult"/>
        </action>

        <action name="runner" class="net.jsunit.action.TestRunnerAction">
            <result name="success" type="jsUnitXml"/>
            <result name="error" type="jsUnitXml"/>
            <interceptor-ref name="defaultStack"/>
            <interceptor-ref name="requestSource"/>
        </action>

        <action name="displayer" class="net.jsunit.action.ResultDisplayerAction">
            <result name="success" type="jsUnitXml"/>
            <result name="error" type="jsUnitXml"/>
        </action>

        <action name="config" class="net.jsunit.action.BrowserTestRunnerConfigurationAction">
            <result name="success" type="jsUnitXml"/>
        </action>

        <action name="latestversion" class="net.jsunit.action.LatestVersionAction">
            <result name="success" type="jsUnitLatestVersion"/>
            <result name="error" type="httpheader">
                <param name="status">500</param>
            </result>
            <interceptor-ref name="versionGrabber"/>
        </action>

    </package>

</xwork>
