KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > net > sourceforge > pmd > rules > strictexception > AvoidRethrowingExceptionTest


1
2  package test.net.sourceforge.pmd.rules.strictexception;
3  
4  import net.sourceforge.pmd.Rule;
5  import test.net.sourceforge.pmd.testframework.SimpleAggregatorTst;
6  
7  /**
8   * Tests the <code>AvoidRethrowingException</code> rule.
9   *
10   * @author George Thomas
11   */

12  public class AvoidRethrowingExceptionTest extends SimpleAggregatorTst {
13  
14      private Rule rule;
15  
16      public void setUp() {
17          rule = findRule("strictexception", "AvoidRethrowingException");
18      }
19  
20      public void testAll() {
21          runTests(rule);
22      }
23  }
24
Popular Tags