<?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>method names should start with lowercase character</description>
        <expected-problems>1</expected-problems>
        <code><![CDATA[
public class Foo {
	void Bar() {}
}
		]]></code>
    </test-code>
    
    <test-code>
        <description>method names should not contain underscores</description>
        <expected-problems>1</expected-problems>
        <code><![CDATA[
public class Foo {
	void bar_foo() {}
}
		]]></code>
    </test-code>
    
    <test-code>
        <description>all is well</description>
        <expected-problems>0</expected-problems>
        <code><![CDATA[
public class Foo {
	void foo() {}
}
		]]></code>
    </test-code>
    
    <test-code>
        <description>#1343 MethodNamingConventions for overrided methods</description>
        <expected-problems>0</expected-problems>
        <code><![CDATA[
public class MethodNamingConventions implements SomeInterface {
    @Override
    public void _foo() {}
}
        ]]></code>
    </test-code>
    
    <test-code>
        <description>#25 Method rules should ignore Property Getter/Setter</description>
        <expected-problems>0</expected-problems>
        <code><![CDATA[
public class Foo {
    public Integer property { get; private set; }
}
        ]]></code>
    </test-code>
    
    <test-code>
        <description>#26 Constructors should not trigger "Method names should not start with capital letters" issue</description>
        <expected-problems>0</expected-problems>
        <code><![CDATA[
public class Foo {
    public Foo() {}
}
        ]]></code>
    </test-code>
    
</test-data>
