Simplify test xml

CDATA is not necessary for test case descriptions
This commit is contained in:
Andreas Dangel
2019-04-05 14:44:45 +02:00
parent f3c0d39f66
commit 96a14ede0a

View File

@ -4,12 +4,10 @@
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[
No issues here
]]></description>
<description>No issues here</description>
<expected-problems>0</expected-problems>
<code>
<![CDATA[
<![CDATA[
import other.exceptions.SecurityException;
import yet.an.other.one.NoSuchMethodException;
@ -32,16 +30,14 @@ public class MyClass {
System.loadLibrary("nativelib");
}
}
]]>
</code>
]]>
</code>
</test-code>
<test-code>
<description><![CDATA[
]]></description>
<description>Public method with 4 String parameters</description>
<expected-problems>1</expected-problems>
<code>
<![CDATA[
<![CDATA[
public class MyClass {
public void connect(String username,
String pssd,
@ -55,15 +51,11 @@ public class MyClass {
}
}
]]>
</code>
]]>
</code>
</test-code>
<test-code>
<description>
<![CDATA[
non-public methods should not have findings
]]>
</description>
<description>non-public methods should not have findings</description>
<expected-problems>0</expected-problems>
<code>
<![CDATA[
@ -91,11 +83,7 @@ public class MyClass {
</code>
</test-code>
<test-code>
<description>
<![CDATA[
String[] should not be treated as String
]]>
</description>
<description>String[] should not be treated as String</description>
<expected-problems>0</expected-problems>
<code>
<![CDATA[