<?xml version="1.0" encoding="UTF-8"?>
<test-data
    xmlns="http://pmd.sourceforge.net/rule-tests"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://pmd.sourceforge.net/rule-tests http://pmd.sourceforge.net/rule-tests_1_0_0.xsd">
    <test-code>
        <description><![CDATA[
Just 1 import
     ]]></description>
        <expected-problems>0</expected-problems>
        <code><![CDATA[
<%@ page import="com.foo.MyClass"%><html><body><b><img src="<%=Some.get()%>/foo">xx</img>text</b></body></html>
     ]]></code>
        <source-type>jsp</source-type>
    </test-code>
    <test-code>
        <description><![CDATA[
Duplicate imports
     ]]></description>
        <expected-problems>1</expected-problems>
        <code><![CDATA[
<%@ page import="com.foo.MyClass,com.foo.MyClass"%><html><body><b><img src="<%=Some.get()%>/foo">xx</img>text</b></body></html>
     ]]></code>
        <source-type>jsp</source-type>
    </test-code>
    <test-code>
        <description><![CDATA[
Duplicate imports
     ]]></description>
        <expected-problems>1</expected-problems>
        <code><![CDATA[
<%@ page import="com.foo.MyClass"%><%@ page import="com.foo.MyClass"%><html><body><b><img src="<%=Some.get()%>/foo">xx</img>text</b></body></html>
     ]]></code>
        <source-type>jsp</source-type>
    </test-code>
    <test-code>
        <description><![CDATA[
Duplicate imports
     ]]></description>
        <expected-problems>1</expected-problems>
        <code><![CDATA[
<%@ page import="com.foo.MyClass,com.foo.AClass"%><%@ page import="com.foo.MyClass"%><html><body><b><img src="<%=Some.get()%>/foo">xx</img>text</b></body></html>
     ]]></code>
        <source-type>jsp</source-type>
    </test-code>
    <test-code>
        <description><![CDATA[
Duplicate imports
     ]]></description>
        <expected-problems>2</expected-problems>
        <code><![CDATA[
<%@ page import="com.foo.MyClass,com.foo.MyClass"%><%@ page import="com.foo.MyClass"%><html><body><b><img src="<%=Some.get()%>/foo">xx</img>text</b></body></html>
     ]]></code>
        <source-type>jsp</source-type>
    </test-code>
    <test-code>
        <description><![CDATA[
Just 1 import
     ]]></description>
        <expected-problems>0</expected-problems>
        <code><![CDATA[
<%@ page errorPage="error.jsp" %><%@ page import="com.foo.AClass"%><%@ page import="com.foo.MyClass"%><html><body><b><img src="<%=Some.get()%>/foo">xx</img>text</b></body></html>
     ]]></code>
        <source-type>jsp</source-type>
    </test-code>
</test-data>
