01: /**
02: * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
03: */package test.net.sourceforge.pmd.renderers;
04:
05: import net.sourceforge.pmd.PMD;
06: import net.sourceforge.pmd.renderers.AbstractRenderer;
07: import net.sourceforge.pmd.renderers.TextPadRenderer;
08:
09: public class TextPadRendererTest extends AbstractRendererTst {
10:
11: public AbstractRenderer getRenderer() {
12: return new TextPadRenderer();
13: }
14:
15: public String getExpected() {
16: return PMD.EOL + "n/a(1, Foo): msg";
17: }
18:
19: public String getExpectedEmpty() {
20: return "";
21: }
22:
23: public String getExpectedMultiple() {
24: return PMD.EOL + "n/a(1, Foo): msg" + PMD.EOL
25: + "n/a(1, Foo): msg";
26: }
27:
28: public static junit.framework.Test suite() {
29: return new junit.framework.JUnit4TestAdapter(
30: TextPadRendererTest.class);
31: }
32: }
|