1   /***
2    * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
3   */
4   package test.net.sourceforge.pmd.testframework;
5   
6   public class SimpleAggregatorTst extends RuleTst {
7   
8       public void runTests(TestDescriptor[] tests) {
9           for (int i=0; i<tests.length; i++) {
10              try {
11                  runTestFromString(tests[i].code, tests[i].numberOfProblemsExpected, tests[i].rule);
12              } catch (Throwable t) {
13                  t.printStackTrace();
14                  throw new RuntimeException("Test \"" + tests[i].description + "\" failed");
15              }
16          }
17      }
18  }