protected int getNumberOfMethodsThatShouldRun(PortletRequest request) {
if (numMethodsCache == -1) {
Class<?> clazz = getClass();
for (Method m : clazz.getMethods()) {
if (m.getName().startsWith("check") &&
m.getReturnType().equals(TestResult.class)) {
for (Class<?> paramType : m.getParameterTypes()) {
if (StateAwareResponse.class
.isAssignableFrom(paramType)) {
numMethodsCache++;
}
}
}
}
}
return numMethodsCache;
}
BaseEventTest.java 文件源码
java
阅读 19
收藏 0
点赞 0
评论 0
项目:portals-pluto
作者:
评论列表
文章目录