AnnotationTests_ProcessEvent_ApiEvent_event.java 文件源码

java
阅读 21 收藏 0 点赞 0 评论 0

项目:portals-pluto 作者:
@ProcessEvent(qname = "{" + TCKNAMESPACE + "}AnnotationTests_ProcessEvent_ApiEvent")
public void handleEvnt(EventRequest req, EventResponse resp)
    throws PortletException, IOException {

  StringWriter writer = new StringWriter();

  JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();

  /* TestCase: V2AnnotationTests_ProcessEvent_ApiEvent_qname */
  /* Details: "Method qname(): On an event request, the method is */
  /* executed if the Event qname matches the qname field" */
  TestResult tr0 = tcd.getTestResultFailed(V2ANNOTATIONTESTS_PROCESSEVENT_APIEVENT_QNAME);
  tr0.setTcSuccess(true);
  tr0.writeTo(writer);
  req.getPortletSession().setAttribute(
      Constants.RESULT_ATTR_PREFIX + "AnnotationTests_ProcessEvent_ApiEvent", writer.toString(),
      APPLICATION_SCOPE);

  LOGGER.trace("Resulting String: {}", writer);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号