<?xml version="1.0" encoding="UTF-8"?>
<test-data>
    <test-code>
        <description><![CDATA[
No header
     ]]></description>
        <expected-problems>1</expected-problems>
        <code><![CDATA[
<%@ page import="com.foo.MyClass"%>
     ]]></code>
        <source-type>jsp</source-type>
    </test-code>
    <test-code>
        <description><![CDATA[
Good page header
     ]]></description>
        <expected-problems>0</expected-problems>
        <code><![CDATA[
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
     ]]></code>
        <source-type>jsp</source-type>
    </test-code>
    <test-code>
        <description><![CDATA[
Good page header 2
     ]]></description>
        <expected-problems>0</expected-problems>
        <code><![CDATA[
<%@ page import="should.ignore.this.one" %>
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ page import="should.ignore.this.one" %>
     ]]></code>
        <source-type>jsp</source-type>
    </test-code>
    <test-code>
        <description><![CDATA[
Encoding is not UTF-8
     ]]></description>
        <expected-problems>1</expected-problems>
        <code><![CDATA[
<meta http-equiv="content-type" content="text/html;charset=ISO-8859-1"/>
     ]]></code>
        <source-type>jsp</source-type>
    </test-code>
    <test-code>
        <description><![CDATA[
Good meta header
     ]]></description>
        <expected-problems>0</expected-problems>
        <code><![CDATA[
<meta http-equiv="content-type" content="text/html;charset=utf-8"/>
     ]]></code>
        <source-type>jsp</source-type>
    </test-code>
    <test-code>
        <description><![CDATA[
Good meta header 2
     ]]></description>
        <expected-problems>0</expected-problems>
        <code><![CDATA[
<meta http-equiv="Content-Language" content="nl-NL"/>
<meta http-equiv="content-type" content="text/html;charset=utf-8"/>
<meta http-equiv="Content-Language" content="nl-NL"/>
     ]]></code>
        <source-type>jsp</source-type>
    </test-code>
</test-data>
