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/09/01 15:29:23 UTC

[15/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.

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_PortletResponse_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_ApiRender.java b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_ApiRender.java
new file mode 100644
index 0000000..ff558d2
--- /dev/null
+++ b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_ApiRender.java
@@ -0,0 +1,269 @@
+/*  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_PortletResponse_ApiRender_event
+ *
+ */
+public class ResponseTests_PortletResponse_ApiRender implements Portlet, ResourceServingPortlet {
+   private static final String LOG_CLASS = 
+         ResponseTests_PortletResponse_ApiRender.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();
+
+   }
+
+   @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();
+
+      JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+      // Create result objects for the tests
+
+      /* TestCase: V2ResponseTests_PortletResponse_ApiRender_addPropertyA1    */
+      /* Details: "Method addProperty(javax.servlet.http.Cookie): Adds the    */
+      /* specified cookie property to the response"                           */
+      TestResult tr0 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRENDER_ADDPROPERTYA1);
+      /* TODO: implement test */
+      tr0.appendTcDetail("Not implemented.");
+      tr0.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_PortletResponse_ApiRender_addPropertyA2    */
+      /* Details: "Method addProperty(javax.servlet.http.Cookie): Throws      */
+      /* IllegalArgumentException if the specified cookie is null"            */
+      TestResult tr1 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRENDER_ADDPROPERTYA2);
+      /* TODO: implement test */
+      tr1.appendTcDetail("Not implemented.");
+      tr1.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_PortletResponse_ApiRender_addPropertyB1    */
+      /* Details: "Method addProperty(String, org.w3c.dom.Element): Adds an   */
+      /* XML DOM Element to the response for the specified key"               */
+      TestResult tr2 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRENDER_ADDPROPERTYB1);
+      /* TODO: implement test */
+      tr2.appendTcDetail("Not implemented.");
+      tr2.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_PortletResponse_ApiRender_addPropertyB2    */
+      /* Details: "Method addProperty(String, org.w3c.dom.Element): If a      */
+      /* DOM Element for the specified key already exists, the new element    */
+      /* is added in addition to the existing element"                        */
+      TestResult tr3 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRENDER_ADDPROPERTYB2);
+      /* TODO: implement test */
+      tr3.appendTcDetail("Not implemented.");
+      tr3.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_PortletResponse_ApiRender_addPropertyB3    */
+      /* Details: "Method addProperty(String, org.w3c.dom.Element): If the    */
+      /* specified DOM Element value is null, the key is removed from the     */
+      /* response"                                                            */
+      TestResult tr4 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRENDER_ADDPROPERTYB3);
+      /* TODO: implement test */
+      tr4.appendTcDetail("Not implemented.");
+      tr4.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_PortletResponse_ApiRender_addPropertyB4    */
+      /* Details: "Method addProperty(String, org.w3c.dom.Element): Throws    */
+      /* IllegalArgumentException if the specified key is null"               */
+      TestResult tr5 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRENDER_ADDPROPERTYB4);
+      /* TODO: implement test */
+      tr5.appendTcDetail("Not implemented.");
+      tr5.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_PortletResponse_ApiRender_addPropertyC1    */
+      /* Details: "Method addProperty(String, String): Adds a property        */
+      /* value to an existing key to allow the key to have multiple values"   */
+      TestResult tr6 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRENDER_ADDPROPERTYC1);
+      /* TODO: implement test */
+      tr6.appendTcDetail("Not implemented.");
+      tr6.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_PortletResponse_ApiRender_addPropertyC2    */
+      /* Details: "Method addProperty(String, String): Throws                 */
+      /* IllegalArgumentException if the specified key is null"               */
+      TestResult tr7 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRENDER_ADDPROPERTYC2);
+      /* TODO: implement test */
+      tr7.appendTcDetail("Not implemented.");
+      tr7.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_PortletResponse_ApiRender_setProperty1     */
+      /* Details: "Method setProperty(String, String): Sets a property        */
+      /* value for the specified key"                                         */
+      TestResult tr8 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRENDER_SETPROPERTY1);
+      /* TODO: implement test */
+      tr8.appendTcDetail("Not implemented.");
+      tr8.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_PortletResponse_ApiRender_setProperty2     */
+      /* Details: "Method setProperty(String, String): Resets any existing    */
+      /* property values for the specified key"                               */
+      TestResult tr9 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRENDER_SETPROPERTY2);
+      /* TODO: implement test */
+      tr9.appendTcDetail("Not implemented.");
+      tr9.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_PortletResponse_ApiRender_setProperty3     */
+      /* Details: "Method setProperty(String, String): Throws                 */
+      /* IllegalArgumentException if the specified key is null"               */
+      TestResult tr10 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRENDER_SETPROPERTY3);
+      /* TODO: implement test */
+      tr10.appendTcDetail("Not implemented.");
+      tr10.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_PortletResponse_ApiRender_encodeURL1       */
+      /* Details: "Method encodeURL(String): Returns a String representing    */
+      /* the encoded URL"                                                     */
+      TestResult tr11 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRENDER_ENCODEURL1);
+      /* TODO: implement test */
+      tr11.appendTcDetail("Not implemented.");
+      tr11.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_PortletResponse_ApiRender_encodeURL2       */
+      /* Details: "Method encodeURL(String): Throws                           */
+      /* IllegalArgumentException if the input string is not an absolute      */
+      /* URL and does not start with at \"/\" character"                      */
+      TestResult tr12 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRENDER_ENCODEURL2);
+      /* TODO: implement test */
+      tr12.appendTcDetail("Not implemented.");
+      tr12.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_PortletResponse_ApiRender_getNamespace1    */
+      /* Details: "Method getNamespace(): Returns a String containing the     */
+      /* namespace value"                                                     */
+      TestResult tr13 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRENDER_GETNAMESPACE1);
+      /* TODO: implement test */
+      tr13.appendTcDetail("Not implemented.");
+      tr13.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_PortletResponse_ApiRender_createElement1   */
+      /* Details: "Method createElement(String): Returns an                   */
+      /* org.w3c.dom.Element object for the specified tag name"               */
+      TestResult tr14 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRENDER_CREATEELEMENT1);
+      /* TODO: implement test */
+      tr14.appendTcDetail("Not implemented.");
+      tr14.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_PortletResponse_ApiRender_createElement2   */
+      /* Details: "Method createElement(String): The returned Element has     */
+      /* nodeName set to the the specified tag name "                         */
+      TestResult tr15 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRENDER_CREATEELEMENT2);
+      /* TODO: implement test */
+      tr15.appendTcDetail("Not implemented.");
+      tr15.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_PortletResponse_ApiRender_createElement3   */
+      /* Details: "Method createElement(String): The returned Element has     */
+      /* localName set to null"                                               */
+      TestResult tr16 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRENDER_CREATEELEMENT3);
+      /* TODO: implement test */
+      tr16.appendTcDetail("Not implemented.");
+      tr16.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_PortletResponse_ApiRender_createElement4   */
+      /* Details: "Method createElement(String): The returned Element has     */
+      /* prefix set to null"                                                  */
+      TestResult tr17 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRENDER_CREATEELEMENT4);
+      /* TODO: implement test */
+      tr17.appendTcDetail("Not implemented.");
+      tr17.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_PortletResponse_ApiRender_createElement5   */
+      /* Details: "Method createElement(String): The returned Element has     */
+      /* namespaceURI set to null"                                            */
+      TestResult tr18 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRENDER_CREATEELEMENT5);
+      /* TODO: implement test */
+      tr18.appendTcDetail("Not implemented.");
+      tr18.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_PortletResponse_ApiRender_createElement6   */
+      /* Details: "Method createElement(String): Throws                       */
+      /* org.w3c.dom.DOMException - INVALID_CHARACTER_ERR if the specified    */
+      /* name contains an illegal character. "                                */
+      TestResult tr19 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRENDER_CREATEELEMENT6);
+      /* TODO: implement test */
+      tr19.appendTcDetail("Not implemented.");
+      tr19.writeTo(writer);
+
+   }
+
+}

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_PortletResponse_ApiResource.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_ApiResource.java b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_ApiResource.java
new file mode 100644
index 0000000..0e72159
--- /dev/null
+++ b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_ApiResource.java
@@ -0,0 +1,284 @@
+/*  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_PortletResponse_ApiResource_event
+ *
+ */
+public class ResponseTests_PortletResponse_ApiResource implements Portlet, ResourceServingPortlet {
+   private static final String LOG_CLASS = 
+         ResponseTests_PortletResponse_ApiResource.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();
+
+   }
+
+   @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();
+
+      JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+      // Create result objects for the tests
+
+      /* TestCase: V2ResponseTests_PortletResponse_ApiResource_addPropertyA1  */
+      /* Details: "Method addProperty(javax.servlet.http.Cookie): Adds the    */
+      /* specified cookie property to the response"                           */
+      TestResult tr0 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRESOURCE_ADDPROPERTYA1);
+      /* TODO: implement test */
+      tr0.appendTcDetail("Not implemented.");
+      tr0.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_PortletResponse_ApiResource_addPropertyA2  */
+      /* Details: "Method addProperty(javax.servlet.http.Cookie): Throws      */
+      /* IllegalArgumentException if the specified cookie is null"            */
+      TestResult tr1 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRESOURCE_ADDPROPERTYA2);
+      /* TODO: implement test */
+      tr1.appendTcDetail("Not implemented.");
+      tr1.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_PortletResponse_ApiResource_addPropertyB1  */
+      /* Details: "Method addProperty(String, org.w3c.dom.Element): Adds an   */
+      /* XML DOM Element to the response for the specified key"               */
+      TestResult tr2 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRESOURCE_ADDPROPERTYB1);
+      /* TODO: implement test */
+      tr2.appendTcDetail("Not implemented.");
+      tr2.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_PortletResponse_ApiResource_addPropertyB2  */
+      /* Details: "Method addProperty(String, org.w3c.dom.Element): If a      */
+      /* DOM Element for the specified key already exists, the new element    */
+      /* is added in addition to the existing element"                        */
+      TestResult tr3 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRESOURCE_ADDPROPERTYB2);
+      /* TODO: implement test */
+      tr3.appendTcDetail("Not implemented.");
+      tr3.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_PortletResponse_ApiResource_addPropertyB3  */
+      /* Details: "Method addProperty(String, org.w3c.dom.Element): If the    */
+      /* specified DOM Element value is null, the key is removed from the     */
+      /* response"                                                            */
+      TestResult tr4 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRESOURCE_ADDPROPERTYB3);
+      /* TODO: implement test */
+      tr4.appendTcDetail("Not implemented.");
+      tr4.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_PortletResponse_ApiResource_addPropertyB4  */
+      /* Details: "Method addProperty(String, org.w3c.dom.Element): Throws    */
+      /* IllegalArgumentException if the specified key is null"               */
+      TestResult tr5 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRESOURCE_ADDPROPERTYB4);
+      /* TODO: implement test */
+      tr5.appendTcDetail("Not implemented.");
+      tr5.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_PortletResponse_ApiResource_addPropertyC1  */
+      /* Details: "Method addProperty(String, String): Adds a property        */
+      /* value to an existing key to allow the key to have multiple values"   */
+      TestResult tr6 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRESOURCE_ADDPROPERTYC1);
+      /* TODO: implement test */
+      tr6.appendTcDetail("Not implemented.");
+      tr6.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_PortletResponse_ApiResource_addPropertyC2  */
+      /* Details: "Method addProperty(String, String): Throws                 */
+      /* IllegalArgumentException if the specified key is null"               */
+      TestResult tr7 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRESOURCE_ADDPROPERTYC2);
+      /* TODO: implement test */
+      tr7.appendTcDetail("Not implemented.");
+      tr7.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_PortletResponse_ApiResource_setProperty1   */
+      /* Details: "Method setProperty(String, String): Sets a property        */
+      /* value for the specified key"                                         */
+      TestResult tr8 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRESOURCE_SETPROPERTY1);
+      /* TODO: implement test */
+      tr8.appendTcDetail("Not implemented.");
+      tr8.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_PortletResponse_ApiResource_setProperty2   */
+      /* Details: "Method setProperty(String, String): Resets any existing    */
+      /* property values for the specified key"                               */
+      TestResult tr9 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRESOURCE_SETPROPERTY2);
+      /* TODO: implement test */
+      tr9.appendTcDetail("Not implemented.");
+      tr9.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_PortletResponse_ApiResource_setProperty3   */
+      /* Details: "Method setProperty(String, String): Throws                 */
+      /* IllegalArgumentException if the specified key is null"               */
+      TestResult tr10 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRESOURCE_SETPROPERTY3);
+      /* TODO: implement test */
+      tr10.appendTcDetail("Not implemented.");
+      tr10.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_PortletResponse_ApiResource_encodeURL1     */
+      /* Details: "Method encodeURL(String): Returns a String representing    */
+      /* the encoded URL"                                                     */
+      TestResult tr11 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRESOURCE_ENCODEURL1);
+      /* TODO: implement test */
+      tr11.appendTcDetail("Not implemented.");
+      tr11.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_PortletResponse_ApiResource_encodeURL2     */
+      /* Details: "Method encodeURL(String): Throws                           */
+      /* IllegalArgumentException if the input string is not an absolute      */
+      /* URL and does not start with at \"/\" character"                      */
+      TestResult tr12 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRESOURCE_ENCODEURL2);
+      /* TODO: implement test */
+      tr12.appendTcDetail("Not implemented.");
+      tr12.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_PortletResponse_ApiResource_getNamespace1  */
+      /* Details: "Method getNamespace(): Returns a String containing the     */
+      /* namespace value"                                                     */
+      TestResult tr13 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRESOURCE_GETNAMESPACE1);
+      /* TODO: implement test */
+      tr13.appendTcDetail("Not implemented.");
+      tr13.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_PortletResponse_ApiResource_createElement1 */
+      /* Details: "Method createElement(String): Returns an                   */
+      /* org.w3c.dom.Element object for the specified tag name"               */
+      TestResult tr14 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRESOURCE_CREATEELEMENT1);
+      /* TODO: implement test */
+      tr14.appendTcDetail("Not implemented.");
+      tr14.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_PortletResponse_ApiResource_createElement2 */
+      /* Details: "Method createElement(String): The returned Element has     */
+      /* nodeName set to the the specified tag name "                         */
+      TestResult tr15 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRESOURCE_CREATEELEMENT2);
+      /* TODO: implement test */
+      tr15.appendTcDetail("Not implemented.");
+      tr15.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_PortletResponse_ApiResource_createElement3 */
+      /* Details: "Method createElement(String): The returned Element has     */
+      /* localName set to null"                                               */
+      TestResult tr16 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRESOURCE_CREATEELEMENT3);
+      /* TODO: implement test */
+      tr16.appendTcDetail("Not implemented.");
+      tr16.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_PortletResponse_ApiResource_createElement4 */
+      /* Details: "Method createElement(String): The returned Element has     */
+      /* prefix set to null"                                                  */
+      TestResult tr17 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRESOURCE_CREATEELEMENT4);
+      /* TODO: implement test */
+      tr17.appendTcDetail("Not implemented.");
+      tr17.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_PortletResponse_ApiResource_createElement5 */
+      /* Details: "Method createElement(String): The returned Element has     */
+      /* namespaceURI set to null"                                            */
+      TestResult tr18 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRESOURCE_CREATEELEMENT5);
+      /* TODO: implement test */
+      tr18.appendTcDetail("Not implemented.");
+      tr18.writeTo(writer);
+
+      /* TestCase: V2ResponseTests_PortletResponse_ApiResource_createElement6 */
+      /* Details: "Method createElement(String): Throws                       */
+      /* org.w3c.dom.DOMException - INVALID_CHARACTER_ERR if the specified    */
+      /* name contains an illegal character. "                                */
+      TestResult tr19 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_APIRESOURCE_CREATEELEMENT6);
+      /* TODO: implement test */
+      tr19.appendTcDetail("Not implemented.");
+      tr19.writeTo(writer);
+
+   }
+
+   @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();
+
+      writer.write("<div id=\"ResponseTests_PortletResponse_ApiResource\">no resource output.</div>\n");
+      ResourceURL resurl = portletResp.createResourceURL();
+      resurl.setCacheability(PAGE);
+      writer.write("<script>\n");
+      writer.write("(function () {\n");
+      writer.write("   var xhr = new XMLHttpRequest();\n");
+      writer.write("   xhr.onreadystatechange=function() {\n");
+      writer.write("      if (xhr.readyState==4 && xhr.status==200) {\n");
+      writer.write("         document.getElementById(\"ResponseTests_PortletResponse_ApiResource\").innerHTML=xhr.responseText;\n");
+      writer.write("      }\n");
+      writer.write("   };\n");
+      writer.write("   xhr.open(\"GET\",\"" + resurl.toString() + "\",true);\n");
+      writer.write("   xhr.send();\n");
+      writer.write("})();\n");
+      writer.write("</script>\n");
+   }
+
+}

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_PortletResponse_Event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_Event.java b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_Event.java
deleted file mode 100644
index 4c6a691..0000000
--- a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_Event.java
+++ /dev/null
@@ -1,308 +0,0 @@
-/*  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_PortletResponse_Event_event
- *
- */
-public class ResponseTests_PortletResponse_Event implements Portlet, ResourceServingPortlet {
-   private static final String LOG_CLASS = 
-         ResponseTests_PortletResponse_Event.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();
-
-      QName eventQName = new QName(TCKNAMESPACE,
-             "ResponseTests_PortletResponse_Event");
-      portletResp.setEvent(eventQName, "Hi!");
-   }
-
-   @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();
-
-      /* TestCase: V2ResponseTests_PortletResponse_Event_addPropertyA1        */
-      /* Details: "Method addProperty(javax.servlet.http.Cookie): Adds the    */
-      /* specified cookie property to the response"                           */
-      {
-         PortletURL aurl = portletResp.createActionURL();
-         aurl.setParameters(portletReq.getPrivateParameterMap());
-         TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Event_addPropertyA1", aurl);
-         tb.writeTo(writer);
-      }
-
-      /* TestCase: V2ResponseTests_PortletResponse_Event_addPropertyA2        */
-      /* Details: "Method addProperty(javax.servlet.http.Cookie): Throws      */
-      /* IllegalArgumentException if the specified cookie is null"            */
-      {
-         PortletURL aurl = portletResp.createActionURL();
-         aurl.setParameters(portletReq.getPrivateParameterMap());
-         TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Event_addPropertyA2", aurl);
-         tb.writeTo(writer);
-      }
-
-      /* TestCase: V2ResponseTests_PortletResponse_Event_addPropertyB1        */
-      /* Details: "Method addProperty(String, org.w3c.dom.Element): Adds an   */
-      /* XML DOM Element to the response for the specified key"               */
-      {
-         PortletURL aurl = portletResp.createActionURL();
-         aurl.setParameters(portletReq.getPrivateParameterMap());
-         TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Event_addPropertyB1", aurl);
-         tb.writeTo(writer);
-      }
-
-      /* TestCase: V2ResponseTests_PortletResponse_Event_addPropertyB2        */
-      /* Details: "Method addProperty(String, org.w3c.dom.Element): If a      */
-      /* DOM Element for the specified key already exists, the new element    */
-      /* is added in addition to the existing element"                        */
-      {
-         PortletURL aurl = portletResp.createActionURL();
-         aurl.setParameters(portletReq.getPrivateParameterMap());
-         TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Event_addPropertyB2", aurl);
-         tb.writeTo(writer);
-      }
-
-      /* TestCase: V2ResponseTests_PortletResponse_Event_addPropertyB3        */
-      /* Details: "Method addProperty(String, org.w3c.dom.Element): If the    */
-      /* specified DOM Element value is null, the key is removed from the     */
-      /* response"                                                            */
-      {
-         PortletURL aurl = portletResp.createActionURL();
-         aurl.setParameters(portletReq.getPrivateParameterMap());
-         TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Event_addPropertyB3", aurl);
-         tb.writeTo(writer);
-      }
-
-      /* TestCase: V2ResponseTests_PortletResponse_Event_addPropertyB4        */
-      /* Details: "Method addProperty(String, org.w3c.dom.Element): Throws    */
-      /* IllegalArgumentException if the specified key is null"               */
-      {
-         PortletURL aurl = portletResp.createActionURL();
-         aurl.setParameters(portletReq.getPrivateParameterMap());
-         TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Event_addPropertyB4", aurl);
-         tb.writeTo(writer);
-      }
-
-      /* TestCase: V2ResponseTests_PortletResponse_Event_addPropertyC1        */
-      /* Details: "Method addProperty(String, String): Adds a property        */
-      /* value to an existing key to allow the key to have multiple values"   */
-      {
-         PortletURL aurl = portletResp.createActionURL();
-         aurl.setParameters(portletReq.getPrivateParameterMap());
-         TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Event_addPropertyC1", aurl);
-         tb.writeTo(writer);
-      }
-
-      /* TestCase: V2ResponseTests_PortletResponse_Event_addPropertyC2        */
-      /* Details: "Method addProperty(String, String): Throws                 */
-      /* IllegalArgumentException if the specified key is null"               */
-      {
-         PortletURL aurl = portletResp.createActionURL();
-         aurl.setParameters(portletReq.getPrivateParameterMap());
-         TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Event_addPropertyC2", aurl);
-         tb.writeTo(writer);
-      }
-
-      /* TestCase: V2ResponseTests_PortletResponse_Event_setProperty1         */
-      /* Details: "Method setProperty(String, String): Sets a property        */
-      /* value for the specified key"                                         */
-      {
-         PortletURL aurl = portletResp.createActionURL();
-         aurl.setParameters(portletReq.getPrivateParameterMap());
-         TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Event_setProperty1", aurl);
-         tb.writeTo(writer);
-      }
-
-      /* TestCase: V2ResponseTests_PortletResponse_Event_setProperty2         */
-      /* Details: "Method setProperty(String, String): Resets any existing    */
-      /* property values for the specified key"                               */
-      {
-         PortletURL aurl = portletResp.createActionURL();
-         aurl.setParameters(portletReq.getPrivateParameterMap());
-         TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Event_setProperty2", aurl);
-         tb.writeTo(writer);
-      }
-
-      /* TestCase: V2ResponseTests_PortletResponse_Event_setProperty3         */
-      /* Details: "Method setProperty(String, String): Throws                 */
-      /* IllegalArgumentException if the specified key is null"               */
-      {
-         PortletURL aurl = portletResp.createActionURL();
-         aurl.setParameters(portletReq.getPrivateParameterMap());
-         TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Event_setProperty3", aurl);
-         tb.writeTo(writer);
-      }
-
-      /* TestCase: V2ResponseTests_PortletResponse_Event_encodeURL1           */
-      /* Details: "Method encodeURL(String): Returns a String representing    */
-      /* the encoded URL"                                                     */
-      {
-         PortletURL aurl = portletResp.createActionURL();
-         aurl.setParameters(portletReq.getPrivateParameterMap());
-         TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Event_encodeURL1", aurl);
-         tb.writeTo(writer);
-      }
-
-      /* TestCase: V2ResponseTests_PortletResponse_Event_encodeURL2           */
-      /* Details: "Method encodeURL(String): Throws                           */
-      /* IllegalArgumentException if the input string is not an absolute      */
-      /* URL and does not start with at \"/\" character"                      */
-      {
-         PortletURL aurl = portletResp.createActionURL();
-         aurl.setParameters(portletReq.getPrivateParameterMap());
-         TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Event_encodeURL2", aurl);
-         tb.writeTo(writer);
-      }
-
-      /* TestCase: V2ResponseTests_PortletResponse_Event_getNamespace1        */
-      /* Details: "Method getNamespace(): Returns a String containing the     */
-      /* namespace value"                                                     */
-      {
-         PortletURL aurl = portletResp.createActionURL();
-         aurl.setParameters(portletReq.getPrivateParameterMap());
-         TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Event_getNamespace1", aurl);
-         tb.writeTo(writer);
-      }
-
-      /* TestCase: V2ResponseTests_PortletResponse_Event_createElement1       */
-      /* Details: "Method createElement(String): Returns an                   */
-      /* org.w3c.dom.Element object for the specified tag name"               */
-      {
-         PortletURL aurl = portletResp.createActionURL();
-         aurl.setParameters(portletReq.getPrivateParameterMap());
-         TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Event_createElement1", aurl);
-         tb.writeTo(writer);
-      }
-
-      /* TestCase: V2ResponseTests_PortletResponse_Event_createElement2       */
-      /* Details: "Method createElement(String): The returned Element has     */
-      /* nodeName set to the the specified tag name "                         */
-      {
-         PortletURL aurl = portletResp.createActionURL();
-         aurl.setParameters(portletReq.getPrivateParameterMap());
-         TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Event_createElement2", aurl);
-         tb.writeTo(writer);
-      }
-
-      /* TestCase: V2ResponseTests_PortletResponse_Event_createElement3       */
-      /* Details: "Method createElement(String): The returned Element has     */
-      /* localName set to null"                                               */
-      {
-         PortletURL aurl = portletResp.createActionURL();
-         aurl.setParameters(portletReq.getPrivateParameterMap());
-         TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Event_createElement3", aurl);
-         tb.writeTo(writer);
-      }
-
-      /* TestCase: V2ResponseTests_PortletResponse_Event_createElement4       */
-      /* Details: "Method createElement(String): The returned Element has     */
-      /* prefix set to null"                                                  */
-      {
-         PortletURL aurl = portletResp.createActionURL();
-         aurl.setParameters(portletReq.getPrivateParameterMap());
-         TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Event_createElement4", aurl);
-         tb.writeTo(writer);
-      }
-
-      /* TestCase: V2ResponseTests_PortletResponse_Event_createElement5       */
-      /* Details: "Method createElement(String): The returned Element has     */
-      /* namespaceURI set to null"                                            */
-      {
-         PortletURL aurl = portletResp.createActionURL();
-         aurl.setParameters(portletReq.getPrivateParameterMap());
-         TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Event_createElement5", aurl);
-         tb.writeTo(writer);
-      }
-
-      /* TestCase: V2ResponseTests_PortletResponse_Event_createElement6       */
-      /* Details: "Method createElement(String): Throws                       */
-      /* org.w3c.dom.DOMException - INVALID_CHARACTER_ERR if the specified    */
-      /* name contains an illegal character. "                                */
-      {
-         PortletURL aurl = portletResp.createActionURL();
-         aurl.setParameters(portletReq.getPrivateParameterMap());
-         TestButton tb = new TestButton("V2ResponseTests_PortletResponse_Event_createElement6", aurl);
-         tb.writeTo(writer);
-      }
-
-   }
-
-}

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_PortletResponse_Event_event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_Event_event.java b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_Event_event.java
deleted file mode 100644
index f52d58c..0000000
--- a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_Event_event.java
+++ /dev/null
@@ -1,273 +0,0 @@
-/*  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.constants.Constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.PortletSession.*;
-
-/**
- * This is the event processing portlet for the test cases. This portlet processes events, 
- * but does not publish them. Events are published in the main portlet for the test cases. 
- */
-public class ResponseTests_PortletResponse_Event_event implements Portlet, EventPortlet, ResourceServingPortlet {
-   private static final String LOG_CLASS = 
-         ResponseTests_PortletResponse_Event_event.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, "event companion processAction - ERROR!!");
-   }
-
-   @Override
-   public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
-         throws PortletException, IOException {
-      LOGGER.entering(LOG_CLASS, "event companion serveResource - ERROR!!");
-   }
-
-   @Override
-   public void processEvent(EventRequest portletReq, EventResponse portletResp)
-         throws PortletException, IOException {
-      LOGGER.entering(LOG_CLASS, "event companion processEvent");
-
-
-      portletResp.setRenderParameters(portletReq);
-
-      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_PortletResponse_Event_addPropertyA1        */
-      /* Details: "Method addProperty(javax.servlet.http.Cookie): Adds the    */
-      /* specified cookie property to the response"                           */
-      TestResult tr0 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_EVENT_ADDPROPERTYA1);
-      /* TODO: implement test */
-      tr0.appendTcDetail("Not implemented.");
-      tr0.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Event_addPropertyA2        */
-      /* Details: "Method addProperty(javax.servlet.http.Cookie): Throws      */
-      /* IllegalArgumentException if the specified cookie is null"            */
-      TestResult tr1 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_EVENT_ADDPROPERTYA2);
-      /* TODO: implement test */
-      tr1.appendTcDetail("Not implemented.");
-      tr1.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Event_addPropertyB1        */
-      /* Details: "Method addProperty(String, org.w3c.dom.Element): Adds an   */
-      /* XML DOM Element to the response for the specified key"               */
-      TestResult tr2 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_EVENT_ADDPROPERTYB1);
-      /* TODO: implement test */
-      tr2.appendTcDetail("Not implemented.");
-      tr2.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Event_addPropertyB2        */
-      /* Details: "Method addProperty(String, org.w3c.dom.Element): If a      */
-      /* DOM Element for the specified key already exists, the new element    */
-      /* is added in addition to the existing element"                        */
-      TestResult tr3 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_EVENT_ADDPROPERTYB2);
-      /* TODO: implement test */
-      tr3.appendTcDetail("Not implemented.");
-      tr3.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Event_addPropertyB3        */
-      /* Details: "Method addProperty(String, org.w3c.dom.Element): If the    */
-      /* specified DOM Element value is null, the key is removed from the     */
-      /* response"                                                            */
-      TestResult tr4 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_EVENT_ADDPROPERTYB3);
-      /* TODO: implement test */
-      tr4.appendTcDetail("Not implemented.");
-      tr4.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Event_addPropertyB4        */
-      /* Details: "Method addProperty(String, org.w3c.dom.Element): Throws    */
-      /* IllegalArgumentException if the specified key is null"               */
-      TestResult tr5 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_EVENT_ADDPROPERTYB4);
-      /* TODO: implement test */
-      tr5.appendTcDetail("Not implemented.");
-      tr5.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Event_addPropertyC1        */
-      /* Details: "Method addProperty(String, String): Adds a property        */
-      /* value to an existing key to allow the key to have multiple values"   */
-      TestResult tr6 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_EVENT_ADDPROPERTYC1);
-      /* TODO: implement test */
-      tr6.appendTcDetail("Not implemented.");
-      tr6.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Event_addPropertyC2        */
-      /* Details: "Method addProperty(String, String): Throws                 */
-      /* IllegalArgumentException if the specified key is null"               */
-      TestResult tr7 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_EVENT_ADDPROPERTYC2);
-      /* TODO: implement test */
-      tr7.appendTcDetail("Not implemented.");
-      tr7.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Event_setProperty1         */
-      /* Details: "Method setProperty(String, String): Sets a property        */
-      /* value for the specified key"                                         */
-      TestResult tr8 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_EVENT_SETPROPERTY1);
-      /* TODO: implement test */
-      tr8.appendTcDetail("Not implemented.");
-      tr8.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Event_setProperty2         */
-      /* Details: "Method setProperty(String, String): Resets any existing    */
-      /* property values for the specified key"                               */
-      TestResult tr9 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_EVENT_SETPROPERTY2);
-      /* TODO: implement test */
-      tr9.appendTcDetail("Not implemented.");
-      tr9.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Event_setProperty3         */
-      /* Details: "Method setProperty(String, String): Throws                 */
-      /* IllegalArgumentException if the specified key is null"               */
-      TestResult tr10 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_EVENT_SETPROPERTY3);
-      /* TODO: implement test */
-      tr10.appendTcDetail("Not implemented.");
-      tr10.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Event_encodeURL1           */
-      /* Details: "Method encodeURL(String): Returns a String representing    */
-      /* the encoded URL"                                                     */
-      TestResult tr11 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_EVENT_ENCODEURL1);
-      /* TODO: implement test */
-      tr11.appendTcDetail("Not implemented.");
-      tr11.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Event_encodeURL2           */
-      /* Details: "Method encodeURL(String): Throws                           */
-      /* IllegalArgumentException if the input string is not an absolute      */
-      /* URL and does not start with at \"/\" character"                      */
-      TestResult tr12 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_EVENT_ENCODEURL2);
-      /* TODO: implement test */
-      tr12.appendTcDetail("Not implemented.");
-      tr12.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Event_getNamespace1        */
-      /* Details: "Method getNamespace(): Returns a String containing the     */
-      /* namespace value"                                                     */
-      TestResult tr13 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_EVENT_GETNAMESPACE1);
-      /* TODO: implement test */
-      tr13.appendTcDetail("Not implemented.");
-      tr13.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Event_createElement1       */
-      /* Details: "Method createElement(String): Returns an                   */
-      /* org.w3c.dom.Element object for the specified tag name"               */
-      TestResult tr14 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_EVENT_CREATEELEMENT1);
-      /* TODO: implement test */
-      tr14.appendTcDetail("Not implemented.");
-      tr14.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Event_createElement2       */
-      /* Details: "Method createElement(String): The returned Element has     */
-      /* nodeName set to the the specified tag name "                         */
-      TestResult tr15 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_EVENT_CREATEELEMENT2);
-      /* TODO: implement test */
-      tr15.appendTcDetail("Not implemented.");
-      tr15.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Event_createElement3       */
-      /* Details: "Method createElement(String): The returned Element has     */
-      /* localName set to null"                                               */
-      TestResult tr16 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_EVENT_CREATEELEMENT3);
-      /* TODO: implement test */
-      tr16.appendTcDetail("Not implemented.");
-      tr16.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Event_createElement4       */
-      /* Details: "Method createElement(String): The returned Element has     */
-      /* prefix set to null"                                                  */
-      TestResult tr17 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_EVENT_CREATEELEMENT4);
-      /* TODO: implement test */
-      tr17.appendTcDetail("Not implemented.");
-      tr17.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Event_createElement5       */
-      /* Details: "Method createElement(String): The returned Element has     */
-      /* namespaceURI set to null"                                            */
-      TestResult tr18 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_EVENT_CREATEELEMENT5);
-      /* TODO: implement test */
-      tr18.appendTcDetail("Not implemented.");
-      tr18.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Event_createElement6       */
-      /* Details: "Method createElement(String): Throws                       */
-      /* org.w3c.dom.DOMException - INVALID_CHARACTER_ERR if the specified    */
-      /* name contains an illegal character. "                                */
-      TestResult tr19 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_EVENT_CREATEELEMENT6);
-      /* TODO: implement test */
-      tr19.appendTcDetail("Not implemented.");
-      tr19.writeTo(writer);
-
-      portletReq.getPortletSession().setAttribute(
-                   Constants.RESULT_ATTR_PREFIX + "ResponseTests_PortletResponse_Event",
-                   writer.toString(), APPLICATION_SCOPE);
-
-   }
-
-   @Override
-   public void render(RenderRequest portletReq, RenderResponse portletResp)
-         throws PortletException, IOException {
-      
-      LOGGER.entering(LOG_CLASS, "event companion render");
-
-      portletResp.setContentType("text/html");
-      PrintWriter writer = portletResp.getWriter();
-      writer.write("<h3>Event Companion Portlet </h3>\n");
-      writer.write("<p>ResponseTests_PortletResponse_Event_event</p>\n");
-
-      String msg = (String) portletReq.getPortletSession()
-            .getAttribute(RESULT_ATTR_PREFIX + "ResponseTests_PortletResponse_Event", APPLICATION_SCOPE);
-      msg = (msg==null) ? "Not ready. click test case link." : msg;
-      writer.write("<p>" + msg + "</p>\n");
-
-   }
-
-}

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_PortletResponse_Render.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_Render.java b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_Render.java
deleted file mode 100644
index 27df7ce..0000000
--- a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_Render.java
+++ /dev/null
@@ -1,269 +0,0 @@
-/*  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_PortletResponse_Render_event
- *
- */
-public class ResponseTests_PortletResponse_Render implements Portlet, ResourceServingPortlet {
-   private static final String LOG_CLASS = 
-         ResponseTests_PortletResponse_Render.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();
-
-   }
-
-   @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();
-
-      JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
-      // Create result objects for the tests
-
-      /* TestCase: V2ResponseTests_PortletResponse_Render_addPropertyA1       */
-      /* Details: "Method addProperty(javax.servlet.http.Cookie): Adds the    */
-      /* specified cookie property to the response"                           */
-      TestResult tr0 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RENDER_ADDPROPERTYA1);
-      /* TODO: implement test */
-      tr0.appendTcDetail("Not implemented.");
-      tr0.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Render_addPropertyA2       */
-      /* Details: "Method addProperty(javax.servlet.http.Cookie): Throws      */
-      /* IllegalArgumentException if the specified cookie is null"            */
-      TestResult tr1 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RENDER_ADDPROPERTYA2);
-      /* TODO: implement test */
-      tr1.appendTcDetail("Not implemented.");
-      tr1.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Render_addPropertyB1       */
-      /* Details: "Method addProperty(String, org.w3c.dom.Element): Adds an   */
-      /* XML DOM Element to the response for the specified key"               */
-      TestResult tr2 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RENDER_ADDPROPERTYB1);
-      /* TODO: implement test */
-      tr2.appendTcDetail("Not implemented.");
-      tr2.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Render_addPropertyB2       */
-      /* Details: "Method addProperty(String, org.w3c.dom.Element): If a      */
-      /* DOM Element for the specified key already exists, the new element    */
-      /* is added in addition to the existing element"                        */
-      TestResult tr3 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RENDER_ADDPROPERTYB2);
-      /* TODO: implement test */
-      tr3.appendTcDetail("Not implemented.");
-      tr3.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Render_addPropertyB3       */
-      /* Details: "Method addProperty(String, org.w3c.dom.Element): If the    */
-      /* specified DOM Element value is null, the key is removed from the     */
-      /* response"                                                            */
-      TestResult tr4 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RENDER_ADDPROPERTYB3);
-      /* TODO: implement test */
-      tr4.appendTcDetail("Not implemented.");
-      tr4.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Render_addPropertyB4       */
-      /* Details: "Method addProperty(String, org.w3c.dom.Element): Throws    */
-      /* IllegalArgumentException if the specified key is null"               */
-      TestResult tr5 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RENDER_ADDPROPERTYB4);
-      /* TODO: implement test */
-      tr5.appendTcDetail("Not implemented.");
-      tr5.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Render_addPropertyC1       */
-      /* Details: "Method addProperty(String, String): Adds a property        */
-      /* value to an existing key to allow the key to have multiple values"   */
-      TestResult tr6 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RENDER_ADDPROPERTYC1);
-      /* TODO: implement test */
-      tr6.appendTcDetail("Not implemented.");
-      tr6.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Render_addPropertyC2       */
-      /* Details: "Method addProperty(String, String): Throws                 */
-      /* IllegalArgumentException if the specified key is null"               */
-      TestResult tr7 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RENDER_ADDPROPERTYC2);
-      /* TODO: implement test */
-      tr7.appendTcDetail("Not implemented.");
-      tr7.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Render_setProperty1        */
-      /* Details: "Method setProperty(String, String): Sets a property        */
-      /* value for the specified key"                                         */
-      TestResult tr8 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RENDER_SETPROPERTY1);
-      /* TODO: implement test */
-      tr8.appendTcDetail("Not implemented.");
-      tr8.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Render_setProperty2        */
-      /* Details: "Method setProperty(String, String): Resets any existing    */
-      /* property values for the specified key"                               */
-      TestResult tr9 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RENDER_SETPROPERTY2);
-      /* TODO: implement test */
-      tr9.appendTcDetail("Not implemented.");
-      tr9.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Render_setProperty3        */
-      /* Details: "Method setProperty(String, String): Throws                 */
-      /* IllegalArgumentException if the specified key is null"               */
-      TestResult tr10 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RENDER_SETPROPERTY3);
-      /* TODO: implement test */
-      tr10.appendTcDetail("Not implemented.");
-      tr10.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Render_encodeURL1          */
-      /* Details: "Method encodeURL(String): Returns a String representing    */
-      /* the encoded URL"                                                     */
-      TestResult tr11 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RENDER_ENCODEURL1);
-      /* TODO: implement test */
-      tr11.appendTcDetail("Not implemented.");
-      tr11.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Render_encodeURL2          */
-      /* Details: "Method encodeURL(String): Throws                           */
-      /* IllegalArgumentException if the input string is not an absolute      */
-      /* URL and does not start with at \"/\" character"                      */
-      TestResult tr12 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RENDER_ENCODEURL2);
-      /* TODO: implement test */
-      tr12.appendTcDetail("Not implemented.");
-      tr12.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Render_getNamespace1       */
-      /* Details: "Method getNamespace(): Returns a String containing the     */
-      /* namespace value"                                                     */
-      TestResult tr13 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RENDER_GETNAMESPACE1);
-      /* TODO: implement test */
-      tr13.appendTcDetail("Not implemented.");
-      tr13.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Render_createElement1      */
-      /* Details: "Method createElement(String): Returns an                   */
-      /* org.w3c.dom.Element object for the specified tag name"               */
-      TestResult tr14 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RENDER_CREATEELEMENT1);
-      /* TODO: implement test */
-      tr14.appendTcDetail("Not implemented.");
-      tr14.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Render_createElement2      */
-      /* Details: "Method createElement(String): The returned Element has     */
-      /* nodeName set to the the specified tag name "                         */
-      TestResult tr15 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RENDER_CREATEELEMENT2);
-      /* TODO: implement test */
-      tr15.appendTcDetail("Not implemented.");
-      tr15.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Render_createElement3      */
-      /* Details: "Method createElement(String): The returned Element has     */
-      /* localName set to null"                                               */
-      TestResult tr16 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RENDER_CREATEELEMENT3);
-      /* TODO: implement test */
-      tr16.appendTcDetail("Not implemented.");
-      tr16.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Render_createElement4      */
-      /* Details: "Method createElement(String): The returned Element has     */
-      /* prefix set to null"                                                  */
-      TestResult tr17 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RENDER_CREATEELEMENT4);
-      /* TODO: implement test */
-      tr17.appendTcDetail("Not implemented.");
-      tr17.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Render_createElement5      */
-      /* Details: "Method createElement(String): The returned Element has     */
-      /* namespaceURI set to null"                                            */
-      TestResult tr18 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RENDER_CREATEELEMENT5);
-      /* TODO: implement test */
-      tr18.appendTcDetail("Not implemented.");
-      tr18.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Render_createElement6      */
-      /* Details: "Method createElement(String): Throws                       */
-      /* org.w3c.dom.DOMException - INVALID_CHARACTER_ERR if the specified    */
-      /* name contains an illegal character. "                                */
-      TestResult tr19 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RENDER_CREATEELEMENT6);
-      /* TODO: implement test */
-      tr19.appendTcDetail("Not implemented.");
-      tr19.writeTo(writer);
-
-   }
-
-}

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_PortletResponse_Resource.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_Resource.java b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_Resource.java
deleted file mode 100644
index db1e9db..0000000
--- a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_PortletResponse_Resource.java
+++ /dev/null
@@ -1,284 +0,0 @@
-/*  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_PortletResponse_Resource_event
- *
- */
-public class ResponseTests_PortletResponse_Resource implements Portlet, ResourceServingPortlet {
-   private static final String LOG_CLASS = 
-         ResponseTests_PortletResponse_Resource.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();
-
-   }
-
-   @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();
-
-      JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
-      // Create result objects for the tests
-
-      /* TestCase: V2ResponseTests_PortletResponse_Resource_addPropertyA1     */
-      /* Details: "Method addProperty(javax.servlet.http.Cookie): Adds the    */
-      /* specified cookie property to the response"                           */
-      TestResult tr0 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RESOURCE_ADDPROPERTYA1);
-      /* TODO: implement test */
-      tr0.appendTcDetail("Not implemented.");
-      tr0.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Resource_addPropertyA2     */
-      /* Details: "Method addProperty(javax.servlet.http.Cookie): Throws      */
-      /* IllegalArgumentException if the specified cookie is null"            */
-      TestResult tr1 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RESOURCE_ADDPROPERTYA2);
-      /* TODO: implement test */
-      tr1.appendTcDetail("Not implemented.");
-      tr1.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Resource_addPropertyB1     */
-      /* Details: "Method addProperty(String, org.w3c.dom.Element): Adds an   */
-      /* XML DOM Element to the response for the specified key"               */
-      TestResult tr2 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RESOURCE_ADDPROPERTYB1);
-      /* TODO: implement test */
-      tr2.appendTcDetail("Not implemented.");
-      tr2.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Resource_addPropertyB2     */
-      /* Details: "Method addProperty(String, org.w3c.dom.Element): If a      */
-      /* DOM Element for the specified key already exists, the new element    */
-      /* is added in addition to the existing element"                        */
-      TestResult tr3 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RESOURCE_ADDPROPERTYB2);
-      /* TODO: implement test */
-      tr3.appendTcDetail("Not implemented.");
-      tr3.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Resource_addPropertyB3     */
-      /* Details: "Method addProperty(String, org.w3c.dom.Element): If the    */
-      /* specified DOM Element value is null, the key is removed from the     */
-      /* response"                                                            */
-      TestResult tr4 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RESOURCE_ADDPROPERTYB3);
-      /* TODO: implement test */
-      tr4.appendTcDetail("Not implemented.");
-      tr4.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Resource_addPropertyB4     */
-      /* Details: "Method addProperty(String, org.w3c.dom.Element): Throws    */
-      /* IllegalArgumentException if the specified key is null"               */
-      TestResult tr5 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RESOURCE_ADDPROPERTYB4);
-      /* TODO: implement test */
-      tr5.appendTcDetail("Not implemented.");
-      tr5.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Resource_addPropertyC1     */
-      /* Details: "Method addProperty(String, String): Adds a property        */
-      /* value to an existing key to allow the key to have multiple values"   */
-      TestResult tr6 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RESOURCE_ADDPROPERTYC1);
-      /* TODO: implement test */
-      tr6.appendTcDetail("Not implemented.");
-      tr6.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Resource_addPropertyC2     */
-      /* Details: "Method addProperty(String, String): Throws                 */
-      /* IllegalArgumentException if the specified key is null"               */
-      TestResult tr7 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RESOURCE_ADDPROPERTYC2);
-      /* TODO: implement test */
-      tr7.appendTcDetail("Not implemented.");
-      tr7.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Resource_setProperty1      */
-      /* Details: "Method setProperty(String, String): Sets a property        */
-      /* value for the specified key"                                         */
-      TestResult tr8 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RESOURCE_SETPROPERTY1);
-      /* TODO: implement test */
-      tr8.appendTcDetail("Not implemented.");
-      tr8.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Resource_setProperty2      */
-      /* Details: "Method setProperty(String, String): Resets any existing    */
-      /* property values for the specified key"                               */
-      TestResult tr9 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RESOURCE_SETPROPERTY2);
-      /* TODO: implement test */
-      tr9.appendTcDetail("Not implemented.");
-      tr9.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Resource_setProperty3      */
-      /* Details: "Method setProperty(String, String): Throws                 */
-      /* IllegalArgumentException if the specified key is null"               */
-      TestResult tr10 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RESOURCE_SETPROPERTY3);
-      /* TODO: implement test */
-      tr10.appendTcDetail("Not implemented.");
-      tr10.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Resource_encodeURL1        */
-      /* Details: "Method encodeURL(String): Returns a String representing    */
-      /* the encoded URL"                                                     */
-      TestResult tr11 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RESOURCE_ENCODEURL1);
-      /* TODO: implement test */
-      tr11.appendTcDetail("Not implemented.");
-      tr11.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Resource_encodeURL2        */
-      /* Details: "Method encodeURL(String): Throws                           */
-      /* IllegalArgumentException if the input string is not an absolute      */
-      /* URL and does not start with at \"/\" character"                      */
-      TestResult tr12 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RESOURCE_ENCODEURL2);
-      /* TODO: implement test */
-      tr12.appendTcDetail("Not implemented.");
-      tr12.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Resource_getNamespace1     */
-      /* Details: "Method getNamespace(): Returns a String containing the     */
-      /* namespace value"                                                     */
-      TestResult tr13 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RESOURCE_GETNAMESPACE1);
-      /* TODO: implement test */
-      tr13.appendTcDetail("Not implemented.");
-      tr13.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Resource_createElement1    */
-      /* Details: "Method createElement(String): Returns an                   */
-      /* org.w3c.dom.Element object for the specified tag name"               */
-      TestResult tr14 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RESOURCE_CREATEELEMENT1);
-      /* TODO: implement test */
-      tr14.appendTcDetail("Not implemented.");
-      tr14.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Resource_createElement2    */
-      /* Details: "Method createElement(String): The returned Element has     */
-      /* nodeName set to the the specified tag name "                         */
-      TestResult tr15 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RESOURCE_CREATEELEMENT2);
-      /* TODO: implement test */
-      tr15.appendTcDetail("Not implemented.");
-      tr15.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Resource_createElement3    */
-      /* Details: "Method createElement(String): The returned Element has     */
-      /* localName set to null"                                               */
-      TestResult tr16 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RESOURCE_CREATEELEMENT3);
-      /* TODO: implement test */
-      tr16.appendTcDetail("Not implemented.");
-      tr16.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Resource_createElement4    */
-      /* Details: "Method createElement(String): The returned Element has     */
-      /* prefix set to null"                                                  */
-      TestResult tr17 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RESOURCE_CREATEELEMENT4);
-      /* TODO: implement test */
-      tr17.appendTcDetail("Not implemented.");
-      tr17.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Resource_createElement5    */
-      /* Details: "Method createElement(String): The returned Element has     */
-      /* namespaceURI set to null"                                            */
-      TestResult tr18 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RESOURCE_CREATEELEMENT5);
-      /* TODO: implement test */
-      tr18.appendTcDetail("Not implemented.");
-      tr18.writeTo(writer);
-
-      /* TestCase: V2ResponseTests_PortletResponse_Resource_createElement6    */
-      /* Details: "Method createElement(String): Throws                       */
-      /* org.w3c.dom.DOMException - INVALID_CHARACTER_ERR if the specified    */
-      /* name contains an illegal character. "                                */
-      TestResult tr19 = tcd.getTestResultFailed(V2RESPONSETESTS_PORTLETRESPONSE_RESOURCE_CREATEELEMENT6);
-      /* TODO: implement test */
-      tr19.appendTcDetail("Not implemented.");
-      tr19.writeTo(writer);
-
-   }
-
-   @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();
-
-      writer.write("<div id=\"ResponseTests_PortletResponse_Resource\">no resource output.</div>\n");
-      ResourceURL resurl = portletResp.createResourceURL();
-      resurl.setCacheability(PAGE);
-      writer.write("<script>\n");
-      writer.write("(function () {\n");
-      writer.write("   var xhr = new XMLHttpRequest();\n");
-      writer.write("   xhr.onreadystatechange=function() {\n");
-      writer.write("      if (xhr.readyState==4 && xhr.status==200) {\n");
-      writer.write("         document.getElementById(\"ResponseTests_PortletResponse_Resource\").innerHTML=xhr.responseText;\n");
-      writer.write("      }\n");
-      writer.write("   };\n");
-      writer.write("   xhr.open(\"GET\",\"" + resurl.toString() + "\",true);\n");
-      writer.write("   xhr.send();\n");
-      writer.write("})();\n");
-      writer.write("</script>\n");
-   }
-
-}