simpleaggregatortst.java

来自「检查Java程序漏洞」· Java 代码 · 共 19 行

JAVA
19
字号
/** * BSD-style license; for more info see http://pmd.sourceforge.net/license.html*/package test.net.sourceforge.pmd.testframework;public class SimpleAggregatorTst extends RuleTst {    public void runTests(TestDescriptor[] tests) {        for (int i=0; i<tests.length; i++) {            try {                runTestFromString(tests[i].code, tests[i].numberOfProblemsExpected, tests[i].rule);            } catch (Throwable t) {                t.printStackTrace();                throw new RuntimeException("Test \"" + tests[i].description + "\" failed");            }        }    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?