portals-pluto-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From msnickl...@apache.org
Subject [12/63] [abbrv] Moved filter test cases to proper filter method. Added keyword "Api" to test case names whose definitions were derived from the API documentation to allow targeted test runs for that group of tests.
Date Mon, 01 Sep 2014 13:29:20 GMT
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_StateAwareResponse_ApiAction.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_StateAwareResponse_ApiAction.java b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_StateAwareResponse_ApiAction.java
new file mode 100644
index 0000000..7a97c49
--- /dev/null
+++ b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_StateAwareResponse_ApiAction.java
@@ -0,0 +1,1089 @@
+/*  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+
+package javax.portlet.tck.portlets;
+
+import java.io.*;
+import java.util.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.xml.namespace.QName;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+import static javax.portlet.PortletSession.*;
+import static javax.portlet.ResourceURL.*;
+
+/**
+ * This portlet implements several test cases for the JSR 362 TCK. The test case names
+ * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the 
+ * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ *
+ * This is the main portlet for the test cases. If the test cases call for events, this portlet
+ * will initiate the events, but not process them. The processing is done in the companion 
+ * portlet ResponseTests_StateAwareResponse_ApiAction_event
+ *
+ */
+public class ResponseTests_StateAwareResponse_ApiAction implements Portlet, ResourceServingPortlet {
+   private static final String LOG_CLASS = 
+         ResponseTests_StateAwareResponse_ApiAction.class.getName();
+   private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+   
+   private PortletConfig portletConfig = null;
+
+   @Override
+   public void init(PortletConfig config) throws PortletException {
+      this.portletConfig = config;
+   }
+
+   @Override
+   public void destroy() {
+   }
+
+   @Override
+   public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+         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();
+
+      JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+      // Create result objects for the tests
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setWindowState1 */
+      /* Details: "Method setWindowState(WindowState): Sets the WindowState   */
+      /* to the specified value"                                              */
+      TestResult tr0 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETWINDOWSTATE1);
+      /* TODO: implement test */
+      tr0.appendTcDetail("Not implemented.");
+      tr0.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setWindowState2 */
+      /* Details: "Method setWindowState(WindowState): Throws                 */
+      /* WindowStateException if the portlet cannot switch to the specified   */
+      /* WindowState"                                                         */
+      TestResult tr1 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETWINDOWSTATE2);
+      /* TODO: implement test */
+      tr1.appendTcDetail("Not implemented.");
+      tr1.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setWindowState3 */
+      /* Details: "Method setWindowState(WindowState): Throws                 */
+      /* IllegalStateException if the method is invoked after the             */
+      /* sendRedirect method has been called"                                 */
+      TestResult tr2 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETWINDOWSTATE3);
+      /* TODO: implement test */
+      tr2.appendTcDetail("Not implemented.");
+      tr2.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setPortletMode1 */
+      /* Details: "Method setPortletMode(PortletMode): Sets the PortletMode   */
+      /* to the specified value"                                              */
+      TestResult tr3 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETPORTLETMODE1);
+      /* TODO: implement test */
+      tr3.appendTcDetail("Not implemented.");
+      tr3.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setPortletMode2 */
+      /* Details: "Method setPortletMode(PortletMode): Throws                 */
+      /* PortletModeException if the portlet cannot switch to the specified   */
+      /* PortletMode"                                                         */
+      TestResult tr4 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETPORTLETMODE2);
+      /* TODO: implement test */
+      tr4.appendTcDetail("Not implemented.");
+      tr4.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setPortletMode3 */
+      /* Details: "Method setPortletMode(PortletMode): Throws                 */
+      /* IllegalStateException if the method is invoked after the             */
+      /* sendRedirect method has been called"                                 */
+      TestResult tr5 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETPORTLETMODE3);
+      /* TODO: implement test */
+      tr5.appendTcDetail("Not implemented.");
+      tr5.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters1 */
+      /* Details: "Method setRenderParameters(java.util.Map): Sets the        */
+      /* render parameter map to the specified value"                         */
+      TestResult tr6 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERS1);
+      /* TODO: implement test */
+      tr6.appendTcDetail("Not implemented.");
+      tr6.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters2 */
+      /* Details: "Method setRenderParameters(java.util.Map): Public render   */
+      /* parameters can be set through the map"                               */
+      TestResult tr7 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERS2);
+      /* TODO: implement test */
+      tr7.appendTcDetail("Not implemented.");
+      tr7.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters3 */
+      /* Details: "Method setRenderParameters(java.util.Map): Private         */
+      /* render parameters can be set through the map"                        */
+      TestResult tr8 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERS3);
+      /* TODO: implement test */
+      tr8.appendTcDetail("Not implemented.");
+      tr8.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters4 */
+      /* Details: "Method setRenderParameters(java.util.Map): Previously      */
+      /* existing private render parameters not contained in the specified    */
+      /* input map are removed"                                               */
+      TestResult tr9 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERS4);
+      /* TODO: implement test */
+      tr9.appendTcDetail("Not implemented.");
+      tr9.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters5 */
+      /* Details: "Method setRenderParameters(java.util.Map): Previously      */
+      /* existing public render parameters not contained in the specified     */
+      /* input map remain unchanged"                                          */
+      TestResult tr10 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERS5);
+      /* TODO: implement test */
+      tr10.appendTcDetail("Not implemented.");
+      tr10.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters6 */
+      /* Details: "Method setRenderParameters(java.util.Map): Parameters      */
+      /* that are set are available in subsequent render requests"            */
+      TestResult tr11 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERS6);
+      /* TODO: implement test */
+      tr11.appendTcDetail("Not implemented.");
+      tr11.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters7 */
+      /* Details: "Method setRenderParameters(java.util.Map): Throws          */
+      /* IllegalArgumentException if the input map is null"                   */
+      TestResult tr12 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERS7);
+      /* TODO: implement test */
+      tr12.appendTcDetail("Not implemented.");
+      tr12.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters8 */
+      /* Details: "Method setRenderParameters(java.util.Map): Throws          */
+      /* IllegalArgumentException if any key in the map is null"              */
+      TestResult tr13 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERS8);
+      /* TODO: implement test */
+      tr13.appendTcDetail("Not implemented.");
+      tr13.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters9 */
+      /* Details: "Method setRenderParameters(java.util.Map): Throws          */
+      /* IllegalArgumentException if any key in the map is the empty string   */
+      /* (\"\") "                                                             */
+      TestResult tr14 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERS9);
+      /* TODO: implement test */
+      tr14.appendTcDetail("Not implemented.");
+      tr14.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters10 */
+      /* Details: "Method setRenderParameters(java.util.Map): Throws          */
+      /* IllegalArgumentException if the values array for any key is null "   */
+      TestResult tr15 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERS10);
+      /* TODO: implement test */
+      tr15.appendTcDetail("Not implemented.");
+      tr15.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters11 */
+      /* Details: "Method setRenderParameters(java.util.Map): Throws          */
+      /* IllegalArgumentException if any element in any values array is       */
+      /* null "                                                               */
+      TestResult tr16 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERS11);
+      /* TODO: implement test */
+      tr16.appendTcDetail("Not implemented.");
+      tr16.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters12 */
+      /* Details: "Method setRenderParameters(java.util.Map): Throws          */
+      /* IllegalStateException if the method is invoked after the             */
+      /* sendRedirect method has been called"                                 */
+      TestResult tr17 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERS12);
+      /* TODO: implement test */
+      tr17.appendTcDetail("Not implemented.");
+      tr17.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA1 */
+      /* Details: "Method setRenderParameter(String, String): Sets the        */
+      /* parameter value for the specified name"                              */
+      TestResult tr18 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERA1);
+      /* TODO: implement test */
+      tr18.appendTcDetail("Not implemented.");
+      tr18.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA2 */
+      /* Details: "Method setRenderParameter(String, String): A private       */
+      /* parameter can be set"                                                */
+      TestResult tr19 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERA2);
+      /* TODO: implement test */
+      tr19.appendTcDetail("Not implemented.");
+      tr19.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA3 */
+      /* Details: "Method setRenderParameter(String, String): A public        */
+      /* parameter can be set"                                                */
+      TestResult tr20 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERA3);
+      /* TODO: implement test */
+      tr20.appendTcDetail("Not implemented.");
+      tr20.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA4 */
+      /* Details: "Method setRenderParameter(String, String): All             */
+      /* previously existing values for the specified name are removed"       */
+      TestResult tr21 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERA4);
+      /* TODO: implement test */
+      tr21.appendTcDetail("Not implemented.");
+      tr21.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA5 */
+      /* Details: "Method setRenderParameter(String, String): If the value    */
+      /* is null, all values for the specified name are removed"              */
+      TestResult tr22 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERA5);
+      /* TODO: implement test */
+      tr22.appendTcDetail("Not implemented.");
+      tr22.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA6 */
+      /* Details: "Method setRenderParameter(String, String): Parameters      */
+      /* that are set are available in subsequent render requests"            */
+      TestResult tr23 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERA6);
+      /* TODO: implement test */
+      tr23.appendTcDetail("Not implemented.");
+      tr23.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA7 */
+      /* Details: "Method setRenderParameter(String, String): Throws          */
+      /* IllegalArgumentException if the name is null"                        */
+      TestResult tr24 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERA7);
+      /* TODO: implement test */
+      tr24.appendTcDetail("Not implemented.");
+      tr24.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA8 */
+      /* Details: "Method setRenderParameter(String, String): Throws          */
+      /* IllegalStateException if the method is invoked after the             */
+      /* sendRedirect method has been called"                                 */
+      TestResult tr25 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERA8);
+      /* TODO: implement test */
+      tr25.appendTcDetail("Not implemented.");
+      tr25.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterB1 */
+      /* Details: "Method setRenderParameter(String, String[]): Sets the      */
+      /* parameter values for the specified name."                            */
+      TestResult tr26 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERB1);
+      /* TODO: implement test */
+      tr26.appendTcDetail("Not implemented.");
+      tr26.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterB2 */
+      /* Details: "Method setRenderParameter(String, String[]): All           */
+      /* existing values are removed"                                         */
+      TestResult tr27 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERB2);
+      /* TODO: implement test */
+      tr27.appendTcDetail("Not implemented.");
+      tr27.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterB3 */
+      /* Details: "Method setRenderParameter(String, String[]): Parameters    */
+      /* that are set are available in subsequent render requests"            */
+      TestResult tr28 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERB3);
+      /* TODO: implement test */
+      tr28.appendTcDetail("Not implemented.");
+      tr28.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterB4 */
+      /* Details: "Method setRenderParameter(String, String[]): Throws        */
+      /* IllegalArgumentException if the name is null"                        */
+      TestResult tr29 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERB4);
+      /* TODO: implement test */
+      tr29.appendTcDetail("Not implemented.");
+      tr29.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterB5 */
+      /* Details: "Method setRenderParameter(String, String[]): Throws        */
+      /* IllegalArgumentException if the values array is null"                */
+      TestResult tr30 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERB5);
+      /* TODO: implement test */
+      tr30.appendTcDetail("Not implemented.");
+      tr30.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterB6 */
+      /* Details: "Method setRenderParameter(String, String[]): Throws        */
+      /* IllegalStateException if the method is invoked after the             */
+      /* sendRedirect method has been called"                                 */
+      TestResult tr31 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETRENDERPARAMETERB6);
+      /* TODO: implement test */
+      tr31.appendTcDetail("Not implemented.");
+      tr31.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setEventA1    */
+      /* Details: "Method setEvent(javax.xml.namespace.QName,                 */
+      /* java.io.Serializable): Publishes an event with the specified name    */
+      /* and payload"                                                         */
+      TestResult tr32 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETEVENTA1);
+      /* TODO: implement test */
+      tr32.appendTcDetail("Not implemented.");
+      tr32.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setEventA2    */
+      /* Details: "Method setEvent(javax.xml.namespace.QName,                 */
+      /* java.io.Serializable): Throws IllegalArgumentException if the name   */
+      /* is null"                                                             */
+      TestResult tr33 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETEVENTA2);
+      /* TODO: implement test */
+      tr33.appendTcDetail("Not implemented.");
+      tr33.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setEventA3    */
+      /* Details: "Method setEvent(javax.xml.namespace.QName,                 */
+      /* java.io.Serializable): Throws IllegalArgumentException if the        */
+      /* value is not serializable"                                           */
+      TestResult tr34 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETEVENTA3);
+      /* TODO: implement test */
+      tr34.appendTcDetail("Not implemented.");
+      tr34.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setEventA4    */
+      /* Details: "Method setEvent(javax.xml.namespace.QName,                 */
+      /* java.io.Serializable): Throws IllegalArgumentException if the        */
+      /* value does not have a valid JAXB binding"                            */
+      TestResult tr35 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETEVENTA4);
+      /* TODO: implement test */
+      tr35.appendTcDetail("Not implemented.");
+      tr35.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setEventA5    */
+      /* Details: "Method setEvent(javax.xml.namespace.QName,                 */
+      /* java.io.Serializable): Throws IllegalArgumentException if the        */
+      /* value object type is not as specified in the deployment              */
+      /* descriptor"                                                          */
+      TestResult tr36 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETEVENTA5);
+      /* TODO: implement test */
+      tr36.appendTcDetail("Not implemented.");
+      tr36.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setEventB1    */
+      /* Details: "Method setEvent(String, java.io.Serializable): Publishes   */
+      /* an event with the specified name and payload"                        */
+      TestResult tr37 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETEVENTB1);
+      /* TODO: implement test */
+      tr37.appendTcDetail("Not implemented.");
+      tr37.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setEventB2    */
+      /* Details: "Method setEvent(String, java.io.Serializable): Throws      */
+      /* IllegalArgumentException if the name is null"                        */
+      TestResult tr38 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETEVENTB2);
+      /* TODO: implement test */
+      tr38.appendTcDetail("Not implemented.");
+      tr38.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setEventB3    */
+      /* Details: "Method setEvent(String, java.io.Serializable): Throws      */
+      /* IllegalArgumentException if the value is not serializable"           */
+      TestResult tr39 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETEVENTB3);
+      /* TODO: implement test */
+      tr39.appendTcDetail("Not implemented.");
+      tr39.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setEventB4    */
+      /* Details: "Method setEvent(String, java.io.Serializable): Throws      */
+      /* IllegalArgumentException if the value does not have a valid JAXB     */
+      /* binding"                                                             */
+      TestResult tr40 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETEVENTB4);
+      /* TODO: implement test */
+      tr40.appendTcDetail("Not implemented.");
+      tr40.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setEventB5    */
+      /* Details: "Method setEvent(String, java.io.Serializable): Throws      */
+      /* IllegalArgumentException if the value object type is not as          */
+      /* specified in the deployment descriptor"                              */
+      TestResult tr41 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_SETEVENTB5);
+      /* TODO: implement test */
+      tr41.appendTcDetail("Not implemented.");
+      tr41.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_getRenderParameterMap1 */
+      /* Details: "Method getRenderParameterMap(): Returns a map of the       */
+      /* render parameters currently set on the response"                     */
+      TestResult tr42 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_GETRENDERPARAMETERMAP1);
+      /* TODO: implement test */
+      tr42.appendTcDetail("Not implemented.");
+      tr42.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_getRenderParameterMap2 */
+      /* Details: "Method getRenderParameterMap(): The returned map           */
+      /* contains public render parameters"                                   */
+      TestResult tr43 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_GETRENDERPARAMETERMAP2);
+      /* TODO: implement test */
+      tr43.appendTcDetail("Not implemented.");
+      tr43.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_getRenderParameterMap3 */
+      /* Details: "Method getRenderParameterMap(): The returned map           */
+      /* contains private render parameters"                                  */
+      TestResult tr44 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_GETRENDERPARAMETERMAP3);
+      /* TODO: implement test */
+      tr44.appendTcDetail("Not implemented.");
+      tr44.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_getRenderParameterMap4 */
+      /* Details: "Method getRenderParameterMap(): An empty map is returned   */
+      /* if no parameters have been set "                                     */
+      TestResult tr45 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_GETRENDERPARAMETERMAP4);
+      /* TODO: implement test */
+      tr45.appendTcDetail("Not implemented.");
+      tr45.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_getPortletMode1 */
+      /* Details: "Method getPortletMode(): Returns the current PortletMode   */
+      /* for the portlet"                                                     */
+      TestResult tr46 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_GETPORTLETMODE1);
+      /* TODO: implement test */
+      tr46.appendTcDetail("Not implemented.");
+      tr46.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_getPortletMode2 */
+      /* Details: "Method getPortletMode(): Returns null if no PortletMode    */
+      /* has been set"                                                        */
+      TestResult tr47 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_GETPORTLETMODE2);
+      /* TODO: implement test */
+      tr47.appendTcDetail("Not implemented.");
+      tr47.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_getWindowState1 */
+      /* Details: "Method getWindowState(): Returns the current WindowState   */
+      /* for the portlet"                                                     */
+      TestResult tr48 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_GETWINDOWSTATE1);
+      /* TODO: implement test */
+      tr48.appendTcDetail("Not implemented.");
+      tr48.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_getWindowState2 */
+      /* Details: "Method getWindowState(): Returns null if no WindowState    */
+      /* has been set"                                                        */
+      TestResult tr49 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_GETWINDOWSTATE2);
+      /* TODO: implement test */
+      tr49.appendTcDetail("Not implemented.");
+      tr49.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_removePublicRenderParameter1 */
+      /* Details: "Method removePublicRenderParameter(String): Removes the    */
+      /* specified public render parameter"                                   */
+      TestResult tr50 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_REMOVEPUBLICRENDERPARAMETER1);
+      /* TODO: implement test */
+      tr50.appendTcDetail("Not implemented.");
+      tr50.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_removePublicRenderParameter2 */
+      /* Details: "Method removePublicRenderParameter(String): Throws         */
+      /* IllegalArgumentException if the name is null"                        */
+      TestResult tr51 = tcd.getTestResultFailed(V2RESPONSETESTS_STATEAWARERESPONSE_APIACTION_REMOVEPUBLICRENDERPARAMETER2);
+      /* TODO: implement test */
+      tr51.appendTcDetail("Not implemented.");
+      tr51.writeTo(writer);
+
+      portletReq.getPortletSession().setAttribute(
+                   Constants.RESULT_ATTR_PREFIX + "ResponseTests_StateAwareResponse_ApiAction",
+                   writer.toString(), APPLICATION_SCOPE);
+   }
+
+   @Override
+   public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
+         throws PortletException, IOException {
+      LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+
+      long tid = Thread.currentThread().getId();
+      portletReq.setAttribute(THREADID_ATTR, tid);
+
+      PrintWriter writer = portletResp.getWriter();
+
+   }
+
+   @Override
+   public void render(RenderRequest portletReq, RenderResponse portletResp)
+         throws PortletException, IOException {
+      LOGGER.entering(LOG_CLASS, "main portlet render entry");
+
+      long tid = Thread.currentThread().getId();
+      portletReq.setAttribute(THREADID_ATTR, tid);
+
+      PrintWriter writer = portletResp.getWriter();
+
+      PortletSession ps = portletReq.getPortletSession();
+      String msg = (String) ps.getAttribute(RESULT_ATTR_PREFIX + "ResponseTests_StateAwareResponse_ApiAction", APPLICATION_SCOPE);
+      if (msg != null) {
+         writer.write("<p>" + msg + "</p><br/>\n");
+         ps.removeAttribute(RESULT_ATTR_PREFIX + "ResponseTests_StateAwareResponse_ApiAction", APPLICATION_SCOPE);
+      }
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setWindowState1 */
+      /* Details: "Method setWindowState(WindowState): Sets the WindowState   */
+      /* to the specified value"                                              */
+      {
+         PortletURL aurl = portletResp.createActionURL();
+         aurl.setParameters(portletReq.getPrivateParameterMap());
+         TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setWindowState1", aurl);
+         tb.writeTo(writer);
+      }
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setWindowState2 */
+      /* Details: "Method setWindowState(WindowState): Throws                 */
+      /* WindowStateException if the portlet cannot switch to the specified   */
+      /* WindowState"                                                         */
+      {
+         PortletURL aurl = portletResp.createActionURL();
+         aurl.setParameters(portletReq.getPrivateParameterMap());
+         TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setWindowState2", aurl);
+         tb.writeTo(writer);
+      }
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setWindowState3 */
+      /* Details: "Method setWindowState(WindowState): Throws                 */
+      /* IllegalStateException if the method is invoked after the             */
+      /* sendRedirect method has been called"                                 */
+      {
+         PortletURL aurl = portletResp.createActionURL();
+         aurl.setParameters(portletReq.getPrivateParameterMap());
+         TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setWindowState3", aurl);
+         tb.writeTo(writer);
+      }
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setPortletMode1 */
+      /* Details: "Method setPortletMode(PortletMode): Sets the PortletMode   */
+      /* to the specified value"                                              */
+      {
+         PortletURL aurl = portletResp.createActionURL();
+         aurl.setParameters(portletReq.getPrivateParameterMap());
+         TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setPortletMode1", aurl);
+         tb.writeTo(writer);
+      }
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setPortletMode2 */
+      /* Details: "Method setPortletMode(PortletMode): Throws                 */
+      /* PortletModeException if the portlet cannot switch to the specified   */
+      /* PortletMode"                                                         */
+      {
+         PortletURL aurl = portletResp.createActionURL();
+         aurl.setParameters(portletReq.getPrivateParameterMap());
+         TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setPortletMode2", aurl);
+         tb.writeTo(writer);
+      }
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setPortletMode3 */
+      /* Details: "Method setPortletMode(PortletMode): Throws                 */
+      /* IllegalStateException if the method is invoked after the             */
+      /* sendRedirect method has been called"                                 */
+      {
+         PortletURL aurl = portletResp.createActionURL();
+         aurl.setParameters(portletReq.getPrivateParameterMap());
+         TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setPortletMode3", aurl);
+         tb.writeTo(writer);
+      }
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters1 */
+      /* Details: "Method setRenderParameters(java.util.Map): Sets the        */
+      /* render parameter map to the specified value"                         */
+      {
+         PortletURL aurl = portletResp.createActionURL();
+         aurl.setParameters(portletReq.getPrivateParameterMap());
+         TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters1", aurl);
+         tb.writeTo(writer);
+      }
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters2 */
+      /* Details: "Method setRenderParameters(java.util.Map): Public render   */
+      /* parameters can be set through the map"                               */
+      {
+         PortletURL aurl = portletResp.createActionURL();
+         aurl.setParameters(portletReq.getPrivateParameterMap());
+         TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters2", aurl);
+         tb.writeTo(writer);
+      }
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters3 */
+      /* Details: "Method setRenderParameters(java.util.Map): Private         */
+      /* render parameters can be set through the map"                        */
+      {
+         PortletURL aurl = portletResp.createActionURL();
+         aurl.setParameters(portletReq.getPrivateParameterMap());
+         TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters3", aurl);
+         tb.writeTo(writer);
+      }
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters4 */
+      /* Details: "Method setRenderParameters(java.util.Map): Previously      */
+      /* existing private render parameters not contained in the specified    */
+      /* input map are removed"                                               */
+      {
+         PortletURL aurl = portletResp.createActionURL();
+         aurl.setParameters(portletReq.getPrivateParameterMap());
+         TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters4", aurl);
+         tb.writeTo(writer);
+      }
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters5 */
+      /* Details: "Method setRenderParameters(java.util.Map): Previously      */
+      /* existing public render parameters not contained in the specified     */
+      /* input map remain unchanged"                                          */
+      {
+         PortletURL aurl = portletResp.createActionURL();
+         aurl.setParameters(portletReq.getPrivateParameterMap());
+         TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters5", aurl);
+         tb.writeTo(writer);
+      }
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters6 */
+      /* Details: "Method setRenderParameters(java.util.Map): Parameters      */
+      /* that are set are available in subsequent render requests"            */
+      {
+         PortletURL aurl = portletResp.createActionURL();
+         aurl.setParameters(portletReq.getPrivateParameterMap());
+         TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters6", aurl);
+         tb.writeTo(writer);
+      }
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters7 */
+      /* Details: "Method setRenderParameters(java.util.Map): Throws          */
+      /* IllegalArgumentException if the input map is null"                   */
+      {
+         PortletURL aurl = portletResp.createActionURL();
+         aurl.setParameters(portletReq.getPrivateParameterMap());
+         TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters7", aurl);
+         tb.writeTo(writer);
+      }
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters8 */
+      /* Details: "Method setRenderParameters(java.util.Map): Throws          */
+      /* IllegalArgumentException if any key in the map is null"              */
+      {
+         PortletURL aurl = portletResp.createActionURL();
+         aurl.setParameters(portletReq.getPrivateParameterMap());
+         TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters8", aurl);
+         tb.writeTo(writer);
+      }
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters9 */
+      /* Details: "Method setRenderParameters(java.util.Map): Throws          */
+      /* IllegalArgumentException if any key in the map is the empty string   */
+      /* (\"\") "                                                             */
+      {
+         PortletURL aurl = portletResp.createActionURL();
+         aurl.setParameters(portletReq.getPrivateParameterMap());
+         TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters9", aurl);
+         tb.writeTo(writer);
+      }
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters10 */
+      /* Details: "Method setRenderParameters(java.util.Map): Throws          */
+      /* IllegalArgumentException if the values array for any key is null "   */
+      {
+         PortletURL aurl = portletResp.createActionURL();
+         aurl.setParameters(portletReq.getPrivateParameterMap());
+         TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters10", aurl);
+         tb.writeTo(writer);
+      }
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters11 */
+      /* Details: "Method setRenderParameters(java.util.Map): Throws          */
+      /* IllegalArgumentException if any element in any values array is       */
+      /* null "                                                               */
+      {
+         PortletURL aurl = portletResp.createActionURL();
+         aurl.setParameters(portletReq.getPrivateParameterMap());
+         TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters11", aurl);
+         tb.writeTo(writer);
+      }
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters12 */
+      /* Details: "Method setRenderParameters(java.util.Map): Throws          */
+      /* IllegalStateException if the method is invoked after the             */
+      /* sendRedirect method has been called"                                 */
+      {
+         PortletURL aurl = portletResp.createActionURL();
+         aurl.setParameters(portletReq.getPrivateParameterMap());
+         TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameters12", aurl);
+         tb.writeTo(writer);
+      }
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA1 */
+      /* Details: "Method setRenderParameter(String, String): Sets the        */
+      /* parameter value for the specified name"                              */
+      {
+         PortletURL aurl = portletResp.createActionURL();
+         aurl.setParameters(portletReq.getPrivateParameterMap());
+         TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA1", aurl);
+         tb.writeTo(writer);
+      }
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA2 */
+      /* Details: "Method setRenderParameter(String, String): A private       */
+      /* parameter can be set"                                                */
+      {
+         PortletURL aurl = portletResp.createActionURL();
+         aurl.setParameters(portletReq.getPrivateParameterMap());
+         TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA2", aurl);
+         tb.writeTo(writer);
+      }
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA3 */
+      /* Details: "Method setRenderParameter(String, String): A public        */
+      /* parameter can be set"                                                */
+      {
+         PortletURL aurl = portletResp.createActionURL();
+         aurl.setParameters(portletReq.getPrivateParameterMap());
+         TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA3", aurl);
+         tb.writeTo(writer);
+      }
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA4 */
+      /* Details: "Method setRenderParameter(String, String): All             */
+      /* previously existing values for the specified name are removed"       */
+      {
+         PortletURL aurl = portletResp.createActionURL();
+         aurl.setParameters(portletReq.getPrivateParameterMap());
+         TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA4", aurl);
+         tb.writeTo(writer);
+      }
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA5 */
+      /* Details: "Method setRenderParameter(String, String): If the value    */
+      /* is null, all values for the specified name are removed"              */
+      {
+         PortletURL aurl = portletResp.createActionURL();
+         aurl.setParameters(portletReq.getPrivateParameterMap());
+         TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA5", aurl);
+         tb.writeTo(writer);
+      }
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA6 */
+      /* Details: "Method setRenderParameter(String, String): Parameters      */
+      /* that are set are available in subsequent render requests"            */
+      {
+         PortletURL aurl = portletResp.createActionURL();
+         aurl.setParameters(portletReq.getPrivateParameterMap());
+         TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA6", aurl);
+         tb.writeTo(writer);
+      }
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA7 */
+      /* Details: "Method setRenderParameter(String, String): Throws          */
+      /* IllegalArgumentException if the name is null"                        */
+      {
+         PortletURL aurl = portletResp.createActionURL();
+         aurl.setParameters(portletReq.getPrivateParameterMap());
+         TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA7", aurl);
+         tb.writeTo(writer);
+      }
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA8 */
+      /* Details: "Method setRenderParameter(String, String): Throws          */
+      /* IllegalStateException if the method is invoked after the             */
+      /* sendRedirect method has been called"                                 */
+      {
+         PortletURL aurl = portletResp.createActionURL();
+         aurl.setParameters(portletReq.getPrivateParameterMap());
+         TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterA8", aurl);
+         tb.writeTo(writer);
+      }
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterB1 */
+      /* Details: "Method setRenderParameter(String, String[]): Sets the      */
+      /* parameter values for the specified name."                            */
+      {
+         PortletURL aurl = portletResp.createActionURL();
+         aurl.setParameters(portletReq.getPrivateParameterMap());
+         TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterB1", aurl);
+         tb.writeTo(writer);
+      }
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterB2 */
+      /* Details: "Method setRenderParameter(String, String[]): All           */
+      /* existing values are removed"                                         */
+      {
+         PortletURL aurl = portletResp.createActionURL();
+         aurl.setParameters(portletReq.getPrivateParameterMap());
+         TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterB2", aurl);
+         tb.writeTo(writer);
+      }
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterB3 */
+      /* Details: "Method setRenderParameter(String, String[]): Parameters    */
+      /* that are set are available in subsequent render requests"            */
+      {
+         PortletURL aurl = portletResp.createActionURL();
+         aurl.setParameters(portletReq.getPrivateParameterMap());
+         TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterB3", aurl);
+         tb.writeTo(writer);
+      }
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterB4 */
+      /* Details: "Method setRenderParameter(String, String[]): Throws        */
+      /* IllegalArgumentException if the name is null"                        */
+      {
+         PortletURL aurl = portletResp.createActionURL();
+         aurl.setParameters(portletReq.getPrivateParameterMap());
+         TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterB4", aurl);
+         tb.writeTo(writer);
+      }
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterB5 */
+      /* Details: "Method setRenderParameter(String, String[]): Throws        */
+      /* IllegalArgumentException if the values array is null"                */
+      {
+         PortletURL aurl = portletResp.createActionURL();
+         aurl.setParameters(portletReq.getPrivateParameterMap());
+         TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterB5", aurl);
+         tb.writeTo(writer);
+      }
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterB6 */
+      /* Details: "Method setRenderParameter(String, String[]): Throws        */
+      /* IllegalStateException if the method is invoked after the             */
+      /* sendRedirect method has been called"                                 */
+      {
+         PortletURL aurl = portletResp.createActionURL();
+         aurl.setParameters(portletReq.getPrivateParameterMap());
+         TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setRenderParameterB6", aurl);
+         tb.writeTo(writer);
+      }
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setEventA1    */
+      /* Details: "Method setEvent(javax.xml.namespace.QName,                 */
+      /* java.io.Serializable): Publishes an event with the specified name    */
+      /* and payload"                                                         */
+      {
+         PortletURL aurl = portletResp.createActionURL();
+         aurl.setParameters(portletReq.getPrivateParameterMap());
+         TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setEventA1", aurl);
+         tb.writeTo(writer);
+      }
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setEventA2    */
+      /* Details: "Method setEvent(javax.xml.namespace.QName,                 */
+      /* java.io.Serializable): Throws IllegalArgumentException if the name   */
+      /* is null"                                                             */
+      {
+         PortletURL aurl = portletResp.createActionURL();
+         aurl.setParameters(portletReq.getPrivateParameterMap());
+         TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setEventA2", aurl);
+         tb.writeTo(writer);
+      }
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setEventA3    */
+      /* Details: "Method setEvent(javax.xml.namespace.QName,                 */
+      /* java.io.Serializable): Throws IllegalArgumentException if the        */
+      /* value is not serializable"                                           */
+      {
+         PortletURL aurl = portletResp.createActionURL();
+         aurl.setParameters(portletReq.getPrivateParameterMap());
+         TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setEventA3", aurl);
+         tb.writeTo(writer);
+      }
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setEventA4    */
+      /* Details: "Method setEvent(javax.xml.namespace.QName,                 */
+      /* java.io.Serializable): Throws IllegalArgumentException if the        */
+      /* value does not have a valid JAXB binding"                            */
+      {
+         PortletURL aurl = portletResp.createActionURL();
+         aurl.setParameters(portletReq.getPrivateParameterMap());
+         TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setEventA4", aurl);
+         tb.writeTo(writer);
+      }
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setEventA5    */
+      /* Details: "Method setEvent(javax.xml.namespace.QName,                 */
+      /* java.io.Serializable): Throws IllegalArgumentException if the        */
+      /* value object type is not as specified in the deployment              */
+      /* descriptor"                                                          */
+      {
+         PortletURL aurl = portletResp.createActionURL();
+         aurl.setParameters(portletReq.getPrivateParameterMap());
+         TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setEventA5", aurl);
+         tb.writeTo(writer);
+      }
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setEventB1    */
+      /* Details: "Method setEvent(String, java.io.Serializable): Publishes   */
+      /* an event with the specified name and payload"                        */
+      {
+         PortletURL aurl = portletResp.createActionURL();
+         aurl.setParameters(portletReq.getPrivateParameterMap());
+         TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setEventB1", aurl);
+         tb.writeTo(writer);
+      }
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setEventB2    */
+      /* Details: "Method setEvent(String, java.io.Serializable): Throws      */
+      /* IllegalArgumentException if the name is null"                        */
+      {
+         PortletURL aurl = portletResp.createActionURL();
+         aurl.setParameters(portletReq.getPrivateParameterMap());
+         TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setEventB2", aurl);
+         tb.writeTo(writer);
+      }
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setEventB3    */
+      /* Details: "Method setEvent(String, java.io.Serializable): Throws      */
+      /* IllegalArgumentException if the value is not serializable"           */
+      {
+         PortletURL aurl = portletResp.createActionURL();
+         aurl.setParameters(portletReq.getPrivateParameterMap());
+         TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setEventB3", aurl);
+         tb.writeTo(writer);
+      }
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setEventB4    */
+      /* Details: "Method setEvent(String, java.io.Serializable): Throws      */
+      /* IllegalArgumentException if the value does not have a valid JAXB     */
+      /* binding"                                                             */
+      {
+         PortletURL aurl = portletResp.createActionURL();
+         aurl.setParameters(portletReq.getPrivateParameterMap());
+         TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setEventB4", aurl);
+         tb.writeTo(writer);
+      }
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_setEventB5    */
+      /* Details: "Method setEvent(String, java.io.Serializable): Throws      */
+      /* IllegalArgumentException if the value object type is not as          */
+      /* specified in the deployment descriptor"                              */
+      {
+         PortletURL aurl = portletResp.createActionURL();
+         aurl.setParameters(portletReq.getPrivateParameterMap());
+         TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_setEventB5", aurl);
+         tb.writeTo(writer);
+      }
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_getRenderParameterMap1 */
+      /* Details: "Method getRenderParameterMap(): Returns a map of the       */
+      /* render parameters currently set on the response"                     */
+      {
+         PortletURL aurl = portletResp.createActionURL();
+         aurl.setParameters(portletReq.getPrivateParameterMap());
+         TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_getRenderParameterMap1", aurl);
+         tb.writeTo(writer);
+      }
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_getRenderParameterMap2 */
+      /* Details: "Method getRenderParameterMap(): The returned map           */
+      /* contains public render parameters"                                   */
+      {
+         PortletURL aurl = portletResp.createActionURL();
+         aurl.setParameters(portletReq.getPrivateParameterMap());
+         TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_getRenderParameterMap2", aurl);
+         tb.writeTo(writer);
+      }
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_getRenderParameterMap3 */
+      /* Details: "Method getRenderParameterMap(): The returned map           */
+      /* contains private render parameters"                                  */
+      {
+         PortletURL aurl = portletResp.createActionURL();
+         aurl.setParameters(portletReq.getPrivateParameterMap());
+         TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_getRenderParameterMap3", aurl);
+         tb.writeTo(writer);
+      }
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_getRenderParameterMap4 */
+      /* Details: "Method getRenderParameterMap(): An empty map is returned   */
+      /* if no parameters have been set "                                     */
+      {
+         PortletURL aurl = portletResp.createActionURL();
+         aurl.setParameters(portletReq.getPrivateParameterMap());
+         TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_getRenderParameterMap4", aurl);
+         tb.writeTo(writer);
+      }
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_getPortletMode1 */
+      /* Details: "Method getPortletMode(): Returns the current PortletMode   */
+      /* for the portlet"                                                     */
+      {
+         PortletURL aurl = portletResp.createActionURL();
+         aurl.setParameters(portletReq.getPrivateParameterMap());
+         TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_getPortletMode1", aurl);
+         tb.writeTo(writer);
+      }
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_getPortletMode2 */
+      /* Details: "Method getPortletMode(): Returns null if no PortletMode    */
+      /* has been set"                                                        */
+      {
+         PortletURL aurl = portletResp.createActionURL();
+         aurl.setParameters(portletReq.getPrivateParameterMap());
+         TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_getPortletMode2", aurl);
+         tb.writeTo(writer);
+      }
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_getWindowState1 */
+      /* Details: "Method getWindowState(): Returns the current WindowState   */
+      /* for the portlet"                                                     */
+      {
+         PortletURL aurl = portletResp.createActionURL();
+         aurl.setParameters(portletReq.getPrivateParameterMap());
+         TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_getWindowState1", aurl);
+         tb.writeTo(writer);
+      }
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_getWindowState2 */
+      /* Details: "Method getWindowState(): Returns null if no WindowState    */
+      /* has been set"                                                        */
+      {
+         PortletURL aurl = portletResp.createActionURL();
+         aurl.setParameters(portletReq.getPrivateParameterMap());
+         TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_getWindowState2", aurl);
+         tb.writeTo(writer);
+      }
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_removePublicRenderParameter1 */
+      /* Details: "Method removePublicRenderParameter(String): Removes the    */
+      /* specified public render parameter"                                   */
+      {
+         PortletURL aurl = portletResp.createActionURL();
+         aurl.setParameters(portletReq.getPrivateParameterMap());
+         TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_removePublicRenderParameter1", aurl);
+         tb.writeTo(writer);
+      }
+
+      /* TestCase: V2ResponseTests_StateAwareResponse_ApiAction_removePublicRenderParameter2 */
+      /* Details: "Method removePublicRenderParameter(String): Throws         */
+      /* IllegalArgumentException if the name is null"                        */
+      {
+         PortletURL aurl = portletResp.createActionURL();
+         aurl.setParameters(portletReq.getPrivateParameterMap());
+         TestButton tb = new TestButton("V2ResponseTests_StateAwareResponse_ApiAction_removePublicRenderParameter2", aurl);
+         tb.writeTo(writer);
+      }
+
+   }
+
+}


Mime
View raw message