<?xml version="1.0" encoding="UTF-8"?>
<test-data>
    <test-code>
        <description><![CDATA[
OneDeclarationPerLine's basic test case
     ]]></description>
        <expected-problems>1</expected-problems>
        <code>
        	<![CDATA[
public class Foo
{
	public void bar()
	{ 
		String name, lastname, adress;
	}
}
		     ]]>
		</code>
    </test-code>
        <test-code>
        <description><![CDATA[
OneDeclarationPerLine's potential false+
     ]]></description>
        <expected-problems>0</expected-problems>
        <code>
        	<![CDATA[
public class Foo
{
	public void bar(String otherName, int age) 
	{ 
		String name;
		String lastname;
	}

}
		     ]]>
		</code>
    </test-code>
    <test-code>
        <description>#1221 OneDeclarationPerLine really checks for one declaration each statement</description>
        <expected-problems>0</expected-problems>
        <rule-property name="strictMode">false</rule-property>
        <code><![CDATA[
public class Foo {
    public void bar() {
        String name,
               lastname;
    }
}
        ]]></code>
    </test-code>
    <test-code>
        <description>#1221 OneDeclarationPerLine really checks for one declaration each statement</description>
        <expected-problems>1</expected-problems>
        <rule-property name="strictMode">true</rule-property>
        <code><![CDATA[
public class Foo {
    public void bar() {
        String name,
               lastname;
    }
}
        ]]></code>
    </test-code>
</test-data>
