View Javadoc

    1   package net.sourceforge.pmd.renderers;
    2
    3   import net.sourceforge.pmd.PMD;
    4
    5   public class IDEAJRendererTest extends AbstractRendererTst {
    6
    7       public Renderer getRenderer() {
    8   	Renderer result = new IDEAJRenderer();
    9   	result.setProperty(IDEAJRenderer.SOURCE_PATH, "");
    10  	result.setProperty(IDEAJRenderer.CLASS_AND_METHOD_NAME, "Foo <init>");
    11  	result.setProperty(IDEAJRenderer.FILE_NAME, "Foo.java");
    12  	return result;
    13      }
    14
    15      public String getExpected() {
    16          return "msg" + PMD.EOL + " at Foo <init>(Foo.java:1)" + PMD.EOL;
    17      }
    18
    19      public String getExpectedEmpty() {
    20          return "";
    21      }
    22
    23      public String getExpectedMultiple() {
    24          return "msg" + PMD.EOL + " at Foo <init>(Foo.java:1)" + PMD.EOL + "msg" + PMD.EOL + " at Foo <init>(Foo.java:1)" + PMD.EOL;
    25      }
    26
    27      public static junit.framework.Test suite() {
    28          return new junit.framework.JUnit4TestAdapter(IDEAJRendererTest.class);
    29      }
    30  }
    31