<?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[
Contains test, no @Test
     ]]></description>
        <expected-problems>1</expected-problems>
        <code><![CDATA[
public class Foo extends TestCase{
    public void testFoo() {
    }
}
     ]]></code>
    </test-code>
    <test-code>
        <description><![CDATA[
OK
     ]]></description>
        <expected-problems>0</expected-problems>
        <code><![CDATA[
public class Foo extends TestCase{
    @Test
    public void testFoo() {
    }
}
     ]]></code>
    </test-code>
    <test-code>
        <description><![CDATA[
OK, renamed test
     ]]></description>
        <expected-problems>0</expected-problems>
        <code><![CDATA[
public class Foo extends TestCase{
    @Test
    public void foo() {
    }
}
     ]]></code>
    </test-code>
    <test-code>
        <description><![CDATA[
One test proper, the other incorrect
     ]]></description>
        <expected-problems>1</expected-problems>
        <code><![CDATA[
public class Foo extends TestCase{
    public void testFoo() {
    }
    @Test
    public void foo() {
    }
}
     ]]></code>
    </test-code>
    <test-code>
        <description><![CDATA[
Two tests
     ]]></description>
        <expected-problems>2</expected-problems>
        <code><![CDATA[
public class Foo extends TestCase{
    public void testOne() {
    }
    public void testTwo() {
    }
}
     ]]></code>
    </test-code>
    <test-code>
        <description>#1197 JUnit4TestShouldUseTestAnnotation for private method</description>
        <expected-problems>0</expected-problems>
        <code><![CDATA[
public class Faa
{
    @Test
    public void test()
    {
        testHelper();
        fail( "Not yet implemented" );
    }

    private boolean testHelper()  // <- JUnit4TestShouldUseTestAnnotation
    {
        return false;
    }
}
        ]]></code>
    </test-code>
</test-data>
