portals-pluto-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From msnickl...@apache.org
Subject [45/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:53 GMT
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletContext_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletContext_ApiRender.java b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletContext_ApiRender.java
new file mode 100644
index 0000000..68b7064
--- /dev/null
+++ b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletContext_ApiRender.java
@@ -0,0 +1,548 @@
+/*  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 EnvironmentTests_PortletContext_ApiRender_event
+ *
+ */
+public class EnvironmentTests_PortletContext_ApiRender implements Portlet, ResourceServingPortlet {
+   private static final String LOG_CLASS = 
+         EnvironmentTests_PortletContext_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: V2EnvironmentTests_PortletContext_ApiRender_getServerInfo1 */
+      /* Details: "Method getServerInfo(): Returns a String containing        */
+      /* information about the portlet container"                             */
+      TestResult tr0 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETSERVERINFO1);
+      /* TODO: implement test */
+      tr0.appendTcDetail("Not implemented.");
+      tr0.writeTo(writer);
+
+      /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getServerInfo2 */
+      /* Details: "Method getServerInfo(): The returned string is of the      */
+      /* form \"([^ ]+)/([^ ]+) *(.*)\", where $1 is the portal name, $2 is   */
+      /* the version, and $3 is optional additional information"              */
+      TestResult tr1 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETSERVERINFO2);
+      /* TODO: implement test */
+      tr1.appendTcDetail("Not implemented.");
+      tr1.writeTo(writer);
+
+      /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getServerInfo3 */
+      /* Details: "Method getServerInfo(): The returned string contains the   */
+      /* container name"                                                      */
+      TestResult tr2 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETSERVERINFO3);
+      /* TODO: implement test */
+      tr2.appendTcDetail("Not implemented.");
+      tr2.writeTo(writer);
+
+      /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getServerInfo4 */
+      /* Details: "Method getServerInfo(): The returned string contains the   */
+      /* container version"                                                   */
+      TestResult tr3 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETSERVERINFO4);
+      /* TODO: implement test */
+      tr3.appendTcDetail("Not implemented.");
+      tr3.writeTo(writer);
+
+      /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getServerInfo5 */
+      /* Details: "Method getServerInfo(): The returned string may not be     */
+      /* null"                                                                */
+      TestResult tr4 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETSERVERINFO5);
+      /* TODO: implement test */
+      tr4.appendTcDetail("Not implemented.");
+      tr4.writeTo(writer);
+
+      /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getRequestDispatcher1 */
+      /* Details: "Method getRequestDispatcher(String): Returns a             */
+      /* PortletRequestDispatcher for the specified path"                     */
+      TestResult tr5 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETREQUESTDISPATCHER1);
+      /* TODO: implement test */
+      tr5.appendTcDetail("Not implemented.");
+      tr5.writeTo(writer);
+
+      /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getRequestDispatcher2 */
+      /* Details: "Method getRequestDispatcher(String): Returns null if the   */
+      /* specified path does not begin with \"/\""                            */
+      TestResult tr6 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETREQUESTDISPATCHER2);
+      /* TODO: implement test */
+      tr6.appendTcDetail("Not implemented.");
+      tr6.writeTo(writer);
+
+      /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getRequestDispatcher3 */
+      /* Details: "Method getRequestDispatcher(String): Returns null if any   */
+      /* other error occurs"                                                  */
+      TestResult tr7 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETREQUESTDISPATCHER3);
+      /* TODO: implement test */
+      tr7.appendTcDetail("Not implemented.");
+      tr7.writeTo(writer);
+
+      /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getNamedDispatcher1 */
+      /* Details: "Method getNamedDispatcher(String): Returns a               */
+      /* PortletRequestDispatcher for the specified servlet name"             */
+      TestResult tr8 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETNAMEDDISPATCHER1);
+      /* TODO: implement test */
+      tr8.appendTcDetail("Not implemented.");
+      tr8.writeTo(writer);
+
+      /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getNamedDispatcher2 */
+      /* Details: "Method getNamedDispatcher(String): Returns null if an      */
+      /* error occurs"                                                        */
+      TestResult tr9 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETNAMEDDISPATCHER2);
+      /* TODO: implement test */
+      tr9.appendTcDetail("Not implemented.");
+      tr9.writeTo(writer);
+
+      /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getResourceAsStream1 */
+      /* Details: "Method getResourceAsStream(String): Returns a              */
+      /* java.io.InputStream for the resource at the specified path"          */
+      TestResult tr10 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETRESOURCEASSTREAM1);
+      /* TODO: implement test */
+      tr10.appendTcDetail("Not implemented.");
+      tr10.writeTo(writer);
+
+      /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getResourceAsStream2 */
+      /* Details: "Method getResourceAsStream(String): Protected resources    */
+      /* can be accessed by prefixing the path with \"/WEB-INF/\""            */
+      TestResult tr11 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETRESOURCEASSTREAM2);
+      /* TODO: implement test */
+      tr11.appendTcDetail("Not implemented.");
+      tr11.writeTo(writer);
+
+      /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getResourceAsStream3 */
+      /* Details: "Method getResourceAsStream(String): Returns null if no     */
+      /* resource exists at the specified path"                               */
+      TestResult tr12 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETRESOURCEASSTREAM3);
+      /* TODO: implement test */
+      tr12.appendTcDetail("Not implemented.");
+      tr12.writeTo(writer);
+
+      /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getMajorVersion */
+      /* Details: "Method getMajorVersion(): Returns the major version of     */
+      /* the portlet API supported by the container "                         */
+      TestResult tr13 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETMAJORVERSION);
+      /* TODO: implement test */
+      tr13.appendTcDetail("Not implemented.");
+      tr13.writeTo(writer);
+
+      /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getMinorVersion */
+      /* Details: "Method getMinorVersion(): Returns the minor version of     */
+      /* the portlet API supported by the container"                          */
+      TestResult tr14 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETMINORVERSION);
+      /* TODO: implement test */
+      tr14.appendTcDetail("Not implemented.");
+      tr14.writeTo(writer);
+
+      /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getMimeType1   */
+      /* Details: "Method getMimeType(String): Returns a String containing    */
+      /* the MIME type of the specified file name"                            */
+      TestResult tr15 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETMIMETYPE1);
+      /* TODO: implement test */
+      tr15.appendTcDetail("Not implemented.");
+      tr15.writeTo(writer);
+
+      /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getMimeType2   */
+      /* Details: "Method getMimeType(String): Returns \"text/html\" for an   */
+      /* HTML file with the approriate <mime-mapping> element in        */
+      /* web.xml "                                                            */
+      TestResult tr16 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETMIMETYPE2);
+      /* TODO: implement test */
+      tr16.appendTcDetail("Not implemented.");
+      tr16.writeTo(writer);
+
+      /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getMimeType3   */
+      /* Details: "Method getMimeType(String): Returns \"image/gif\" for an   */
+      /* image file with the approriate <mime-mapping> element in       */
+      /* web.xml"                                                             */
+      TestResult tr17 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETMIMETYPE3);
+      /* TODO: implement test */
+      tr17.appendTcDetail("Not implemented.");
+      tr17.writeTo(writer);
+
+      /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getMimeType4   */
+      /* Details: "Method getMimeType(String): Returns null if the MIME       */
+      /* type cannot be determined"                                           */
+      TestResult tr18 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETMIMETYPE4);
+      /* TODO: implement test */
+      tr18.appendTcDetail("Not implemented.");
+      tr18.writeTo(writer);
+
+      /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getMimeType5   */
+      /* Details: "Method getMimeType(String): Returns null if the file       */
+      /* does not exist"                                                      */
+      TestResult tr19 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETMIMETYPE5);
+      /* TODO: implement test */
+      tr19.appendTcDetail("Not implemented.");
+      tr19.writeTo(writer);
+
+      /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getRealPath1   */
+      /* Details: "Method getRealPath(String): Returns a String containing    */
+      /* the OS-specific real path for the given virtual path"                */
+      TestResult tr20 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETREALPATH1);
+      /* TODO: implement test */
+      tr20.appendTcDetail("Not implemented.");
+      tr20.writeTo(writer);
+
+      /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getRealPath2   */
+      /* Details: "Method getRealPath(String): Returns null if the file       */
+      /* does not exist"                                                      */
+      TestResult tr21 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETREALPATH2);
+      /* TODO: implement test */
+      tr21.appendTcDetail("Not implemented.");
+      tr21.writeTo(writer);
+
+      /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getRealPath3   */
+      /* Details: "Method getRealPath(String): Returns null if the            */
+      /* transformation cannot be performed"                                  */
+      TestResult tr22 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETREALPATH3);
+      /* TODO: implement test */
+      tr22.appendTcDetail("Not implemented.");
+      tr22.writeTo(writer);
+
+      /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getResourcePaths1 */
+      /* Details: "Method getResourcePaths(String): Returns a                 */
+      /* java.util.Set<java.lang.String> containing all the paths to    */
+      /* resources within the web application longest sub-path of which       */
+      /* matches the supplied path argument  "                                */
+      TestResult tr23 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETRESOURCEPATHS1);
+      /* TODO: implement test */
+      tr23.appendTcDetail("Not implemented.");
+      tr23.writeTo(writer);
+
+      /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getResourcePaths2 */
+      /* Details: "Method getResourcePaths(String): A path indicating a       */
+      /* file does not end with a slash (/)"                                  */
+      TestResult tr24 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETRESOURCEPATHS2);
+      /* TODO: implement test */
+      tr24.appendTcDetail("Not implemented.");
+      tr24.writeTo(writer);
+
+      /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getResourcePaths3 */
+      /* Details: "Method getResourcePaths(String): A path indicating a       */
+      /* subdirectory ends with a slash (/)"                                  */
+      TestResult tr25 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETRESOURCEPATHS3);
+      /* TODO: implement test */
+      tr25.appendTcDetail("Not implemented.");
+      tr25.writeTo(writer);
+
+      /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getResourcePaths4 */
+      /* Details: "Method getResourcePaths(String): Returns null if there     */
+      /* are no resources in the web application of which the path begins     */
+      /* with the supplied path"                                              */
+      TestResult tr26 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETRESOURCEPATHS4);
+      /* TODO: implement test */
+      tr26.appendTcDetail("Not implemented.");
+      tr26.writeTo(writer);
+
+      /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getResource1   */
+      /* Details: "Method getResource(String): Returns a java.net.URL         */
+      /* object that maps to the specified path"                              */
+      TestResult tr27 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETRESOURCE1);
+      /* TODO: implement test */
+      tr27.appendTcDetail("Not implemented.");
+      tr27.writeTo(writer);
+
+      /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getResource2   */
+      /* Details: "Method getResource(String): Returns null if no resource    */
+      /* is mapped to the path"                                               */
+      TestResult tr28 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETRESOURCE2);
+      /* TODO: implement test */
+      tr28.appendTcDetail("Not implemented.");
+      tr28.writeTo(writer);
+
+      /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getResource3   */
+      /* Details: "Method getResource(String): Throws                         */
+      /* java.net.MalformedURLException if the path does not begin with a     */
+      /* slash (/)"                                                           */
+      TestResult tr29 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETRESOURCE3);
+      /* TODO: implement test */
+      tr29.appendTcDetail("Not implemented.");
+      tr29.writeTo(writer);
+
+      /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getResource4   */
+      /* Details: "Method getResource(String): Throws                         */
+      /* java.net.MalformedURLException if the path is malformed"             */
+      TestResult tr30 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETRESOURCE4);
+      /* TODO: implement test */
+      tr30.appendTcDetail("Not implemented.");
+      tr30.writeTo(writer);
+
+      /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getAttribute1  */
+      /* Details: "Method getAttribute(String): Returns a java.lang.Object    */
+      /* attribute value for the specified name"                              */
+      TestResult tr31 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETATTRIBUTE1);
+      /* TODO: implement test */
+      tr31.appendTcDetail("Not implemented.");
+      tr31.writeTo(writer);
+
+      /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getAttribute2  */
+      /* Details: "Method getAttribute(String): Returns null if there is no   */
+      /* attribute value for the specified name"                              */
+      TestResult tr32 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETATTRIBUTE2);
+      /* TODO: implement test */
+      tr32.appendTcDetail("Not implemented.");
+      tr32.writeTo(writer);
+
+      /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getAttribute3  */
+      /* Details: "Method getAttribute(String): Throws                        */
+      /* IllegalArgumentException if the name is null"                        */
+      TestResult tr33 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETATTRIBUTE3);
+      /* TODO: implement test */
+      tr33.appendTcDetail("Not implemented.");
+      tr33.writeTo(writer);
+
+      /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getAttributeNames1 */
+      /* Details: "Method getAttributeNames(): Returns an                     */
+      /* java.util.Enumeration<java.lang.String> containing the         */
+      /* attribute names in the PortletContext"                               */
+      TestResult tr34 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETATTRIBUTENAMES1);
+      /* TODO: implement test */
+      tr34.appendTcDetail("Not implemented.");
+      tr34.writeTo(writer);
+
+      /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getAttributeNames2 */
+      /* Details: "Method getAttributeNames(): Returns an empty Enumeration   */
+      /* if no attributes are available"                                      */
+      TestResult tr35 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETATTRIBUTENAMES2);
+      /* TODO: implement test */
+      tr35.appendTcDetail("Not implemented.");
+      tr35.writeTo(writer);
+
+      /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getInitParameter1 */
+      /* Details: "Method getInitParameter(String): Returns a                 */
+      /* java.lang.String PortletContext initialization parameter value for   */
+      /* the specified name"                                                  */
+      TestResult tr36 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETINITPARAMETER1);
+      /* TODO: implement test */
+      tr36.appendTcDetail("Not implemented.");
+      tr36.writeTo(writer);
+
+      /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getInitParameter2 */
+      /* Details: "Method getInitParameter(String): Returns null if there     */
+      /* is no inittialization parameter for the specified name"              */
+      TestResult tr37 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETINITPARAMETER2);
+      /* TODO: implement test */
+      tr37.appendTcDetail("Not implemented.");
+      tr37.writeTo(writer);
+
+      /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getInitParameter3 */
+      /* Details: "Method getInitParameter(String): Throws                    */
+      /* IllegalArgumentException if the name is null"                        */
+      TestResult tr38 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETINITPARAMETER3);
+      /* TODO: implement test */
+      tr38.appendTcDetail("Not implemented.");
+      tr38.writeTo(writer);
+
+      /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getInitParameterNames1 */
+      /* Details: "Method getInitParameterNames(): Returns an                 */
+      /* java.util.Enumeration<java.lang.String> containing the         */
+      /* InitParameter names in the PortletContext"                           */
+      TestResult tr39 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETINITPARAMETERNAMES1);
+      /* TODO: implement test */
+      tr39.appendTcDetail("Not implemented.");
+      tr39.writeTo(writer);
+
+      /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getInitParameterNames2 */
+      /* Details: "Method getInitParameterNames(): Returns an empty           */
+      /* Enumeration if no InitParameters are available"                      */
+      TestResult tr40 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETINITPARAMETERNAMES2);
+      /* TODO: implement test */
+      tr40.appendTcDetail("Not implemented.");
+      tr40.writeTo(writer);
+
+      /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_logA           */
+      /* Details: "Method log(String): Writes specified message to a          */
+      /* portlet log file"                                                    */
+      TestResult tr41 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_LOGA);
+      /* TODO: implement test */
+      tr41.appendTcDetail("Not implemented.");
+      tr41.writeTo(writer);
+
+      /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_logB           */
+      /* Details: "Method log(String, Throwable): Writes specified message    */
+      /* and stack trace to a portlet log file"                               */
+      TestResult tr42 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_LOGB);
+      /* TODO: implement test */
+      tr42.appendTcDetail("Not implemented.");
+      tr42.writeTo(writer);
+
+      /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_removeAttribute1 */
+      /* Details: "Method removeAttribute(String): Removes the attribute      */
+      /* with the specified nale"                                             */
+      TestResult tr43 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_REMOVEATTRIBUTE1);
+      /* TODO: implement test */
+      tr43.appendTcDetail("Not implemented.");
+      tr43.writeTo(writer);
+
+      /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_removeAttribute2 */
+      /* Details: "Method removeAttribute(String): Throws                     */
+      /* IllegalArgumentException if the name is null"                        */
+      TestResult tr44 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_REMOVEATTRIBUTE2);
+      /* TODO: implement test */
+      tr44.appendTcDetail("Not implemented.");
+      tr44.writeTo(writer);
+
+      /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_setAttribute1  */
+      /* Details: "Method setAttribute(String, Object): Sets an attribute     */
+      /* for the specified name in the portlet context"                       */
+      TestResult tr45 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_SETATTRIBUTE1);
+      /* TODO: implement test */
+      tr45.appendTcDetail("Not implemented.");
+      tr45.writeTo(writer);
+
+      /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_setAttribute2  */
+      /* Details: "Method setAttribute(String, Object): Any existing          */
+      /* attribute for the specified name is removed"                         */
+      TestResult tr46 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_SETATTRIBUTE2);
+      /* TODO: implement test */
+      tr46.appendTcDetail("Not implemented.");
+      tr46.writeTo(writer);
+
+      /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_setAttribute3  */
+      /* Details: "Method setAttribute(String, Object): If the specified      */
+      /* name is null, the attribute is removed"                              */
+      TestResult tr47 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_SETATTRIBUTE3);
+      /* TODO: implement test */
+      tr47.appendTcDetail("Not implemented.");
+      tr47.writeTo(writer);
+
+      /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_setAttribute4  */
+      /* Details: "Method setAttribute(String, Object): Throws                */
+      /* IllegalArgumentException if the name is null"                        */
+      TestResult tr48 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_SETATTRIBUTE4);
+      /* TODO: implement test */
+      tr48.appendTcDetail("Not implemented.");
+      tr48.writeTo(writer);
+
+      /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getPortletContextName1 */
+      /* Details: "Method getPortletContextName(): Returns the portlet        */
+      /* application name"                                                    */
+      TestResult tr49 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETPORTLETCONTEXTNAME1);
+      /* TODO: implement test */
+      tr49.appendTcDetail("Not implemented.");
+      tr49.writeTo(writer);
+
+      /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getPortletContextName2 */
+      /* Details: "Method getPortletContextName(): The name is as specified   */
+      /* in web.xml the <display-name> element"                         */
+      TestResult tr50 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETPORTLETCONTEXTNAME2);
+      /* TODO: implement test */
+      tr50.appendTcDetail("Not implemented.");
+      tr50.writeTo(writer);
+
+      /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getPortletContextName3 */
+      /* Details: "Method getPortletContextName(): Returns null if no         */
+      /* web.xml <display-name> element is defined"                     */
+      TestResult tr51 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETPORTLETCONTEXTNAME3);
+      /* TODO: implement test */
+      tr51.appendTcDetail("Not implemented.");
+      tr51.writeTo(writer);
+
+      /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getContainerRuntimeOptions1 */
+      /* Details: "Method getContainerRuntimeOptions(): Returns an            */
+      /* java.util.Enumeration<java.lang.String> containing the         */
+      /* available runtime option names"                                      */
+      TestResult tr52 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETCONTAINERRUNTIMEOPTIONS1);
+      /* TODO: implement test */
+      tr52.appendTcDetail("Not implemented.");
+      tr52.writeTo(writer);
+
+      /* TestCase: V2EnvironmentTests_PortletContext_ApiRender_getContainerRuntimeOptions2 */
+      /* Details: "Method getContainerRuntimeOptions(): Returns an empty      */
+      /* Enumeration if no runtime options are available"                     */
+      TestResult tr53 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_APIRENDER_GETCONTAINERRUNTIMEOPTIONS2);
+      /* TODO: implement test */
+      tr53.appendTcDetail("Not implemented.");
+      tr53.writeTo(writer);
+
+   }
+
+}

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/db1071e7/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletContext_Render.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletContext_Render.java b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletContext_Render.java
deleted file mode 100644
index b0f1426..0000000
--- a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/portlets/EnvironmentTests_PortletContext_Render.java
+++ /dev/null
@@ -1,548 +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 EnvironmentTests_PortletContext_Render_event
- *
- */
-public class EnvironmentTests_PortletContext_Render implements Portlet, ResourceServingPortlet {
-   private static final String LOG_CLASS = 
-         EnvironmentTests_PortletContext_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: V2EnvironmentTests_PortletContext_Render_getServerInfo1    */
-      /* Details: "Method getServerInfo(): Returns a String containing        */
-      /* information about the portlet container"                             */
-      TestResult tr0 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETSERVERINFO1);
-      /* TODO: implement test */
-      tr0.appendTcDetail("Not implemented.");
-      tr0.writeTo(writer);
-
-      /* TestCase: V2EnvironmentTests_PortletContext_Render_getServerInfo2    */
-      /* Details: "Method getServerInfo(): The returned string is of the      */
-      /* form \"([^ ]+)/([^ ]+) *(.*)\", where $1 is the portal name, $2 is   */
-      /* the version, and $3 is optional additional information"              */
-      TestResult tr1 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETSERVERINFO2);
-      /* TODO: implement test */
-      tr1.appendTcDetail("Not implemented.");
-      tr1.writeTo(writer);
-
-      /* TestCase: V2EnvironmentTests_PortletContext_Render_getServerInfo3    */
-      /* Details: "Method getServerInfo(): The returned string contains the   */
-      /* container name"                                                      */
-      TestResult tr2 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETSERVERINFO3);
-      /* TODO: implement test */
-      tr2.appendTcDetail("Not implemented.");
-      tr2.writeTo(writer);
-
-      /* TestCase: V2EnvironmentTests_PortletContext_Render_getServerInfo4    */
-      /* Details: "Method getServerInfo(): The returned string contains the   */
-      /* container version"                                                   */
-      TestResult tr3 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETSERVERINFO4);
-      /* TODO: implement test */
-      tr3.appendTcDetail("Not implemented.");
-      tr3.writeTo(writer);
-
-      /* TestCase: V2EnvironmentTests_PortletContext_Render_getServerInfo5    */
-      /* Details: "Method getServerInfo(): The returned string may not be     */
-      /* null"                                                                */
-      TestResult tr4 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETSERVERINFO5);
-      /* TODO: implement test */
-      tr4.appendTcDetail("Not implemented.");
-      tr4.writeTo(writer);
-
-      /* TestCase: V2EnvironmentTests_PortletContext_Render_getRequestDispatcher1 */
-      /* Details: "Method getRequestDispatcher(String): Returns a             */
-      /* PortletRequestDispatcher for the specified path"                     */
-      TestResult tr5 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETREQUESTDISPATCHER1);
-      /* TODO: implement test */
-      tr5.appendTcDetail("Not implemented.");
-      tr5.writeTo(writer);
-
-      /* TestCase: V2EnvironmentTests_PortletContext_Render_getRequestDispatcher2 */
-      /* Details: "Method getRequestDispatcher(String): Returns null if the   */
-      /* specified path does not begin with \"/\""                            */
-      TestResult tr6 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETREQUESTDISPATCHER2);
-      /* TODO: implement test */
-      tr6.appendTcDetail("Not implemented.");
-      tr6.writeTo(writer);
-
-      /* TestCase: V2EnvironmentTests_PortletContext_Render_getRequestDispatcher3 */
-      /* Details: "Method getRequestDispatcher(String): Returns null if any   */
-      /* other error occurs"                                                  */
-      TestResult tr7 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETREQUESTDISPATCHER3);
-      /* TODO: implement test */
-      tr7.appendTcDetail("Not implemented.");
-      tr7.writeTo(writer);
-
-      /* TestCase: V2EnvironmentTests_PortletContext_Render_getNamedDispatcher1 */
-      /* Details: "Method getNamedDispatcher(String): Returns a               */
-      /* PortletRequestDispatcher for the specified servlet name"             */
-      TestResult tr8 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETNAMEDDISPATCHER1);
-      /* TODO: implement test */
-      tr8.appendTcDetail("Not implemented.");
-      tr8.writeTo(writer);
-
-      /* TestCase: V2EnvironmentTests_PortletContext_Render_getNamedDispatcher2 */
-      /* Details: "Method getNamedDispatcher(String): Returns null if an      */
-      /* error occurs"                                                        */
-      TestResult tr9 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETNAMEDDISPATCHER2);
-      /* TODO: implement test */
-      tr9.appendTcDetail("Not implemented.");
-      tr9.writeTo(writer);
-
-      /* TestCase: V2EnvironmentTests_PortletContext_Render_getResourceAsStream1 */
-      /* Details: "Method getResourceAsStream(String): Returns a              */
-      /* java.io.InputStream for the resource at the specified path"          */
-      TestResult tr10 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETRESOURCEASSTREAM1);
-      /* TODO: implement test */
-      tr10.appendTcDetail("Not implemented.");
-      tr10.writeTo(writer);
-
-      /* TestCase: V2EnvironmentTests_PortletContext_Render_getResourceAsStream2 */
-      /* Details: "Method getResourceAsStream(String): Protected resources    */
-      /* can be accessed by prefixing the path with \"/WEB-INF/\""            */
-      TestResult tr11 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETRESOURCEASSTREAM2);
-      /* TODO: implement test */
-      tr11.appendTcDetail("Not implemented.");
-      tr11.writeTo(writer);
-
-      /* TestCase: V2EnvironmentTests_PortletContext_Render_getResourceAsStream3 */
-      /* Details: "Method getResourceAsStream(String): Returns null if no     */
-      /* resource exists at the specified path"                               */
-      TestResult tr12 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETRESOURCEASSTREAM3);
-      /* TODO: implement test */
-      tr12.appendTcDetail("Not implemented.");
-      tr12.writeTo(writer);
-
-      /* TestCase: V2EnvironmentTests_PortletContext_Render_getMajorVersion   */
-      /* Details: "Method getMajorVersion(): Returns the major version of     */
-      /* the portlet API supported by the container "                         */
-      TestResult tr13 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETMAJORVERSION);
-      /* TODO: implement test */
-      tr13.appendTcDetail("Not implemented.");
-      tr13.writeTo(writer);
-
-      /* TestCase: V2EnvironmentTests_PortletContext_Render_getMinorVersion   */
-      /* Details: "Method getMinorVersion(): Returns the minor version of     */
-      /* the portlet API supported by the container"                          */
-      TestResult tr14 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETMINORVERSION);
-      /* TODO: implement test */
-      tr14.appendTcDetail("Not implemented.");
-      tr14.writeTo(writer);
-
-      /* TestCase: V2EnvironmentTests_PortletContext_Render_getMimeType1      */
-      /* Details: "Method getMimeType(String): Returns a String containing    */
-      /* the MIME type of the specified file name"                            */
-      TestResult tr15 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETMIMETYPE1);
-      /* TODO: implement test */
-      tr15.appendTcDetail("Not implemented.");
-      tr15.writeTo(writer);
-
-      /* TestCase: V2EnvironmentTests_PortletContext_Render_getMimeType2      */
-      /* Details: "Method getMimeType(String): Returns \"text/html\" for an   */
-      /* HTML file with the approriate <mime-mapping> element in        */
-      /* web.xml "                                                            */
-      TestResult tr16 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETMIMETYPE2);
-      /* TODO: implement test */
-      tr16.appendTcDetail("Not implemented.");
-      tr16.writeTo(writer);
-
-      /* TestCase: V2EnvironmentTests_PortletContext_Render_getMimeType3      */
-      /* Details: "Method getMimeType(String): Returns \"image/gif\" for an   */
-      /* image file with the approriate <mime-mapping> element in       */
-      /* web.xml"                                                             */
-      TestResult tr17 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETMIMETYPE3);
-      /* TODO: implement test */
-      tr17.appendTcDetail("Not implemented.");
-      tr17.writeTo(writer);
-
-      /* TestCase: V2EnvironmentTests_PortletContext_Render_getMimeType4      */
-      /* Details: "Method getMimeType(String): Returns null if the MIME       */
-      /* type cannot be determined"                                           */
-      TestResult tr18 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETMIMETYPE4);
-      /* TODO: implement test */
-      tr18.appendTcDetail("Not implemented.");
-      tr18.writeTo(writer);
-
-      /* TestCase: V2EnvironmentTests_PortletContext_Render_getMimeType5      */
-      /* Details: "Method getMimeType(String): Returns null if the file       */
-      /* does not exist"                                                      */
-      TestResult tr19 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETMIMETYPE5);
-      /* TODO: implement test */
-      tr19.appendTcDetail("Not implemented.");
-      tr19.writeTo(writer);
-
-      /* TestCase: V2EnvironmentTests_PortletContext_Render_getRealPath1      */
-      /* Details: "Method getRealPath(String): Returns a String containing    */
-      /* the OS-specific real path for the given virtual path"                */
-      TestResult tr20 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETREALPATH1);
-      /* TODO: implement test */
-      tr20.appendTcDetail("Not implemented.");
-      tr20.writeTo(writer);
-
-      /* TestCase: V2EnvironmentTests_PortletContext_Render_getRealPath2      */
-      /* Details: "Method getRealPath(String): Returns null if the file       */
-      /* does not exist"                                                      */
-      TestResult tr21 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETREALPATH2);
-      /* TODO: implement test */
-      tr21.appendTcDetail("Not implemented.");
-      tr21.writeTo(writer);
-
-      /* TestCase: V2EnvironmentTests_PortletContext_Render_getRealPath3      */
-      /* Details: "Method getRealPath(String): Returns null if the            */
-      /* transformation cannot be performed"                                  */
-      TestResult tr22 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETREALPATH3);
-      /* TODO: implement test */
-      tr22.appendTcDetail("Not implemented.");
-      tr22.writeTo(writer);
-
-      /* TestCase: V2EnvironmentTests_PortletContext_Render_getResourcePaths1 */
-      /* Details: "Method getResourcePaths(String): Returns a                 */
-      /* java.util.Set<java.lang.String> containing all the paths to    */
-      /* resources within the web application longest sub-path of which       */
-      /* matches the supplied path argument  "                                */
-      TestResult tr23 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETRESOURCEPATHS1);
-      /* TODO: implement test */
-      tr23.appendTcDetail("Not implemented.");
-      tr23.writeTo(writer);
-
-      /* TestCase: V2EnvironmentTests_PortletContext_Render_getResourcePaths2 */
-      /* Details: "Method getResourcePaths(String): A path indicating a       */
-      /* file does not end with a slash (/)"                                  */
-      TestResult tr24 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETRESOURCEPATHS2);
-      /* TODO: implement test */
-      tr24.appendTcDetail("Not implemented.");
-      tr24.writeTo(writer);
-
-      /* TestCase: V2EnvironmentTests_PortletContext_Render_getResourcePaths3 */
-      /* Details: "Method getResourcePaths(String): A path indicating a       */
-      /* subdirectory ends with a slash (/)"                                  */
-      TestResult tr25 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETRESOURCEPATHS3);
-      /* TODO: implement test */
-      tr25.appendTcDetail("Not implemented.");
-      tr25.writeTo(writer);
-
-      /* TestCase: V2EnvironmentTests_PortletContext_Render_getResourcePaths4 */
-      /* Details: "Method getResourcePaths(String): Returns null if there     */
-      /* are no resources in the web application of which the path begins     */
-      /* with the supplied path"                                              */
-      TestResult tr26 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETRESOURCEPATHS4);
-      /* TODO: implement test */
-      tr26.appendTcDetail("Not implemented.");
-      tr26.writeTo(writer);
-
-      /* TestCase: V2EnvironmentTests_PortletContext_Render_getResource1      */
-      /* Details: "Method getResource(String): Returns a java.net.URL         */
-      /* object that maps to the specified path"                              */
-      TestResult tr27 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETRESOURCE1);
-      /* TODO: implement test */
-      tr27.appendTcDetail("Not implemented.");
-      tr27.writeTo(writer);
-
-      /* TestCase: V2EnvironmentTests_PortletContext_Render_getResource2      */
-      /* Details: "Method getResource(String): Returns null if no resource    */
-      /* is mapped to the path"                                               */
-      TestResult tr28 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETRESOURCE2);
-      /* TODO: implement test */
-      tr28.appendTcDetail("Not implemented.");
-      tr28.writeTo(writer);
-
-      /* TestCase: V2EnvironmentTests_PortletContext_Render_getResource3      */
-      /* Details: "Method getResource(String): Throws                         */
-      /* java.net.MalformedURLException if the path does not begin with a     */
-      /* slash (/)"                                                           */
-      TestResult tr29 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETRESOURCE3);
-      /* TODO: implement test */
-      tr29.appendTcDetail("Not implemented.");
-      tr29.writeTo(writer);
-
-      /* TestCase: V2EnvironmentTests_PortletContext_Render_getResource4      */
-      /* Details: "Method getResource(String): Throws                         */
-      /* java.net.MalformedURLException if the path is malformed"             */
-      TestResult tr30 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETRESOURCE4);
-      /* TODO: implement test */
-      tr30.appendTcDetail("Not implemented.");
-      tr30.writeTo(writer);
-
-      /* TestCase: V2EnvironmentTests_PortletContext_Render_getAttribute1     */
-      /* Details: "Method getAttribute(String): Returns a java.lang.Object    */
-      /* attribute value for the specified name"                              */
-      TestResult tr31 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETATTRIBUTE1);
-      /* TODO: implement test */
-      tr31.appendTcDetail("Not implemented.");
-      tr31.writeTo(writer);
-
-      /* TestCase: V2EnvironmentTests_PortletContext_Render_getAttribute2     */
-      /* Details: "Method getAttribute(String): Returns null if there is no   */
-      /* attribute value for the specified name"                              */
-      TestResult tr32 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETATTRIBUTE2);
-      /* TODO: implement test */
-      tr32.appendTcDetail("Not implemented.");
-      tr32.writeTo(writer);
-
-      /* TestCase: V2EnvironmentTests_PortletContext_Render_getAttribute3     */
-      /* Details: "Method getAttribute(String): Throws                        */
-      /* IllegalArgumentException if the name is null"                        */
-      TestResult tr33 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETATTRIBUTE3);
-      /* TODO: implement test */
-      tr33.appendTcDetail("Not implemented.");
-      tr33.writeTo(writer);
-
-      /* TestCase: V2EnvironmentTests_PortletContext_Render_getAttributeNames1 */
-      /* Details: "Method getAttributeNames(): Returns an                     */
-      /* java.util.Enumeration<java.lang.String> containing the         */
-      /* attribute names in the PortletContext"                               */
-      TestResult tr34 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETATTRIBUTENAMES1);
-      /* TODO: implement test */
-      tr34.appendTcDetail("Not implemented.");
-      tr34.writeTo(writer);
-
-      /* TestCase: V2EnvironmentTests_PortletContext_Render_getAttributeNames2 */
-      /* Details: "Method getAttributeNames(): Returns an empty Enumeration   */
-      /* if no attributes are available"                                      */
-      TestResult tr35 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETATTRIBUTENAMES2);
-      /* TODO: implement test */
-      tr35.appendTcDetail("Not implemented.");
-      tr35.writeTo(writer);
-
-      /* TestCase: V2EnvironmentTests_PortletContext_Render_getInitParameter1 */
-      /* Details: "Method getInitParameter(String): Returns a                 */
-      /* java.lang.String PortletContext initialization parameter value for   */
-      /* the specified name"                                                  */
-      TestResult tr36 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETINITPARAMETER1);
-      /* TODO: implement test */
-      tr36.appendTcDetail("Not implemented.");
-      tr36.writeTo(writer);
-
-      /* TestCase: V2EnvironmentTests_PortletContext_Render_getInitParameter2 */
-      /* Details: "Method getInitParameter(String): Returns null if there     */
-      /* is no inittialization parameter for the specified name"              */
-      TestResult tr37 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETINITPARAMETER2);
-      /* TODO: implement test */
-      tr37.appendTcDetail("Not implemented.");
-      tr37.writeTo(writer);
-
-      /* TestCase: V2EnvironmentTests_PortletContext_Render_getInitParameter3 */
-      /* Details: "Method getInitParameter(String): Throws                    */
-      /* IllegalArgumentException if the name is null"                        */
-      TestResult tr38 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETINITPARAMETER3);
-      /* TODO: implement test */
-      tr38.appendTcDetail("Not implemented.");
-      tr38.writeTo(writer);
-
-      /* TestCase: V2EnvironmentTests_PortletContext_Render_getInitParameterNames1 */
-      /* Details: "Method getInitParameterNames(): Returns an                 */
-      /* java.util.Enumeration<java.lang.String> containing the         */
-      /* InitParameter names in the PortletContext"                           */
-      TestResult tr39 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETINITPARAMETERNAMES1);
-      /* TODO: implement test */
-      tr39.appendTcDetail("Not implemented.");
-      tr39.writeTo(writer);
-
-      /* TestCase: V2EnvironmentTests_PortletContext_Render_getInitParameterNames2 */
-      /* Details: "Method getInitParameterNames(): Returns an empty           */
-      /* Enumeration if no InitParameters are available"                      */
-      TestResult tr40 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETINITPARAMETERNAMES2);
-      /* TODO: implement test */
-      tr40.appendTcDetail("Not implemented.");
-      tr40.writeTo(writer);
-
-      /* TestCase: V2EnvironmentTests_PortletContext_Render_logA              */
-      /* Details: "Method log(String): Writes specified message to a          */
-      /* portlet log file"                                                    */
-      TestResult tr41 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_LOGA);
-      /* TODO: implement test */
-      tr41.appendTcDetail("Not implemented.");
-      tr41.writeTo(writer);
-
-      /* TestCase: V2EnvironmentTests_PortletContext_Render_logB              */
-      /* Details: "Method log(String, Throwable): Writes specified message    */
-      /* and stack trace to a portlet log file"                               */
-      TestResult tr42 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_LOGB);
-      /* TODO: implement test */
-      tr42.appendTcDetail("Not implemented.");
-      tr42.writeTo(writer);
-
-      /* TestCase: V2EnvironmentTests_PortletContext_Render_removeAttribute1  */
-      /* Details: "Method removeAttribute(String): Removes the attribute      */
-      /* with the specified nale"                                             */
-      TestResult tr43 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_REMOVEATTRIBUTE1);
-      /* TODO: implement test */
-      tr43.appendTcDetail("Not implemented.");
-      tr43.writeTo(writer);
-
-      /* TestCase: V2EnvironmentTests_PortletContext_Render_removeAttribute2  */
-      /* Details: "Method removeAttribute(String): Throws                     */
-      /* IllegalArgumentException if the name is null"                        */
-      TestResult tr44 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_REMOVEATTRIBUTE2);
-      /* TODO: implement test */
-      tr44.appendTcDetail("Not implemented.");
-      tr44.writeTo(writer);
-
-      /* TestCase: V2EnvironmentTests_PortletContext_Render_setAttribute1     */
-      /* Details: "Method setAttribute(String, Object): Sets an attribute     */
-      /* for the specified name in the portlet context"                       */
-      TestResult tr45 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_SETATTRIBUTE1);
-      /* TODO: implement test */
-      tr45.appendTcDetail("Not implemented.");
-      tr45.writeTo(writer);
-
-      /* TestCase: V2EnvironmentTests_PortletContext_Render_setAttribute2     */
-      /* Details: "Method setAttribute(String, Object): Any existing          */
-      /* attribute for the specified name is removed"                         */
-      TestResult tr46 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_SETATTRIBUTE2);
-      /* TODO: implement test */
-      tr46.appendTcDetail("Not implemented.");
-      tr46.writeTo(writer);
-
-      /* TestCase: V2EnvironmentTests_PortletContext_Render_setAttribute3     */
-      /* Details: "Method setAttribute(String, Object): If the specified      */
-      /* name is null, the attribute is removed"                              */
-      TestResult tr47 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_SETATTRIBUTE3);
-      /* TODO: implement test */
-      tr47.appendTcDetail("Not implemented.");
-      tr47.writeTo(writer);
-
-      /* TestCase: V2EnvironmentTests_PortletContext_Render_setAttribute4     */
-      /* Details: "Method setAttribute(String, Object): Throws                */
-      /* IllegalArgumentException if the name is null"                        */
-      TestResult tr48 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_SETATTRIBUTE4);
-      /* TODO: implement test */
-      tr48.appendTcDetail("Not implemented.");
-      tr48.writeTo(writer);
-
-      /* TestCase: V2EnvironmentTests_PortletContext_Render_getPortletContextName1 */
-      /* Details: "Method getPortletContextName(): Returns the portlet        */
-      /* application name"                                                    */
-      TestResult tr49 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETPORTLETCONTEXTNAME1);
-      /* TODO: implement test */
-      tr49.appendTcDetail("Not implemented.");
-      tr49.writeTo(writer);
-
-      /* TestCase: V2EnvironmentTests_PortletContext_Render_getPortletContextName2 */
-      /* Details: "Method getPortletContextName(): The name is as specified   */
-      /* in web.xml the <display-name> element"                         */
-      TestResult tr50 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETPORTLETCONTEXTNAME2);
-      /* TODO: implement test */
-      tr50.appendTcDetail("Not implemented.");
-      tr50.writeTo(writer);
-
-      /* TestCase: V2EnvironmentTests_PortletContext_Render_getPortletContextName3 */
-      /* Details: "Method getPortletContextName(): Returns null if no         */
-      /* web.xml <display-name> element is defined"                     */
-      TestResult tr51 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETPORTLETCONTEXTNAME3);
-      /* TODO: implement test */
-      tr51.appendTcDetail("Not implemented.");
-      tr51.writeTo(writer);
-
-      /* TestCase: V2EnvironmentTests_PortletContext_Render_getContainerRuntimeOptions1 */
-      /* Details: "Method getContainerRuntimeOptions(): Returns an            */
-      /* java.util.Enumeration<java.lang.String> containing the         */
-      /* available runtime option names"                                      */
-      TestResult tr52 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETCONTAINERRUNTIMEOPTIONS1);
-      /* TODO: implement test */
-      tr52.appendTcDetail("Not implemented.");
-      tr52.writeTo(writer);
-
-      /* TestCase: V2EnvironmentTests_PortletContext_Render_getContainerRuntimeOptions2 */
-      /* Details: "Method getContainerRuntimeOptions(): Returns an empty      */
-      /* Enumeration if no runtime options are available"                     */
-      TestResult tr53 = tcd.getTestResultFailed(V2ENVIRONMENTTESTS_PORTLETCONTEXT_RENDER_GETCONTAINERRUNTIMEOPTIONS2);
-      /* TODO: implement test */
-      tr53.appendTcDetail("Not implemented.");
-      tr53.writeTo(writer);
-
-   }
-
-}


Mime
View raw message