1   /***
2    * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
3    */
4   package test.net.sourceforge.pmd.rules.design;
5   
6   import net.sourceforge.pmd.Rule;
7   import test.net.sourceforge.pmd.testframework.SimpleAggregatorTst;
8   
9   /***
10   * Adding this test to validate current working code doesn't break I've been
11   * trying to locate the article referenced. The below code stresses the NPath
12   * rule, and according to its current style, runs 2 tests, one pass and one
13   * fail.
14   * 
15   * @author Allan Caplan
16   */
17  public class UseCollectionIsEmptyTest extends SimpleAggregatorTst{
18  
19      private Rule rule;
20  
21      public void setUp() {
22          rule = findRule("design", "UseCollectionIsEmpty");
23      }
24  
25      public void testAll() {
26          runTests(rule);
27      }
28  
29  }
30