01: package test.net.sourceforge.pmd.renderers;
02:
03: import net.sourceforge.pmd.PMD;
04: import net.sourceforge.pmd.Report.ProcessingError;
05: import net.sourceforge.pmd.renderers.AbstractRenderer;
06: import net.sourceforge.pmd.renderers.TextRenderer;
07:
08: public class TextRendererTest extends AbstractRendererTst {
09:
10: public AbstractRenderer getRenderer() {
11: return new TextRenderer();
12: }
13:
14: public String getExpected() {
15: return PMD.EOL + "n/a:1\tmsg";
16: }
17:
18: public String getExpectedEmpty() {
19: return "No problems found!";
20: }
21:
22: public String getExpectedMultiple() {
23: return PMD.EOL + "n/a:1\tmsg" + PMD.EOL + "n/a:1\tmsg";
24: }
25:
26: public String getExpectedError(ProcessingError error) {
27: return PMD.EOL + "file\t-\tError";
28: }
29:
30: public static junit.framework.Test suite() {
31: return new junit.framework.JUnit4TestAdapter(
32: TextRendererTest.class);
33: }
34: }
|