@ProcessEvent(name = "AnnotationTests_ProcessEvent_ApiEvent2")
public void nameEvnt(EventRequest req, EventResponse resp) throws PortletException, IOException {
StringWriter writer = new StringWriter();
JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
/* TestCase: V2AnnotationTests_ProcessEvent_ApiEvent_name */
/* Details: "Method name(): On an event request, the method is */
/* executed if the Event name matches the name field" */
TestResult tr1 = tcd.getTestResultFailed(V2ANNOTATIONTESTS_PROCESSEVENT_APIEVENT_NAME);
tr1.setTcSuccess(true);
tr1.writeTo(writer);
req.getPortletSession().setAttribute(
Constants.RESULT_ATTR_PREFIX + "AnnotationTests_ProcessEvent_ApiEvent", writer.toString(),
APPLICATION_SCOPE);
}
AnnotationTests_ProcessEvent_ApiEvent_event.java 文件源码
java
阅读 20
收藏 0
点赞 0
评论 0
项目:portals-pluto
作者:
评论列表
文章目录