diff --git a/pmd-core/src/test/java/net/sourceforge/pmd/renderers/AbstractRendererTst.java b/pmd-core/src/test/java/net/sourceforge/pmd/renderers/AbstractRendererTst.java index 96cebb1636..5036ea73ed 100644 --- a/pmd-core/src/test/java/net/sourceforge/pmd/renderers/AbstractRendererTst.java +++ b/pmd-core/src/test/java/net/sourceforge/pmd/renderers/AbstractRendererTst.java @@ -81,7 +81,7 @@ public abstract class AbstractRendererTst { ctx.setSourceCodeFilename("n/a"); Report report = new Report(); RuleWithProperties theRule = new RuleWithProperties(); - theRule.setProperty(RuleWithProperties.STRING_PROPERTY_DESCRIPTOR, "the string value\nsecond line"); + theRule.setProperty(RuleWithProperties.STRING_PROPERTY_DESCRIPTOR, "the string value\nsecond line with \"quotes\""); report.addRuleViolation(new ParametricRuleViolation(theRule, ctx, node, "blah")); String rendered = ReportTest.render(getRenderer(), report); assertEquals(filter(getExpectedWithProperties()), filter(rendered)); diff --git a/pmd-core/src/test/java/net/sourceforge/pmd/renderers/CodeClimateRendererTest.java b/pmd-core/src/test/java/net/sourceforge/pmd/renderers/CodeClimateRendererTest.java index 4bc9557077..856d4cc377 100644 --- a/pmd-core/src/test/java/net/sourceforge/pmd/renderers/CodeClimateRendererTest.java +++ b/pmd-core/src/test/java/net/sourceforge/pmd/renderers/CodeClimateRendererTest.java @@ -22,8 +22,8 @@ public class CodeClimateRendererTest extends AbstractRendererTst { + "### [PMD properties](http://pmd.sourceforge.net/snapshot/customizing/pmd-developer.html)\\n\\n" + "Name | Value | Description\\n" + "--- | --- | ---\\n" - + "violationSuppressRegex | | Suppress violations with messages matching a regular expression\\n" - + "violationSuppressXPath | | Suppress violations on nodes which match a given relative XPath expression.\\n" + + "violationSuppressRegex | | Suppress violations with messages matching a regular expression\\n" + + "violationSuppressXPath | | Suppress violations on nodes which match a given relative XPath expression.\\n" + "\"},\"categories\":[\"Style\"],\"location\":{\"path\":\"n/a\",\"lines\":{\"begin\":1,\"end\":1}},\"severity\":\"info\",\"remediation_points\":50000}" + "\u0000" + PMD.EOL; } @@ -37,10 +37,10 @@ public class CodeClimateRendererTest extends AbstractRendererTst { + "### [PMD properties](http://pmd.sourceforge.net/snapshot/customizing/pmd-developer.html)\\n\\n" + "Name | Value | Description\\n" + "--- | --- | ---\\n" - + "violationSuppressRegex | | Suppress violations with messages matching a regular expression\\n" - + "violationSuppressXPath | | Suppress violations on nodes which match a given relative XPath expression.\\n" + + "violationSuppressRegex | | Suppress violations with messages matching a regular expression\\n" + + "violationSuppressXPath | | Suppress violations on nodes which match a given relative XPath expression.\\n" + "multiString | default1,default2 | multi string property\\n" - + "stringProperty | the string value\\nsecond line | simple string property\\n" + + "stringProperty | the string value\\nsecond line with 'quotes' | simple string property\\n" + "\"},\"categories\":[\"Style\"],\"location\":{\"path\":\"n/a\",\"lines\":{\"begin\":1,\"end\":1}},\"severity\":\"info\",\"remediation_points\":50000}" + "\u0000" + PMD.EOL; } @@ -59,8 +59,8 @@ public class CodeClimateRendererTest extends AbstractRendererTst { + "### [PMD properties](http://pmd.sourceforge.net/snapshot/customizing/pmd-developer.html)\\n\\n" + "Name | Value | Description\\n" + "--- | --- | ---\\n" - + "violationSuppressRegex | | Suppress violations with messages matching a regular expression\\n" - + "violationSuppressXPath | | Suppress violations on nodes which match a given relative XPath expression.\\n" + + "violationSuppressRegex | | Suppress violations with messages matching a regular expression\\n" + + "violationSuppressXPath | | Suppress violations on nodes which match a given relative XPath expression.\\n" + "\"},\"categories\":[\"Style\"],\"location\":{\"path\":\"n/a\",\"lines\":{\"begin\":1,\"end\":1}},\"severity\":\"info\",\"remediation_points\":50000}" + "\u0000" + PMD.EOL + "{\"type\":\"issue\",\"check_name\":\"Foo\",\"description\":\"blah\"," + "\"content\":{\"body\":\"## Foo\\n\\nSince: PMD null\\n\\nPriority: Low\\n\\n" @@ -70,8 +70,8 @@ public class CodeClimateRendererTest extends AbstractRendererTst { + "### [PMD properties](http://pmd.sourceforge.net/snapshot/customizing/pmd-developer.html)\\n\\n" + "Name | Value | Description\\n" + "--- | --- | ---\\n" - + "violationSuppressRegex | | Suppress violations with messages matching a regular expression\\n" - + "violationSuppressXPath | | Suppress violations on nodes which match a given relative XPath expression.\\n" + + "violationSuppressRegex | | Suppress violations with messages matching a regular expression\\n" + + "violationSuppressXPath | | Suppress violations on nodes which match a given relative XPath expression.\\n" + "\"},\"categories\":[\"Style\"],\"location\":{\"path\":\"n/a\",\"lines\":{\"begin\":1,\"end\":1}},\"severity\":\"info\",\"remediation_points\":50000}" + "\u0000" + PMD.EOL; } }