You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-scm@portals.apache.org by ms...@apache.org on 2014/08/20 08:42:15 UTC
[02/50] [abbrv] worked on dispatcher request / response tests
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/f3bdabcd/portlet-tck_3.0/V2DispatcherReqRespTests4/src/main/java/javax/portlet/tck/portlets/DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2DispatcherReqRespTests4/src/main/java/javax/portlet/tck/portlets/DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse.java b/portlet-tck_3.0/V2DispatcherReqRespTests4/src/main/java/javax/portlet/tck/portlets/DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse.java
index 33abc34..7e7915a 100644
--- a/portlet-tck_3.0/V2DispatcherReqRespTests4/src/main/java/javax/portlet/tck/portlets/DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse.java
+++ b/portlet-tck_3.0/V2DispatcherReqRespTests4/src/main/java/javax/portlet/tck/portlets/DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse.java
@@ -66,6 +66,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse imple
throws PortletException, IOException {
LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+ portletResp.setRenderParameters(portletReq.getParameterMap());
long tid = Thread.currentThread().getId();
portletReq.setAttribute(THREADID_ATTR, tid);
@@ -101,304 +102,333 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse imple
PortletSession ps = portletReq.getPortletSession();
String msg = (String) ps.getAttribute(RESULT_ATTR_PREFIX + "DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse", APPLICATION_SCOPE);
if (msg != null) {
- writer.write("<p>" + msg + "</p>\n");
+ writer.write("<p>" + msg + "</p><br/>\n");
ps.removeAttribute(RESULT_ATTR_PREFIX + "DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse", APPLICATION_SCOPE);
- } else {
-
- /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_addCookie */
- /* Details: "In a target servlet of a include in the Action phase, */
- /* the method HttpServletResponse.addCookie does not perform any */
- /* operation" */
- {
- PortletURL aurl = portletResp.createActionURL();
- TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_addCookie", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_addDateHeader */
- /* Details: "In a target servlet of a include in the Action phase, */
- /* the method HttpServletResponse.addDateHeader does not perform any */
- /* operation" */
- {
- PortletURL aurl = portletResp.createActionURL();
- TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_addDateHeader", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_addHeader */
- /* Details: "In a target servlet of a include in the Action phase, */
- /* the method HttpServletResponse.addHeader does not perform any */
- /* operation" */
- {
- PortletURL aurl = portletResp.createActionURL();
- TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_addHeader", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_addIntHeader */
- /* Details: "In a target servlet of a include in the Action phase, */
- /* the method HttpServletResponse.addIntHeader does not perform any */
- /* operation" */
- {
- PortletURL aurl = portletResp.createActionURL();
- TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_addIntHeader", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_containsHeader */
- /* Details: "In a target servlet of a include in the Action phase, */
- /* the method HttpServletResponse.containsHeader must return false" */
- {
- PortletURL aurl = portletResp.createActionURL();
- TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_containsHeader", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_encodeRedirectURL1 */
- /* Details: "In a target servlet of a include in the Action phase, */
- /* the method HttpServletResponse.encodeRedirectURL must return null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_encodeRedirectURL1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_encodeRedirectUrl */
- /* Details: "In a target servlet of a include in the Action phase, */
- /* the method HttpServletResponse.encodeRedirectUrl must return null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_encodeRedirectUrl", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_encodeURL1 */
- /* Details: "In a target servlet of a include in the Action phase, */
- /* the method HttpServletResponse.encodeURL must provide the same */
- /* functionality as ActionResponse.encodeURL" */
- {
- PortletURL aurl = portletResp.createActionURL();
- TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_encodeURL1", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_encodeUrl */
- /* Details: "In a target servlet of a include in the Action phase, */
- /* the method HttpServletResponse.encodeUrl must provide the same */
- /* functionality as ActionResponse.encodeURL" */
- {
- PortletURL aurl = portletResp.createActionURL();
- TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_encodeUrl", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_flushBuffer */
- /* Details: "In a target servlet of a include in the Action phase, */
- /* the method HttpServletResponse.flushBuffer does not perform any */
- /* operation" */
- {
- PortletURL aurl = portletResp.createActionURL();
- TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_flushBuffer", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_getBufferSize */
- /* Details: "In a target servlet of a include in the Action phase, */
- /* the method HttpServletResponse.getBufferSize must return 0" */
- {
- PortletURL aurl = portletResp.createActionURL();
- TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_getBufferSize", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_getCharacterEncoding */
- /* Details: "In a target servlet of a include in the Action phase, */
- /* the method HttpServletResponse.getCharacterEncoding must return */
- /* null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_getCharacterEncoding", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_getContentType */
- /* Details: "In a target servlet of a include in the Action phase, */
- /* the method HttpServletResponse.getContentType must return null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_getContentType", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_getLocale */
- /* Details: "In a target servlet of a include in the Action phase, */
- /* the method HttpServletResponse.getLocale must return null" */
- {
- PortletURL aurl = portletResp.createActionURL();
- TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_getLocale", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_getOutputStream */
- /* Details: "In a target servlet of a include in the Action phase, */
- /* the method HttpServletResponse.getOutputStream must return an */
- /* output stream that ignores all input" */
- {
- PortletURL aurl = portletResp.createActionURL();
- TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_getOutputStream", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_getWriter */
- /* Details: "In a target servlet of a include in the Action phase, */
- /* the method HttpServletResponse.getWriter must return a writer that */
- /* ignores all input" */
- {
- PortletURL aurl = portletResp.createActionURL();
- TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_getWriter", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_isCommitted */
- /* Details: "In a target servlet of a include in the Action phase, */
- /* the method HttpServletResponse.isCommitted must return true" */
- {
- PortletURL aurl = portletResp.createActionURL();
- TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_isCommitted", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_reset */
- /* Details: "In a target servlet of a include in the Action phase, */
- /* the method HttpServletResponse.reset does not perform any */
- /* operation" */
- {
- PortletURL aurl = portletResp.createActionURL();
- TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_reset", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_resetBuffer */
- /* Details: "In a target servlet of a include in the Action phase, */
- /* the method HttpServletResponse.resetBuffer does not perform any */
- /* operation" */
- {
- PortletURL aurl = portletResp.createActionURL();
- TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_resetBuffer", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_sendError */
- /* Details: "In a target servlet of a include in the Action phase, */
- /* the method HttpServletResponse.sendError does not perform any */
- /* operation" */
- {
- PortletURL aurl = portletResp.createActionURL();
- TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_sendError", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_sendRedirect */
- /* Details: "In a target servlet of a include in the Action phase, */
- /* the method HttpServletResponse.sendRedirect does not perform any */
- /* operation" */
- {
- PortletURL aurl = portletResp.createActionURL();
- TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_sendRedirect", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_setBufferSize */
- /* Details: "In a target servlet of a include in the Action phase, */
- /* the method HttpServletResponse.setBufferSize does not perform any */
- /* operation" */
- {
- PortletURL aurl = portletResp.createActionURL();
- TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_setBufferSize", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_setCharacterEncoding */
- /* Details: "In a target servlet of a include in the Action phase, */
- /* the method HttpServletResponse.setCharacterEncoding does not */
- /* perform any operation" */
- {
- PortletURL aurl = portletResp.createActionURL();
- TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_setCharacterEncoding", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_setContentLength */
- /* Details: "In a target servlet of a include in the Action phase, */
- /* the method HttpServletResponse.setContentLength does not perform */
- /* any operation" */
- {
- PortletURL aurl = portletResp.createActionURL();
- TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_setContentLength", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_setContentType */
- /* Details: "In a target servlet of a include in the Action phase, */
- /* the method HttpServletResponse.setContentType does not perform any */
- /* operation" */
- {
- PortletURL aurl = portletResp.createActionURL();
- TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_setContentType", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_setDateHeader */
- /* Details: "In a target servlet of a include in the Action phase, */
- /* the method HttpServletResponse.setDateHeader does not perform any */
- /* operation" */
- {
- PortletURL aurl = portletResp.createActionURL();
- TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_setDateHeader", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_setHeader */
- /* Details: "In a target servlet of a include in the Action phase, */
- /* the method HttpServletResponse.setHeader does not perform any */
- /* operation" */
- {
- PortletURL aurl = portletResp.createActionURL();
- TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_setHeader", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_setIntHeader */
- /* Details: "In a target servlet of a include in the Action phase, */
- /* the method HttpServletResponse.setIntHeader does not perform any */
- /* operation" */
- {
- PortletURL aurl = portletResp.createActionURL();
- TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_setIntHeader", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_setLocale */
- /* Details: "In a target servlet of a include in the Action phase, */
- /* the method HttpServletResponse.setLocale does not perform any */
- /* operation" */
- {
- PortletURL aurl = portletResp.createActionURL();
- TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_setLocale", aurl);
- tb.writeTo(writer);
- }
-
- /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_setStatus */
- /* Details: "In a target servlet of a include in the Action phase, */
- /* the method HttpServletResponse.setStatus does not perform any */
- /* operation" */
- {
- PortletURL aurl = portletResp.createActionURL();
- TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_setStatus", aurl);
- tb.writeTo(writer);
- }
+ }
+
+ /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_addCookie */
+ /* Details: "In a target servlet of a include in the Action phase, */
+ /* the method HttpServletResponse.addCookie does not perform any */
+ /* operation" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_addCookie", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_addDateHeader */
+ /* Details: "In a target servlet of a include in the Action phase, */
+ /* the method HttpServletResponse.addDateHeader does not perform any */
+ /* operation" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_addDateHeader", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_addHeader */
+ /* Details: "In a target servlet of a include in the Action phase, */
+ /* the method HttpServletResponse.addHeader does not perform any */
+ /* operation" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_addHeader", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_addIntHeader */
+ /* Details: "In a target servlet of a include in the Action phase, */
+ /* the method HttpServletResponse.addIntHeader does not perform any */
+ /* operation" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_addIntHeader", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_containsHeader */
+ /* Details: "In a target servlet of a include in the Action phase, */
+ /* the method HttpServletResponse.containsHeader must return false" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_containsHeader", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_encodeRedirectURL1 */
+ /* Details: "In a target servlet of a include in the Action phase, */
+ /* the method HttpServletResponse.encodeRedirectURL must return null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_encodeRedirectURL1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_encodeRedirectUrl */
+ /* Details: "In a target servlet of a include in the Action phase, */
+ /* the method HttpServletResponse.encodeRedirectUrl must return null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_encodeRedirectUrl", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_encodeURL1 */
+ /* Details: "In a target servlet of a include in the Action phase, */
+ /* the method HttpServletResponse.encodeURL must provide the same */
+ /* functionality as ActionResponse.encodeURL" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_encodeURL1", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_encodeUrl */
+ /* Details: "In a target servlet of a include in the Action phase, */
+ /* the method HttpServletResponse.encodeUrl must provide the same */
+ /* functionality as ActionResponse.encodeURL" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_encodeUrl", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_flushBuffer */
+ /* Details: "In a target servlet of a include in the Action phase, */
+ /* the method HttpServletResponse.flushBuffer does not perform any */
+ /* operation" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_flushBuffer", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_getBufferSize */
+ /* Details: "In a target servlet of a include in the Action phase, */
+ /* the method HttpServletResponse.getBufferSize must return 0" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_getBufferSize", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_getCharacterEncoding */
+ /* Details: "In a target servlet of a include in the Action phase, */
+ /* the method HttpServletResponse.getCharacterEncoding must return */
+ /* null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_getCharacterEncoding", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_getContentType */
+ /* Details: "In a target servlet of a include in the Action phase, */
+ /* the method HttpServletResponse.getContentType must return null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_getContentType", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_getLocale */
+ /* Details: "In a target servlet of a include in the Action phase, */
+ /* the method HttpServletResponse.getLocale must return null" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_getLocale", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_getOutputStream */
+ /* Details: "In a target servlet of a include in the Action phase, */
+ /* the method HttpServletResponse.getOutputStream must return an */
+ /* output stream that ignores all input" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_getOutputStream", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_getWriter */
+ /* Details: "In a target servlet of a include in the Action phase, */
+ /* the method HttpServletResponse.getWriter must return a writer that */
+ /* ignores all input" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_getWriter", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_isCommitted */
+ /* Details: "In a target servlet of a include in the Action phase, */
+ /* the method HttpServletResponse.isCommitted must return true" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_isCommitted", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_reset */
+ /* Details: "In a target servlet of a include in the Action phase, */
+ /* the method HttpServletResponse.reset does not perform any */
+ /* operation" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_reset", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_resetBuffer */
+ /* Details: "In a target servlet of a include in the Action phase, */
+ /* the method HttpServletResponse.resetBuffer does not perform any */
+ /* operation" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_resetBuffer", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_sendError */
+ /* Details: "In a target servlet of a include in the Action phase, */
+ /* the method HttpServletResponse.sendError does not perform any */
+ /* operation" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_sendError", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_sendRedirect */
+ /* Details: "In a target servlet of a include in the Action phase, */
+ /* the method HttpServletResponse.sendRedirect does not perform any */
+ /* operation" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_sendRedirect", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_setBufferSize */
+ /* Details: "In a target servlet of a include in the Action phase, */
+ /* the method HttpServletResponse.setBufferSize does not perform any */
+ /* operation" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_setBufferSize", aurl);
+ tb.writeTo(writer);
+ }
+ /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_setCharacterEncoding */
+ /* Details: "In a target servlet of a include in the Action phase, */
+ /* the method HttpServletResponse.setCharacterEncoding does not */
+ /* perform any operation" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_setCharacterEncoding", aurl);
+ tb.writeTo(writer);
}
+
+ /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_setContentLength */
+ /* Details: "In a target servlet of a include in the Action phase, */
+ /* the method HttpServletResponse.setContentLength does not perform */
+ /* any operation" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_setContentLength", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_setContentType */
+ /* Details: "In a target servlet of a include in the Action phase, */
+ /* the method HttpServletResponse.setContentType does not perform any */
+ /* operation" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_setContentType", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_setDateHeader */
+ /* Details: "In a target servlet of a include in the Action phase, */
+ /* the method HttpServletResponse.setDateHeader does not perform any */
+ /* operation" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_setDateHeader", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_setHeader */
+ /* Details: "In a target servlet of a include in the Action phase, */
+ /* the method HttpServletResponse.setHeader does not perform any */
+ /* operation" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_setHeader", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_setIntHeader */
+ /* Details: "In a target servlet of a include in the Action phase, */
+ /* the method HttpServletResponse.setIntHeader does not perform any */
+ /* operation" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_setIntHeader", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_setLocale */
+ /* Details: "In a target servlet of a include in the Action phase, */
+ /* the method HttpServletResponse.setLocale does not perform any */
+ /* operation" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_setLocale", aurl);
+ tb.writeTo(writer);
+ }
+
+ /* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_setStatus */
+ /* Details: "In a target servlet of a include in the Action phase, */
+ /* the method HttpServletResponse.setStatus does not perform any */
+ /* operation" */
+ {
+ PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
+ TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletActionResponse_setStatus", aurl);
+ tb.writeTo(writer);
+ }
+
}
}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/f3bdabcd/portlet-tck_3.0/V2DispatcherReqRespTests4/src/main/java/javax/portlet/tck/portlets/DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2DispatcherReqRespTests4/src/main/java/javax/portlet/tck/portlets/DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest.java b/portlet-tck_3.0/V2DispatcherReqRespTests4/src/main/java/javax/portlet/tck/portlets/DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest.java
index 1290d35..1ebfe97 100644
--- a/portlet-tck_3.0/V2DispatcherReqRespTests4/src/main/java/javax/portlet/tck/portlets/DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest.java
+++ b/portlet-tck_3.0/V2DispatcherReqRespTests4/src/main/java/javax/portlet/tck/portlets/DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest.java
@@ -66,23 +66,12 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest impleme
throws PortletException, IOException {
LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+ portletResp.setRenderParameters(portletReq.getParameterMap());
long tid = Thread.currentThread().getId();
portletReq.setAttribute(THREADID_ATTR, tid);
StringWriter writer = new StringWriter();
- // Set parameter for: DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest
- portletResp.setRenderParameter(PARM_PREFIX + "V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getParameter", "Value");
-
- // Set parameter for: DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest
- portletResp.setRenderParameter(PARM_PREFIX + "V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getParameterMap", "Value");
-
- // Set parameter for: DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest
- portletResp.setRenderParameter(PARM_PREFIX + "V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getParameterNames", "Value");
-
- // Set parameter for: DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest
- portletResp.setRenderParameter(PARM_PREFIX + "V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getParameterValues", "Value");
-
QName eventQName = new QName(TCKNAMESPACE,
"DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest");
portletResp.setEvent(eventQName, "Hi!");
@@ -116,6 +105,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest impleme
/* functionality as EventRequest.getAttribute" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getAttribute", aurl);
tb.writeTo(writer);
}
@@ -126,6 +116,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest impleme
/* functionality as EventRequest.getAttributeNames" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getAttributeNames", aurl);
tb.writeTo(writer);
}
@@ -136,6 +127,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest impleme
/* functionality as EventRequest.getAuthType" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getAuthType", aurl);
tb.writeTo(writer);
}
@@ -145,6 +137,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest impleme
/* method HttpServletRequest.getCharacterEncoding must return null" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getCharacterEncoding", aurl);
tb.writeTo(writer);
}
@@ -154,6 +147,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest impleme
/* method HttpServletRequest.getContentLength must return 0" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getContentLength", aurl);
tb.writeTo(writer);
}
@@ -163,6 +157,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest impleme
/* method HttpServletRequest.getContentType must return null" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getContentType", aurl);
tb.writeTo(writer);
}
@@ -173,6 +168,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest impleme
/* functionality as EventRequest.getContextPath" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getContextPath", aurl);
tb.writeTo(writer);
}
@@ -183,6 +179,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest impleme
/* functionality as EventRequest.getCookies" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getCookies", aurl);
tb.writeTo(writer);
}
@@ -194,6 +191,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest impleme
/* corresponding header name" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getDateHeader", aurl);
tb.writeTo(writer);
}
@@ -205,6 +203,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest impleme
/* corresponding header name" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getHeader", aurl);
tb.writeTo(writer);
}
@@ -216,6 +215,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest impleme
/* EventRequest.getPropertyNames" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getHeaderNames", aurl);
tb.writeTo(writer);
}
@@ -227,6 +227,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest impleme
/* corresponding header name" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getHeaders", aurl);
tb.writeTo(writer);
}
@@ -236,6 +237,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest impleme
/* method HttpServletRequest.getInputStream must return null" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getInputStream", aurl);
tb.writeTo(writer);
}
@@ -247,6 +249,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest impleme
/* corresponding header name" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getIntHeader", aurl);
tb.writeTo(writer);
}
@@ -256,6 +259,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest impleme
/* method HttpServletRequest.getLocalAddr must return null" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getLocalAddr", aurl);
tb.writeTo(writer);
}
@@ -265,6 +269,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest impleme
/* method HttpServletRequest.getLocalName must return null" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getLocalName", aurl);
tb.writeTo(writer);
}
@@ -274,6 +279,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest impleme
/* method HttpServletRequest.getLocalPort must return 0" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getLocalPort", aurl);
tb.writeTo(writer);
}
@@ -284,6 +290,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest impleme
/* functionality as EventRequest.getLocale" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getLocale", aurl);
tb.writeTo(writer);
}
@@ -294,6 +301,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest impleme
/* functionality as EventRequest.getLocales" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getLocales", aurl);
tb.writeTo(writer);
}
@@ -304,46 +312,99 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest impleme
/* functionality as EventRequest.getMethod" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getMethod", aurl);
tb.writeTo(writer);
}
+ // TestSetupLink for: DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest
+ {
+ String val = portletReq.getParameter(PARM_PREFIX + "V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getParameter");
+ if (val == null) {
+ PortletURL rurl = ((RenderResponse)portletResp).createRenderURL();
+ rurl.setParameters(portletReq.getPrivateParameterMap());
+ rurl.setParameter(PARM_PREFIX + "V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getParameter", "Value");
+ TestSetupLink tl = new TestSetupLink("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getParameter", rurl);
+ tl.writeTo(writer);
+ }
+ }
+
/* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getParameter */
/* Details: "In a target servlet of a include in the Event phase, the */
/* method HttpServletRequest.getParameter must provide the same */
/* functionality as EventRequest.getParameter" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getParameter", aurl);
tb.writeTo(writer);
}
+ // TestSetupLink for: DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest
+ {
+ String val = portletReq.getParameter(PARM_PREFIX + "V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getParameterMap");
+ if (val == null) {
+ PortletURL rurl = ((RenderResponse)portletResp).createRenderURL();
+ rurl.setParameters(portletReq.getPrivateParameterMap());
+ rurl.setParameter(PARM_PREFIX + "V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getParameterMap", "Value");
+ TestSetupLink tl = new TestSetupLink("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getParameterMap", rurl);
+ tl.writeTo(writer);
+ }
+ }
+
/* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getParameterMap */
/* Details: "In a target servlet of a include in the Event phase, the */
/* method HttpServletRequest.getParameterMap must provide the same */
/* functionality as EventRequest.getParameterMap" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getParameterMap", aurl);
tb.writeTo(writer);
}
+ // TestSetupLink for: DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest
+ {
+ String val = portletReq.getParameter(PARM_PREFIX + "V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getParameterNames");
+ if (val == null) {
+ PortletURL rurl = ((RenderResponse)portletResp).createRenderURL();
+ rurl.setParameters(portletReq.getPrivateParameterMap());
+ rurl.setParameter(PARM_PREFIX + "V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getParameterNames", "Value");
+ TestSetupLink tl = new TestSetupLink("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getParameterNames", rurl);
+ tl.writeTo(writer);
+ }
+ }
+
/* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getParameterNames */
/* Details: "In a target servlet of a include in the Event phase, the */
/* method HttpServletRequest.getParameterNames must provide the same */
/* functionality as EventRequest.getParameterNames" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getParameterNames", aurl);
tb.writeTo(writer);
}
+ // TestSetupLink for: DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest
+ {
+ String val = portletReq.getParameter(PARM_PREFIX + "V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getParameterValues");
+ if (val == null) {
+ PortletURL rurl = ((RenderResponse)portletResp).createRenderURL();
+ rurl.setParameters(portletReq.getPrivateParameterMap());
+ rurl.setParameter(PARM_PREFIX + "V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getParameterValues", "Value");
+ TestSetupLink tl = new TestSetupLink("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getParameterValues", rurl);
+ tl.writeTo(writer);
+ }
+ }
+
/* TestCase: V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getParameterValues */
/* Details: "In a target servlet of a include in the Event phase, the */
/* method HttpServletRequest.getParameterValues must provide the same */
/* functionality as EventRequest.getParameterValues" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getParameterValues", aurl);
tb.writeTo(writer);
}
@@ -354,6 +415,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest impleme
/* to the path used to obtain the PortletRequestDispatcher" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getPathInfo", aurl);
tb.writeTo(writer);
}
@@ -365,6 +427,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest impleme
/* PortletRequestDispatcher" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getPathTranslated", aurl);
tb.writeTo(writer);
}
@@ -374,6 +437,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest impleme
/* method HttpServletRequest.getProtocol must return \"HTTP/1.1\"" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getProtocol", aurl);
tb.writeTo(writer);
}
@@ -385,6 +449,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest impleme
/* PortletRequestDispatcher" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getQueryString", aurl);
tb.writeTo(writer);
}
@@ -394,6 +459,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest impleme
/* method HttpServletRequest.getReader must return null" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getReader", aurl);
tb.writeTo(writer);
}
@@ -403,6 +469,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest impleme
/* method HttpServletRequest.getRealPath must return null" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getRealPath", aurl);
tb.writeTo(writer);
}
@@ -412,6 +479,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest impleme
/* method HttpServletRequest.getRemoteAddr must return null" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getRemoteAddr", aurl);
tb.writeTo(writer);
}
@@ -421,6 +489,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest impleme
/* method HttpServletRequest.getRemoteHost must return null" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getRemoteHost", aurl);
tb.writeTo(writer);
}
@@ -430,6 +499,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest impleme
/* method HttpServletRequest.getRemotePort must return 0" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getRemotePort", aurl);
tb.writeTo(writer);
}
@@ -440,6 +510,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest impleme
/* functionality as EventRequest.getRemoteUser" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getRemoteUser", aurl);
tb.writeTo(writer);
}
@@ -450,6 +521,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest impleme
/* functionality as defined in the servlet specification" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getRequestDispatcher", aurl);
tb.writeTo(writer);
}
@@ -461,6 +533,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest impleme
/* PortletRequestDispatcher" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getRequestURI", aurl);
tb.writeTo(writer);
}
@@ -470,6 +543,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest impleme
/* method HttpServletRequest.getRequestURL must return null" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getRequestURL", aurl);
tb.writeTo(writer);
}
@@ -480,6 +554,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest impleme
/* same functionality as EventRequest.getRequestedSessionId" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getRequestedSessionId", aurl);
tb.writeTo(writer);
}
@@ -490,6 +565,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest impleme
/* functionality as EventRequest.getScheme" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getScheme", aurl);
tb.writeTo(writer);
}
@@ -500,6 +576,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest impleme
/* functionality as EventRequest.getServerName" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getServerName", aurl);
tb.writeTo(writer);
}
@@ -510,6 +587,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest impleme
/* functionality as EventRequest.getServerPort" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getServerPort", aurl);
tb.writeTo(writer);
}
@@ -521,6 +599,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest impleme
/* PortletRequestDispatcher" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getServletPath", aurl);
tb.writeTo(writer);
}
@@ -532,6 +611,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest impleme
/* EventRequest.getPortletSession(APPLICATION_SCOPE)" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getSession", aurl);
tb.writeTo(writer);
}
@@ -542,6 +622,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest impleme
/* functionality as EventRequest.getUserPrincipal" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_getUserPrincipal", aurl);
tb.writeTo(writer);
}
@@ -552,6 +633,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest impleme
/* provide functionality as defined in the servlet specification" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_isRequestedSessionIdFromCookie", aurl);
tb.writeTo(writer);
}
@@ -562,6 +644,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest impleme
/* functionality as defined in the servlet specification" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_isRequestedSessionIdFromURL1", aurl);
tb.writeTo(writer);
}
@@ -572,6 +655,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest impleme
/* functionality as defined in the servlet specification" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_isRequestedSessionIdFromUrl", aurl);
tb.writeTo(writer);
}
@@ -582,6 +666,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest impleme
/* the same functionality as EventRequest.isRequestedSessionIdValid" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_isRequestedSessionIdValid", aurl);
tb.writeTo(writer);
}
@@ -592,6 +677,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest impleme
/* functionality as EventRequest.isSecure" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_isSecure", aurl);
tb.writeTo(writer);
}
@@ -602,6 +688,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest impleme
/* functionality as EventRequest.isUserInRole" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_isUserInRole", aurl);
tb.writeTo(writer);
}
@@ -612,6 +699,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest impleme
/* functionality as EventRequest.removeAttribute" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_removeAttribute", aurl);
tb.writeTo(writer);
}
@@ -622,6 +710,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest impleme
/* functionality as EventRequest.setAttribute" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_setAttribute", aurl);
tb.writeTo(writer);
}
@@ -632,6 +721,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest impleme
/* any operation" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_setCharacterEncoding", aurl);
tb.writeTo(writer);
}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/f3bdabcd/portlet-tck_3.0/V2DispatcherReqRespTests4/src/main/java/javax/portlet/tck/portlets/DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2DispatcherReqRespTests4/src/main/java/javax/portlet/tck/portlets/DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_event.java b/portlet-tck_3.0/V2DispatcherReqRespTests4/src/main/java/javax/portlet/tck/portlets/DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_event.java
index 43c480c..df8f075 100644
--- a/portlet-tck_3.0/V2DispatcherReqRespTests4/src/main/java/javax/portlet/tck/portlets/DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_event.java
+++ b/portlet-tck_3.0/V2DispatcherReqRespTests4/src/main/java/javax/portlet/tck/portlets/DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_event.java
@@ -89,6 +89,8 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest_event i
LOGGER.entering(LOG_CLASS, "event companion processEvent");
+ portletResp.setRenderParameters(portletReq);
+
long tid = Thread.currentThread().getId();
portletReq.setAttribute(THREADID_ATTR, tid);
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/f3bdabcd/portlet-tck_3.0/V2DispatcherReqRespTests4/src/main/java/javax/portlet/tck/portlets/DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2DispatcherReqRespTests4/src/main/java/javax/portlet/tck/portlets/DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse.java b/portlet-tck_3.0/V2DispatcherReqRespTests4/src/main/java/javax/portlet/tck/portlets/DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse.java
index 6347e34..1b7d4f5 100644
--- a/portlet-tck_3.0/V2DispatcherReqRespTests4/src/main/java/javax/portlet/tck/portlets/DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse.java
+++ b/portlet-tck_3.0/V2DispatcherReqRespTests4/src/main/java/javax/portlet/tck/portlets/DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse.java
@@ -66,6 +66,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse implem
throws PortletException, IOException {
LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
+ portletResp.setRenderParameters(portletReq.getParameterMap());
long tid = Thread.currentThread().getId();
portletReq.setAttribute(THREADID_ATTR, tid);
@@ -104,6 +105,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse implem
/* operation" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse_addCookie", aurl);
tb.writeTo(writer);
}
@@ -114,6 +116,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse implem
/* operation" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse_addDateHeader", aurl);
tb.writeTo(writer);
}
@@ -124,6 +127,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse implem
/* operation" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse_addHeader", aurl);
tb.writeTo(writer);
}
@@ -134,6 +138,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse implem
/* operation" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse_addIntHeader", aurl);
tb.writeTo(writer);
}
@@ -143,6 +148,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse implem
/* method HttpServletResponse.containsHeader must return false" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse_containsHeader", aurl);
tb.writeTo(writer);
}
@@ -152,6 +158,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse implem
/* method HttpServletResponse.encodeRedirectURL must return null" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse_encodeRedirectURL1", aurl);
tb.writeTo(writer);
}
@@ -161,6 +168,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse implem
/* method HttpServletResponse.encodeRedirectUrl must return null" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse_encodeRedirectUrl", aurl);
tb.writeTo(writer);
}
@@ -171,6 +179,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse implem
/* functionality as EventResponse.encodeURL" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse_encodeURL1", aurl);
tb.writeTo(writer);
}
@@ -181,6 +190,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse implem
/* functionality as EventResponse.encodeURL" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse_encodeUrl", aurl);
tb.writeTo(writer);
}
@@ -191,6 +201,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse implem
/* operation" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse_flushBuffer", aurl);
tb.writeTo(writer);
}
@@ -200,6 +211,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse implem
/* method HttpServletResponse.getBufferSize must return 0" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse_getBufferSize", aurl);
tb.writeTo(writer);
}
@@ -209,6 +221,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse implem
/* method HttpServletResponse.getCharacterEncoding must return null" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse_getCharacterEncoding", aurl);
tb.writeTo(writer);
}
@@ -218,6 +231,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse implem
/* method HttpServletResponse.getContentType must return null" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse_getContentType", aurl);
tb.writeTo(writer);
}
@@ -227,6 +241,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse implem
/* method HttpServletResponse.getLocale must return null" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse_getLocale", aurl);
tb.writeTo(writer);
}
@@ -237,6 +252,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse implem
/* stream that ignores all input" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse_getOutputStream", aurl);
tb.writeTo(writer);
}
@@ -247,6 +263,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse implem
/* ignores all input" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse_getWriter", aurl);
tb.writeTo(writer);
}
@@ -256,6 +273,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse implem
/* method HttpServletResponse.isCommitted must return true" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse_isCommitted", aurl);
tb.writeTo(writer);
}
@@ -265,6 +283,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse implem
/* method HttpServletResponse.reset does not perform any operation" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse_reset", aurl);
tb.writeTo(writer);
}
@@ -275,6 +294,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse implem
/* operation" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse_resetBuffer", aurl);
tb.writeTo(writer);
}
@@ -285,6 +305,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse implem
/* operation" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse_sendError", aurl);
tb.writeTo(writer);
}
@@ -295,6 +316,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse implem
/* operation" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse_sendRedirect", aurl);
tb.writeTo(writer);
}
@@ -305,6 +327,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse implem
/* operation" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse_setBufferSize", aurl);
tb.writeTo(writer);
}
@@ -315,6 +338,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse implem
/* any operation" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse_setCharacterEncoding", aurl);
tb.writeTo(writer);
}
@@ -325,6 +349,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse implem
/* operation" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse_setContentLength", aurl);
tb.writeTo(writer);
}
@@ -335,6 +360,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse implem
/* operation" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse_setContentType", aurl);
tb.writeTo(writer);
}
@@ -345,6 +371,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse implem
/* operation" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse_setDateHeader", aurl);
tb.writeTo(writer);
}
@@ -355,6 +382,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse implem
/* operation" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse_setHeader", aurl);
tb.writeTo(writer);
}
@@ -365,6 +393,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse implem
/* operation" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse_setIntHeader", aurl);
tb.writeTo(writer);
}
@@ -375,6 +404,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse implem
/* operation" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse_setLocale", aurl);
tb.writeTo(writer);
}
@@ -385,6 +415,7 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse implem
/* operation" */
{
PortletURL aurl = portletResp.createActionURL();
+ aurl.setParameters(portletReq.getPrivateParameterMap());
TestButton tb = new TestButton("V2DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse_setStatus", aurl);
tb.writeTo(writer);
}
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/f3bdabcd/portlet-tck_3.0/V2DispatcherReqRespTests4/src/main/java/javax/portlet/tck/portlets/DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse_event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2DispatcherReqRespTests4/src/main/java/javax/portlet/tck/portlets/DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse_event.java b/portlet-tck_3.0/V2DispatcherReqRespTests4/src/main/java/javax/portlet/tck/portlets/DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse_event.java
index 6983160..03fc546 100644
--- a/portlet-tck_3.0/V2DispatcherReqRespTests4/src/main/java/javax/portlet/tck/portlets/DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse_event.java
+++ b/portlet-tck_3.0/V2DispatcherReqRespTests4/src/main/java/javax/portlet/tck/portlets/DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse_event.java
@@ -89,6 +89,8 @@ public class DispatcherReqRespTests4_SPEC2_19_IncludeServletEventResponse_event
LOGGER.entering(LOG_CLASS, "event companion processEvent");
+ portletResp.setRenderParameters(portletReq);
+
long tid = Thread.currentThread().getId();
portletReq.setAttribute(THREADID_ATTR, tid);