01: package test.net.sourceforge.pmd.renderers;
02:
03: import net.sourceforge.pmd.PMD;
04: import net.sourceforge.pmd.renderers.AbstractRenderer;
05: import net.sourceforge.pmd.renderers.IDEAJRenderer;
06:
07: public class IDEAJRendererTest extends AbstractRendererTst {
08:
09: public AbstractRenderer getRenderer() {
10: return new IDEAJRenderer(new String[] { "", "", "", "",
11: "Foo <init>", "Foo.java" });
12: }
13:
14: public String getExpected() {
15: return "msg" + PMD.EOL + " at Foo <init>(Foo.java:1)" + PMD.EOL;
16: }
17:
18: public String getExpectedEmpty() {
19: return "";
20: }
21:
22: public String getExpectedMultiple() {
23: return "msg" + PMD.EOL + " at Foo <init>(Foo.java:1)" + PMD.EOL
24: + "msg" + PMD.EOL + " at Foo <init>(Foo.java:1)"
25: + PMD.EOL;
26: }
27:
28: public static junit.framework.Test suite() {
29: return new junit.framework.JUnit4TestAdapter(
30: IDEAJRendererTest.class);
31: }
32: }
|