protected TestResult checkSetAppScopedAttributeElsewhereSeenHere(
PortletSession session) {
TestResult result = new TestResult();
result.setDescription("Ensure application scoped attributes set "
+ "elsewhere in portlet session can be seen here.");
Object value = session.getAttribute(EXT_KEY,
PortletSession.APPLICATION_SCOPE);
if (VALUE.equals(value)) {
result.setReturnCode(TestResult.PASSED);
} else {
result.setReturnCode(TestResult.WARNING);
result.setResultMessage("This test will not pass until you have "
+ "opened the external resource using the link provided below.");
}
return result;
}
ExternalAppScopedAttributeTest.java 文件源码
java
阅读 14
收藏 0
点赞 0
评论 0
项目:portals-pluto
作者:
评论列表
文章目录