KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > incava > doctorj > TestCtorDocAnalyzer


1 package org.incava.doctorj;
2
3 import junit.framework.TestCase;
4 import org.incava.analysis.Violation;
5
6
7 public class TestCtorDocAnalyzer extends Tester
8 {
9     public TestCtorDocAnalyzer(String JavaDoc name)
10     {
11         super(name);
12     }
13
14     public void testReturnTag()
15     {
16         evaluate("/** This is a description. */\n" +
17                  "class Test {\n" +
18                  " /** This is a description.\n" +
19                  " * @return Something\n" +
20                  " */\n" +
21                  " Test() {}\n" +
22                  "}\n",
23                  new Violation[] {
24                      new Violation("Tag not valid for constructor", 4, 9, 4, 15)
25                  });
26     }
27
28 }
29
Popular Tags