View Javadoc

1   package net.sourceforge.pmd.renderers;
2   
3   import net.sourceforge.pmd.PMD;
4   import net.sourceforge.pmd.Report.ProcessingError;
5   
6   public class TextRendererTest extends AbstractRendererTst {
7   
8       @Override
9       public Renderer getRenderer() {
10          return new TextRenderer();
11      }
12  
13      @Override
14      public String getExpected() {
15          return "n/a:1:\tmsg" + PMD.EOL;
16      }
17  
18      @Override
19      public String getExpectedEmpty() {
20          return "";
21      }
22  
23      @Override
24      public String getExpectedMultiple() {
25          return "n/a:1:\tmsg" + PMD.EOL + "n/a:1:\tmsg" + PMD.EOL;
26      }
27  
28      @Override
29      public String getExpectedError(ProcessingError error) {
30          return "file\t-\tError" + PMD.EOL;
31      }
32  
33      public static junit.framework.Test suite() {
34          return new junit.framework.JUnit4TestAdapter(TextRendererTest.class);
35      }
36  }