portals-pluto-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From msnickl...@apache.org
Subject [29/30] completed implemetation of test module V2URLTests
Date Wed, 08 Oct 2014 11:02:52 GMT
http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/dc496844/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_PortletURLGenerationListener_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_PortletURLGenerationListener_ApiRender.java b/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_PortletURLGenerationListener_ApiRender.java
deleted file mode 100644
index 392fb08..0000000
--- a/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_PortletURLGenerationListener_ApiRender.java
+++ /dev/null
@@ -1,730 +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 URLTests_PortletURLGenerationListener_ApiRender_event
- *
- */
-public class URLTests_PortletURLGenerationListener_ApiRender implements Portlet, ResourceServingPortlet {
-   private static final String LOG_CLASS = 
-         URLTests_PortletURLGenerationListener_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();
-
-      // evaluate results for test case V2URLTests_PortletURLGenerationListener_ApiRender_filterActionURL1
-      {
-         JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-         TestResult tr1 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDER_FILTERACTIONURL1);
-         String tcval = portletReq.getParameter("tc");
-         if (tcval.equals("V2URLTests_PortletURLGenerationListener_ApiRender_filterActionURL1")) {
-            // Verify that the listener set the parameter as expected
-            String val = portletReq.getParameter("PUGL");
-            boolean ok = (val != null) && val.equals("Action");
-            if (!ok) {
-               tr1.appendTcDetail("Parameter not set by listener. Expected: Action, actual: " + val);
-            }
-            tr1.setTcSuccess(ok);
-            PortletSession ps = portletReq.getPortletSession();
-            ps.setAttribute(RESULT_ATTR_PREFIX + "V2URLTests_PortletURLGenerationListener_ApiRender_filterActionURL1", tr1);
-         }
-      }
-
-      // evaluate results for test case V2URLTests_PortletURLGenerationListener_ApiRender_filterActionURL2
-      {
-         JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-         TestResult tr2 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDER_FILTERACTIONURL2);
-         String tcval = portletReq.getParameter("tc");
-         if (tcval.equals("V2URLTests_PortletURLGenerationListener_ApiRender_filterActionURL2")) {
-            // Verify that the listener set the parameter as expected
-            String val = portletReq.getParameter("PUGL");
-            boolean ok = (val != null) && val.equals("Action");
-            if (!ok) {
-               tr2.appendTcDetail("Parameter not set by listener. Expected: Action, actual: " + val);
-            }
-            tr2.setTcSuccess(ok);
-            PortletSession ps = portletReq.getPortletSession();
-            ps.setAttribute(RESULT_ATTR_PREFIX + "V2URLTests_PortletURLGenerationListener_ApiRender_filterActionURL2", tr2);
-         }
-      }
-
-      // evaluate results for test case V2URLTests_PortletURLGenerationListener_ApiRender_filterActionURL3
-      {
-         JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-         TestResult tr3 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDER_FILTERACTIONURL3);
-         String tcval = portletReq.getParameter("tc");
-         if (tcval.equals("V2URLTests_PortletURLGenerationListener_ApiRender_filterActionURL3")) {
-            // Verify that the listener set the parameter as expected
-            String val = portletReq.getParameter("PUGL");
-            boolean ok = (val != null) && val.equals("Action");
-            if (!ok) {
-               tr3.appendTcDetail("Parameter not set by listener. Expected: Action, actual: " + val);
-            }
-            tr3.setTcSuccess(ok);
-            PortletSession ps = portletReq.getPortletSession();
-            ps.setAttribute(RESULT_ATTR_PREFIX + "V2URLTests_PortletURLGenerationListener_ApiRender_filterActionURL3", tr3);
-         }
-      }
-
-      // evaluate results for test case V2URLTests_PortletURLGenerationListener_ApiRender_filterActionURL4
-      {
-         JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-         TestResult tr4 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDER_FILTERACTIONURL4);
-         String tcval = portletReq.getParameter("tc");
-         if (tcval.equals("V2URLTests_PortletURLGenerationListener_ApiRender_filterActionURL4")) {
-            // Verify that the listener set the parameter as expected
-            String val = portletReq.getParameter("PUGL");
-            boolean ok = (val != null) && val.equals("Action");
-            if (!ok) {
-               tr4.appendTcDetail("Parameter not set by listener. Expected: Action, actual: " + val);
-            }
-            tr4.setTcSuccess(ok);
-            PortletSession ps = portletReq.getPortletSession();
-            ps.setAttribute(RESULT_ATTR_PREFIX + "V2URLTests_PortletURLGenerationListener_ApiRender_filterActionURL4", tr4);
-         }
-      }
-
-      // evaluate results for test case V2URLTests_PortletURLGenerationListener_ApiRender_filterActionURL5
-      {
-         JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-         TestResult tr5 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDER_FILTERACTIONURL5);
-         String tcval = portletReq.getParameter("tc");
-         if (tcval.equals("V2URLTests_PortletURLGenerationListener_ApiRender_filterActionURL5")) {
-            // Verify that the listener set the parameter as expected
-            String val = portletReq.getParameter("PUGL");
-            boolean ok = (val != null) && val.equals("Action");
-            if (!ok) {
-               tr5.appendTcDetail("Parameter not set by listener. Expected: Action, actual: " + val);
-            }
-            tr5.setTcSuccess(ok);
-            PortletSession ps = portletReq.getPortletSession();
-            ps.setAttribute(RESULT_ATTR_PREFIX + "V2URLTests_PortletURLGenerationListener_ApiRender_filterActionURL5", tr5);
-         }
-      }
-
-   }
-
-   @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();
-
-      // evaluate results for test case V2URLTests_PortletURLGenerationListener_ApiRender_filterResourceURL1
-      {
-         JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-         TestResult tr11 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDER_FILTERRESOURCEURL1);
-         String tcval = portletReq.getParameter("tc");
-         if (tcval.equals("V2URLTests_PortletURLGenerationListener_ApiRender_filterResourceURL1")) {
-            // Verify that the listener set the parameter as expected
-            String val = portletReq.getParameter("PUGL");
-            boolean ok = (val != null) && val.equals("Resource");
-            if (!ok) {
-               tr11.appendTcDetail("Parameter not set by listener. Expected: Resource, actual: " + val);
-            }
-            tr11.setTcSuccess(ok);
-            tr11.writeTo(writer);
-         }
-      }
-
-      // evaluate results for test case V2URLTests_PortletURLGenerationListener_ApiRender_filterResourceURL2
-      {
-         JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-         TestResult tr12 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDER_FILTERRESOURCEURL2);
-         String tcval = portletReq.getParameter("tc");
-         if (tcval.equals("V2URLTests_PortletURLGenerationListener_ApiRender_filterResourceURL2")) {
-            // Verify that the listener set the parameter as expected
-            String val = portletReq.getParameter("PUGL");
-            boolean ok = (val != null) && val.equals("Resource");
-            if (!ok) {
-               tr12.appendTcDetail("Parameter not set by listener. Expected: Resource, actual: " + val);
-            }
-            tr12.setTcSuccess(ok);
-            tr12.writeTo(writer);
-         }
-      }
-
-      // evaluate results for test case V2URLTests_PortletURLGenerationListener_ApiRender_filterResourceURL3
-      {
-         JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-         TestResult tr13 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDER_FILTERRESOURCEURL3);
-         String tcval = portletReq.getParameter("tc");
-         if (tcval.equals("V2URLTests_PortletURLGenerationListener_ApiRender_filterResourceURL3")) {
-            // Verify that the listener set the parameter as expected
-            String val = portletReq.getParameter("PUGL");
-            boolean ok = (val != null) && val.equals("Resource");
-            if (!ok) {
-               tr13.appendTcDetail("Parameter not set by listener. Expected: Resource, actual: " + val);
-            }
-            tr13.setTcSuccess(ok);
-            tr13.writeTo(writer);
-         }
-      }
-
-      // evaluate results for test case V2URLTests_PortletURLGenerationListener_ApiRender_filterResourceURL4
-      {
-         JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-         TestResult tr14 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDER_FILTERRESOURCEURL4);
-         String tcval = portletReq.getParameter("tc");
-         if (tcval.equals("V2URLTests_PortletURLGenerationListener_ApiRender_filterResourceURL4")) {
-            // Verify that the listener set the parameter as expected
-            String val = portletReq.getParameter("PUGL");
-            boolean ok = (val != null) && val.equals("Resource");
-            if (!ok) {
-               tr14.appendTcDetail("Parameter not set by listener. Expected: Resource, actual: " + val);
-            }
-            tr14.setTcSuccess(ok);
-            tr14.writeTo(writer);
-         }
-      }
-
-      // evaluate results for test case V2URLTests_PortletURLGenerationListener_ApiRender_filterResourceURL5
-      {
-         JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-         TestResult tr15 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDER_FILTERRESOURCEURL5);
-         String tcval = portletReq.getParameter("tc");
-         if (tcval.equals("V2URLTests_PortletURLGenerationListener_ApiRender_filterResourceURL5")) {
-            // Verify that the listener set the parameter as expected
-            String val = portletReq.getParameter("PUGL");
-            boolean ok = (val != null) && val.equals("Resource");
-            if (!ok) {
-               tr15.appendTcDetail("Parameter not set by listener. Expected: Resource, actual: " + val);
-            }
-            tr15.setTcSuccess(ok);
-            tr15.writeTo(writer);
-         }
-      }
-
-      // evaluate results for test case V2URLTests_PortletURLGenerationListener_ApiRender_filterResourceURL7
-      {
-         JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-         TestResult tr16 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDER_FILTERRESOURCEURL7);
-         String tcval = portletReq.getParameter("tc");
-         if (tcval.equals("V2URLTests_PortletURLGenerationListener_ApiRender_filterResourceURL7")) {
-            // Verify that the listener set the parameter as expected
-            String val = portletReq.getParameter("PUGL");
-            boolean ok = (val != null) && val.equals("Resource");
-            if (!ok) {
-               tr16.appendTcDetail("Parameter not set by listener. Expected: Resource, actual: " + val);
-            }
-            tr16.setTcSuccess(ok);
-            tr16.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();
-
-      JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
-      // Create result objects for the tests
-
-      ClassChecker cc = new ClassChecker(PortletURLGenerationListener.class);
-
-      /* TestCase: V2URLTests_PortletURLGenerationListener_ApiRender_configuration */
-      /* Details: "A PortletURLGenerationListener can be configured in the    */
-      /* portlet deployment descriptor"                                       */
-      TestResult tr0 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDER_CONFIGURATION);
-      try {
-         PortletURL turl = portletResp.createRenderURL();
-         turl.setParameter("tc", "V2URLTests_PortletURLGenerationListener_ApiRender_configuration");
-         StringWriter tsw = new StringWriter();
-         turl.write(tsw);
-         String urlstr = tsw.toString();
-         
-         // add the execution link
-         TestLink tl = new TestLink("V2URLTests_PortletURLGenerationListener_ApiRender_configuration", urlstr);
-         tl.writeTo(writer);
-         
-         // evaluate results
-         String tcval = portletReq.getParameter("tc");
-         if (tcval.equals("V2URLTests_PortletURLGenerationListener_ApiRender_configuration")) {
-            // Verify that the listener set the parameter as expected
-            String val = portletReq.getParameter("PUGL");
-            boolean ok = (val != null) && val.equals("Render");
-            if (!ok) {
-               tr0.appendTcDetail("Parameter not set by listener. Expected: Render, actual: " + val);
-            }
-            tr0.setTcSuccess(ok);
-         }
-      } catch(Exception e) {tr0.appendTcDetail(e.toString());}
-      tr0.writeTo(writer);
-
-      /* TestCase: V2URLTests_PortletURLGenerationListener_ApiRender_filterActionURL1 */
-      /* Details: "Method filterActionURL(PortletURL): The                    */
-      /* filterActionURL(PortletURL): method is called before the             */
-      /* toString() method is executed"                                       */
-      TestResult tr1 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDER_FILTERACTIONURL1);
-      try {
-         PortletURL turl = portletResp.createRenderURL();
-         turl.setParameter("tc", "V2URLTests_PortletURLGenerationListener_ApiRender_filterActionURL1");
-         String urlstr = turl.toString();
-         
-         // add the execution button for an action request
-         TestButton tb = new TestButton("V2URLTests_PortletURLGenerationListener_ApiRender_filterActionURL1", urlstr);
-         tb.writeTo(writer);
-         
-         // display evaluated results
-         String tcval = portletReq.getParameter("tc");
-         if (tcval.equals("V2URLTests_PortletURLGenerationListener_ApiRender_filterActionURL1")) {
-            PortletSession ps = portletReq.getPortletSession();
-            TestResult tmp = (TestResult)ps.getAttribute(RESULT_ATTR_PREFIX + "V2URLTests_PortletURLGenerationListener_ApiRender_filterActionURL1");
-            if (tmp != null) {
-               tr1 = tmp;
-               ps.removeAttribute(RESULT_ATTR_PREFIX + "V2URLTests_PortletURLGenerationListener_ApiRender_filterActionURL1");
-            }
-         }
-      } catch(Exception e) {tr1.appendTcDetail(e.toString());}
-      tr1.writeTo(writer);
-
-      /* TestCase: V2URLTests_PortletURLGenerationListener_ApiRender_filterActionURL2 */
-      /* Details: "Method filterActionURL(PortletURL): The                    */
-      /* filterActionURL(PortletURL): method is called before the             */
-      /* write(Writer out) method is executed"                                */
-      TestResult tr2 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDER_FILTERACTIONURL2);
-      try {
-         PortletURL turl = portletResp.createRenderURL();
-         turl.setParameter("tc", "V2URLTests_PortletURLGenerationListener_ApiRender_filterActionURL2");
-         StringWriter tsw = new StringWriter();
-         turl.write(tsw);
-         String urlstr = tsw.toString();
-         
-         // add the execution button for an action request
-         TestButton tb = new TestButton("V2URLTests_PortletURLGenerationListener_ApiRender_filterActionURL2", urlstr);
-         tb.writeTo(writer);
-         
-         // display evaluated results
-         String tcval = portletReq.getParameter("tc");
-         if (tcval.equals("V2URLTests_PortletURLGenerationListener_ApiRender_filterActionURL2")) {
-            PortletSession ps = portletReq.getPortletSession();
-            TestResult tmp = (TestResult)ps.getAttribute(RESULT_ATTR_PREFIX + "V2URLTests_PortletURLGenerationListener_ApiRender_filterActionURL2");
-            if (tmp != null) {
-               tr2 = tmp;
-               ps.removeAttribute(RESULT_ATTR_PREFIX + "V2URLTests_PortletURLGenerationListener_ApiRender_filterActionURL2");
-            }
-         }
-      } catch(Exception e) {tr2.appendTcDetail(e.toString());}
-      tr2.writeTo(writer);
-
-      /* TestCase: V2URLTests_PortletURLGenerationListener_ApiRender_filterActionURL3 */
-      /* Details: "Method filterActionURL(PortletURL): The                    */
-      /* filterActionURL(PortletURL): method is called before the             */
-      /* write(Writer out, boolean escapeXML) method is executed"             */
-      TestResult tr3 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDER_FILTERACTIONURL3);
-      try {
-         PortletURL turl = portletResp.createRenderURL();
-         turl.setParameter("tc", "V2URLTests_PortletURLGenerationListener_ApiRender_filterActionURL3");
-         StringWriter tsw = new StringWriter();
-         turl.write(tsw, true);
-         String urlstr = tsw.toString();
-         
-         // add the execution button for an action request
-         TestButton tb = new TestButton("V2URLTests_PortletURLGenerationListener_ApiRender_filterActionURL3", urlstr);
-         tb.writeTo(writer);
-         
-         // display evaluated results
-         String tcval = portletReq.getParameter("tc");
-         if (tcval.equals("V2URLTests_PortletURLGenerationListener_ApiRender_filterActionURL3")) {
-            PortletSession ps = portletReq.getPortletSession();
-            TestResult tmp = (TestResult)ps.getAttribute(RESULT_ATTR_PREFIX + "V2URLTests_PortletURLGenerationListener_ApiRender_filterActionURL3");
-            if (tmp != null) {
-               tr3 = tmp;
-               ps.removeAttribute(RESULT_ATTR_PREFIX + "V2URLTests_PortletURLGenerationListener_ApiRender_filterActionURL3");
-            }
-         }
-      } catch(Exception e) {tr3.appendTcDetail(e.toString());}
-      tr3.writeTo(writer);
-
-      /* TestCase: V2URLTests_PortletURLGenerationListener_ApiRender_filterActionURL4 */
-      /* Details: "Method filterActionURL(PortletURL): The filterActionURL    */
-      /* method is passed the PortletURL object representing the action       */
-      /* URL"                                                                 */
-      TestResult tr4 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDER_FILTERACTIONURL4);
-      try {
-         PortletURL turl = portletResp.createRenderURL();
-         turl.setParameter("tc", "V2URLTests_PortletURLGenerationListener_ApiRender_filterActionURL4");
-         StringWriter tsw = new StringWriter();
-         turl.write(tsw);
-         String urlstr = tsw.toString();
-         
-         // add the execution button for an action request
-         TestButton tb = new TestButton("V2URLTests_PortletURLGenerationListener_ApiRender_filterActionURL4", urlstr);
-         tb.writeTo(writer);
-         
-         // display evaluated results
-         String tcval = portletReq.getParameter("tc");
-         if (tcval.equals("V2URLTests_PortletURLGenerationListener_ApiRender_filterActionURL4")) {
-            PortletSession ps = portletReq.getPortletSession();
-            TestResult tmp = (TestResult)ps.getAttribute(RESULT_ATTR_PREFIX + "V2URLTests_PortletURLGenerationListener_ApiRender_filterActionURL4");
-            if (tmp != null) {
-               tr4 = tmp;
-               ps.removeAttribute(RESULT_ATTR_PREFIX + "V2URLTests_PortletURLGenerationListener_ApiRender_filterActionURL4");
-            }
-         }
-      } catch(Exception e) {tr4.appendTcDetail(e.toString());}
-      tr4.writeTo(writer);
-
-      /* TestCase: V2URLTests_PortletURLGenerationListener_ApiRender_filterActionURL5 */
-      /* Details: "Method filterActionURL(PortletURL): The input URL object   */
-      /* can be modified by setting a parameter and the modified URL object   */
-      /* is processed by the PortletURL toString or write method"             */
-      TestResult tr5 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDER_FILTERACTIONURL5);
-      try {
-         PortletURL turl = portletResp.createRenderURL();
-         turl.setParameter("tc", "V2URLTests_PortletURLGenerationListener_ApiRender_filterActionURL5");
-         String urlstr = turl.toString();
-         
-         // add the execution button for an action request
-         TestButton tb = new TestButton("V2URLTests_PortletURLGenerationListener_ApiRender_filterActionURL5", urlstr);
-         tb.writeTo(writer);
-         
-         // display evaluated results
-         String tcval = portletReq.getParameter("tc");
-         if (tcval.equals("V2URLTests_PortletURLGenerationListener_ApiRender_filterActionURL5")) {
-            PortletSession ps = portletReq.getPortletSession();
-            TestResult tmp = (TestResult)ps.getAttribute(RESULT_ATTR_PREFIX + "V2URLTests_PortletURLGenerationListener_ApiRender_filterActionURL5");
-            if (tmp != null) {
-               tr5 = tmp;
-               ps.removeAttribute(RESULT_ATTR_PREFIX + "V2URLTests_PortletURLGenerationListener_ApiRender_filterActionURL5");
-            }
-         }
-      } catch(Exception e) {tr5.appendTcDetail(e.toString());}
-      tr5.writeTo(writer);
-
-      /* TestCase: V2URLTests_PortletURLGenerationListener_ApiRender_filterRenderURL1 */
-      /* Details: "Method filterRenderURL(PortletURL): The                    */
-      /* filterRenderURL(PortletURL): method is called before the             */
-      /* toString() method is executed"                                       */
-      TestResult tr6 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDER_FILTERRENDERURL1);
-      try {
-         PortletURL turl = portletResp.createRenderURL();
-         turl.setParameter("tc", "V2URLTests_PortletURLGenerationListener_ApiRender_filterRenderURL1");
-         String urlstr = turl.toString();
-         
-         // add the execution link
-         TestLink tl = new TestLink("V2URLTests_PortletURLGenerationListener_ApiRender_filterRenderURL1", urlstr);
-         tl.writeTo(writer);
-         
-         // evaluate results
-         String tcval = portletReq.getParameter("tc");
-         if (tcval.equals("V2URLTests_PortletURLGenerationListener_ApiRender_filterRenderURL1")) {
-            // Verify that the listener set the parameter as expected
-            String val = portletReq.getParameter("PUGL");
-            boolean ok = (val != null) && val.equals("Render");
-            if (!ok) {
-               tr6.appendTcDetail("Parameter not set by listener. Expected: Render, actual: " + val);
-            }
-            tr6.setTcSuccess(ok);
-         }
-      } catch(Exception e) {tr6.appendTcDetail(e.toString());}
-      tr6.writeTo(writer);
-
-      /* TestCase: V2URLTests_PortletURLGenerationListener_ApiRender_filterRenderURL2 */
-      /* Details: "Method filterRenderURL(PortletURL): The                    */
-      /* filterRenderURL(PortletURL): method is called before the             */
-      /* write(Writer out) method is executed"                                */
-      TestResult tr7 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDER_FILTERRENDERURL2);
-      try {
-         PortletURL turl = portletResp.createRenderURL();
-         turl.setParameter("tc", "V2URLTests_PortletURLGenerationListener_ApiRender_filterRenderURL2");
-         StringWriter tsw = new StringWriter();
-         turl.write(tsw);
-         String urlstr = tsw.toString();
-         
-         // add the execution link
-         TestLink tl = new TestLink("V2URLTests_PortletURLGenerationListener_ApiRender_filterRenderURL2", urlstr);
-         tl.writeTo(writer);
-         
-         // evaluate results
-         String tcval = portletReq.getParameter("tc");
-         if (tcval.equals("V2URLTests_PortletURLGenerationListener_ApiRender_filterRenderURL2")) {
-            // Verify that the listener set the parameter as expected
-            String val = portletReq.getParameter("PUGL");
-            boolean ok = (val != null) && val.equals("Render");
-            if (!ok) {
-               tr7.appendTcDetail("Parameter not set by listener. Expected: Render, actual: " + val);
-            }
-            tr7.setTcSuccess(ok);
-         }
-      } catch(Exception e) {tr7.appendTcDetail(e.toString());}
-      tr7.writeTo(writer);
-
-      /* TestCase: V2URLTests_PortletURLGenerationListener_ApiRender_filterRenderURL3 */
-      /* Details: "Method filterRenderURL(PortletURL): The                    */
-      /* filterRenderURL(PortletURL): method is called before the             */
-      /* write(Writer out, boolean escapeXML) method is executed"             */
-      TestResult tr8 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDER_FILTERRENDERURL3);
-      try {
-         PortletURL turl = portletResp.createRenderURL();
-         turl.setParameter("tc", "V2URLTests_PortletURLGenerationListener_ApiRender_filterRenderURL3");
-         StringWriter tsw = new StringWriter();
-         turl.write(tsw, true);
-         String urlstr = tsw.toString();
-         
-         // add the execution link
-         TestLink tl = new TestLink("V2URLTests_PortletURLGenerationListener_ApiRender_filterRenderURL3", urlstr);
-         tl.writeTo(writer);
-         
-         // evaluate results
-         String tcval = portletReq.getParameter("tc");
-         if (tcval.equals("V2URLTests_PortletURLGenerationListener_ApiRender_filterRenderURL3")) {
-            // Verify that the listener set the parameter as expected
-            String val = portletReq.getParameter("PUGL");
-            boolean ok = (val != null) && val.equals("Render");
-            if (!ok) {
-               tr8.appendTcDetail("Parameter not set by listener. Expected: Render, actual: " + val);
-            }
-            tr8.setTcSuccess(ok);
-         }
-      } catch(Exception e) {tr8.appendTcDetail(e.toString());}
-      tr8.writeTo(writer);
-
-      /* TestCase: V2URLTests_PortletURLGenerationListener_ApiRender_filterRenderURL4 */
-      /* Details: "Method filterRenderURL(PortletURL): The filterRenderURL    */
-      /* method is passed the PortletURL object representing the action       */
-      /* URL"                                                                 */
-      TestResult tr9 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDER_FILTERRENDERURL4);
-      try {
-         PortletURL turl = portletResp.createRenderURL();
-         turl.setParameter("tc", "V2URLTests_PortletURLGenerationListener_ApiRender_filterRenderURL4");
-         StringWriter tsw = new StringWriter();
-         turl.write(tsw);
-         String urlstr = tsw.toString();
-         
-         // add the execution link
-         TestLink tl = new TestLink("V2URLTests_PortletURLGenerationListener_ApiRender_filterRenderURL4", urlstr);
-         tl.writeTo(writer);
-         
-         // evaluate results
-         String tcval = portletReq.getParameter("tc");
-         if (tcval.equals("V2URLTests_PortletURLGenerationListener_ApiRender_filterRenderURL4")) {
-            // Verify that the listener set the parameter as expected
-            String val = portletReq.getParameter("PUGL");
-            boolean ok = (val != null) && val.equals("Render");
-            if (!ok) {
-               tr9.appendTcDetail("Parameter not set by listener. Expected: Render, actual: " + val);
-            }
-            tr9.setTcSuccess(ok);
-         }
-      } catch(Exception e) {tr9.appendTcDetail(e.toString());}
-      tr9.writeTo(writer);
-
-      /* TestCase: V2URLTests_PortletURLGenerationListener_ApiRender_filterRenderURL5 */
-      /* Details: "Method filterRenderURL(PortletURL): The input URL object   */
-      /* can be modified by setting a parameter and the modified URL object   */
-      /* is processed by the PortletURL toString or write method"             */
-      TestResult tr10 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDER_FILTERRENDERURL5);
-      try {
-         PortletURL turl = portletResp.createRenderURL();
-         turl.setParameter("tc", "V2URLTests_PortletURLGenerationListener_ApiRender_filterRenderURL5");
-         String urlstr = turl.toString();
-         
-         // add the execution link
-         TestLink tl = new TestLink("V2URLTests_PortletURLGenerationListener_ApiRender_filterRenderURL5", urlstr);
-         tl.writeTo(writer);
-         
-         // evaluate results
-         String tcval = portletReq.getParameter("tc");
-         if (tcval.equals("V2URLTests_PortletURLGenerationListener_ApiRender_filterRenderURL5")) {
-            // Verify that the listener set the parameter as expected
-            String val = portletReq.getParameter("PUGL");
-            boolean ok = (val != null) && val.equals("Render");
-            if (!ok) {
-               tr10.appendTcDetail("Parameter not set by listener. Expected: Render, actual: " + val);
-            }
-            tr10.setTcSuccess(ok);
-         }
-      } catch(Exception e) {tr10.appendTcDetail(e.toString());}
-      tr10.writeTo(writer);
-
-      /* TestCase: V2URLTests_PortletURLGenerationListener_ApiRender_filterResourceURL1 */
-      /* Details: "Method filterResourceURL(ResourceURL): The                 */
-      /* filterResourceURL(PortletURL): method is called before the           */
-      /* toString() method is executed"                                       */
-      TestResult tr11 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDER_FILTERRESOURCEURL1);
-      try {
-         PortletURL turl = portletResp.createRenderURL();
-         turl.setParameter("tc", "V2URLTests_PortletURLGenerationListener_ApiRender_filterResourceURL1");
-         String urlstr = turl.toString();
-         
-         // add the resource results fetcher to the output stream
-         ResourceLink rl = new ResourceLink("V2URLTests_PortletURLGenerationListener_ApiRender_filterResourceURL1", urlstr);
-         rl.writeResourceFetcher(writer);
-      } catch(Exception e) {
-         tr11.appendTcDetail(e.toString());
-         tr11.writeTo(writer);
-      }
-
-      /* TestCase: V2URLTests_PortletURLGenerationListener_ApiRender_filterResourceURL2 */
-      /* Details: "Method filterResourceURL(ResourceURL): The                 */
-      /* filterResourceURL(PortletURL): method is called before the           */
-      /* write(Writer out) method is executed"                                */
-      TestResult tr12 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDER_FILTERRESOURCEURL2);
-      try {
-         PortletURL turl = portletResp.createRenderURL();
-         turl.setParameter("tc", "V2URLTests_PortletURLGenerationListener_ApiRender_filterResourceURL2");
-         StringWriter tsw = new StringWriter();
-         turl.write(tsw);
-         String urlstr = tsw.toString();
-         
-         // add the resource results fetcher to the output stream
-         ResourceLink rl = new ResourceLink("V2URLTests_PortletURLGenerationListener_ApiRender_filterResourceURL2", urlstr);
-         rl.writeResourceFetcher(writer);
-      } catch(Exception e) {
-         tr12.appendTcDetail(e.toString());
-         tr12.writeTo(writer);
-      }
-
-      /* TestCase: V2URLTests_PortletURLGenerationListener_ApiRender_filterResourceURL3 */
-      /* Details: "Method filterResourceURL(ResourceURL): The                 */
-      /* filterResourceURL(PortletURL): method is called before the           */
-      /* write(Writer out, boolean escapeXML) method is executed"             */
-      TestResult tr13 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDER_FILTERRESOURCEURL3);
-      try {
-         PortletURL turl = portletResp.createRenderURL();
-         turl.setParameter("tc", "V2URLTests_PortletURLGenerationListener_ApiRender_filterResourceURL3");
-         StringWriter tsw = new StringWriter();
-         turl.write(tsw, true);
-         String urlstr = tsw.toString();
-         
-         // add the resource results fetcher to the output stream
-         ResourceLink rl = new ResourceLink("V2URLTests_PortletURLGenerationListener_ApiRender_filterResourceURL3", urlstr);
-         rl.writeResourceFetcher(writer);
-      } catch(Exception e) {
-         tr13.appendTcDetail(e.toString());
-         tr13.writeTo(writer);
-      }
-
-      /* TestCase: V2URLTests_PortletURLGenerationListener_ApiRender_filterResourceURL4 */
-      /* Details: "Method filterResourceURL(ResourceURL): The                 */
-      /* filterResourceURL method is passed the PortletURL object             */
-      /* representing the action URL"                                         */
-      TestResult tr14 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDER_FILTERRESOURCEURL4);
-      try {
-         PortletURL turl = portletResp.createRenderURL();
-         turl.setParameter("tc", "V2URLTests_PortletURLGenerationListener_ApiRender_filterResourceURL4");
-         StringWriter tsw = new StringWriter();
-         turl.write(tsw);
-         String urlstr = tsw.toString();
-         
-         // add the resource results fetcher to the output stream
-         ResourceLink rl = new ResourceLink("V2URLTests_PortletURLGenerationListener_ApiRender_filterResourceURL4", urlstr);
-         rl.writeResourceFetcher(writer);
-      } catch(Exception e) {
-         tr14.appendTcDetail(e.toString());
-         tr14.writeTo(writer);
-      }
-
-      /* TestCase: V2URLTests_PortletURLGenerationListener_ApiRender_filterResourceURL5 */
-      /* Details: "Method filterResourceURL(ResourceURL): The input URL       */
-      /* object can be modified by setting a parameter and the modified URL   */
-      /* object is processed by the PortletURL toString or write method"      */
-      TestResult tr15 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDER_FILTERRESOURCEURL5);
-      try {
-         PortletURL turl = portletResp.createRenderURL();
-         turl.setParameter("tc", "V2URLTests_PortletURLGenerationListener_ApiRender_filterResourceURL5");
-         String urlstr = turl.toString();
-         
-         // add the resource results fetcher to the output stream
-         ResourceLink rl = new ResourceLink("V2URLTests_PortletURLGenerationListener_ApiRender_filterResourceURL5", urlstr);
-         rl.writeResourceFetcher(writer);
-      } catch(Exception e) {
-         tr15.appendTcDetail(e.toString());
-         tr15.writeTo(writer);
-      }
-
-      /* TestCase: V2URLTests_PortletURLGenerationListener_ApiRender_filterResourceURL7 */
-      /* Details: "Method filterResourceURL(ResourceURL): The input URL       */
-      /* object can be modified by setting the resource ID and the modified   */
-      /* URL object is processed by the PortletURL toString or write          */
-      /* method"                                                              */
-      TestResult tr16 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDER_FILTERRESOURCEURL7);
-      try {
-         PortletURL turl = portletResp.createRenderURL();
-         turl.setParameter("tc", "V2URLTests_PortletURLGenerationListener_ApiRender_filterResourceURL7");
-         String urlstr = turl.toString();
-         
-         // add the resource results fetcher to the output stream
-         ResourceLink rl = new ResourceLink("V2URLTests_PortletURLGenerationListener_ApiRender_filterResourceURL7", urlstr);
-         rl.writeResourceFetcher(writer);
-      } catch(Exception e) {
-         tr16.appendTcDetail(e.toString());
-         tr16.writeTo(writer);
-      }
-
-   }
-
-}

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/dc496844/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_PortletURLGenerationListener_ApiRenderActurl.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_PortletURLGenerationListener_ApiRenderActurl.java b/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_PortletURLGenerationListener_ApiRenderActurl.java
new file mode 100644
index 0000000..42e21ef
--- /dev/null
+++ b/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_PortletURLGenerationListener_ApiRenderActurl.java
@@ -0,0 +1,380 @@
+/*  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 URLTests_PortletURLGenerationListener_ApiRenderActurl_event
+ *
+ */
+public class URLTests_PortletURLGenerationListener_ApiRenderActurl implements Portlet, ResourceServingPortlet {
+   private static final String LOG_CLASS = 
+         URLTests_PortletURLGenerationListener_ApiRenderActurl.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();
+
+      // evaluate results for test case V2URLTests_PortletURLGenerationListener_ApiRenderActurl_configuration
+      {
+         JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+         TestResult tr0 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDERACTURL_CONFIGURATION);
+         String tcval = portletReq.getParameter("tc");
+         if (tcval.equals("V2URLTests_PortletURLGenerationListener_ApiRenderActurl_configuration")) {
+            // Verify that the listener set the parameter as expected
+            String val = portletReq.getParameter("PUGL");
+            boolean ok = (val != null) && val.equals("Action");
+            if (!ok) {
+               tr0.appendTcDetail("Parameter not set by listener. Expected: Action, actual: " + val);
+            }
+            tr0.setTcSuccess(ok);
+            PortletSession ps = portletReq.getPortletSession();
+            ps.setAttribute(RESULT_ATTR_PREFIX + "V2URLTests_PortletURLGenerationListener_ApiRenderActurl_configuration", tr0);
+         }
+      }
+
+      // evaluate results for test case V2URLTests_PortletURLGenerationListener_ApiRenderActurl_filterActionURL1
+      {
+         JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+         TestResult tr1 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDERACTURL_FILTERACTIONURL1);
+         String tcval = portletReq.getParameter("tc");
+         if (tcval.equals("V2URLTests_PortletURLGenerationListener_ApiRenderActurl_filterActionURL1")) {
+            // Verify that the listener set the parameter as expected
+            String val = portletReq.getParameter("PUGL");
+            boolean ok = (val != null) && val.equals("Action");
+            if (!ok) {
+               tr1.appendTcDetail("Parameter not set by listener. Expected: Action, actual: " + val);
+            }
+            tr1.setTcSuccess(ok);
+            PortletSession ps = portletReq.getPortletSession();
+            ps.setAttribute(RESULT_ATTR_PREFIX + "V2URLTests_PortletURLGenerationListener_ApiRenderActurl_filterActionURL1", tr1);
+         }
+      }
+
+      // evaluate results for test case V2URLTests_PortletURLGenerationListener_ApiRenderActurl_filterActionURL2
+      {
+         JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+         TestResult tr2 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDERACTURL_FILTERACTIONURL2);
+         String tcval = portletReq.getParameter("tc");
+         if (tcval.equals("V2URLTests_PortletURLGenerationListener_ApiRenderActurl_filterActionURL2")) {
+            // Verify that the listener set the parameter as expected
+            String val = portletReq.getParameter("PUGL");
+            boolean ok = (val != null) && val.equals("Action");
+            if (!ok) {
+               tr2.appendTcDetail("Parameter not set by listener. Expected: Action, actual: " + val);
+            }
+            tr2.setTcSuccess(ok);
+            PortletSession ps = portletReq.getPortletSession();
+            ps.setAttribute(RESULT_ATTR_PREFIX + "V2URLTests_PortletURLGenerationListener_ApiRenderActurl_filterActionURL2", tr2);
+         }
+      }
+
+      // evaluate results for test case V2URLTests_PortletURLGenerationListener_ApiRenderActurl_filterActionURL3
+      {
+         JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+         TestResult tr3 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDERACTURL_FILTERACTIONURL3);
+         String tcval = portletReq.getParameter("tc");
+         if (tcval.equals("V2URLTests_PortletURLGenerationListener_ApiRenderActurl_filterActionURL3")) {
+            // Verify that the listener set the parameter as expected
+            String val = portletReq.getParameter("PUGL");
+            boolean ok = (val != null) && val.equals("Action");
+            if (!ok) {
+               tr3.appendTcDetail("Parameter not set by listener. Expected: Action, actual: " + val);
+            }
+            tr3.setTcSuccess(ok);
+            PortletSession ps = portletReq.getPortletSession();
+            ps.setAttribute(RESULT_ATTR_PREFIX + "V2URLTests_PortletURLGenerationListener_ApiRenderActurl_filterActionURL3", tr3);
+         }
+      }
+
+      // evaluate results for test case V2URLTests_PortletURLGenerationListener_ApiRenderActurl_filterActionURL4
+      {
+         JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+         TestResult tr4 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDERACTURL_FILTERACTIONURL4);
+         String tcval = portletReq.getParameter("tc");
+         if (tcval.equals("V2URLTests_PortletURLGenerationListener_ApiRenderActurl_filterActionURL4")) {
+            // Verify that the listener set the parameter as expected
+            String val = portletReq.getParameter("PUGL");
+            boolean ok = (val != null) && val.equals("Action");
+            if (!ok) {
+               tr4.appendTcDetail("Parameter not set by listener. Expected: Action, actual: " + val);
+            }
+            tr4.setTcSuccess(ok);
+            PortletSession ps = portletReq.getPortletSession();
+            ps.setAttribute(RESULT_ATTR_PREFIX + "V2URLTests_PortletURLGenerationListener_ApiRenderActurl_filterActionURL4", tr4);
+         }
+      }
+
+      // evaluate results for test case V2URLTests_PortletURLGenerationListener_ApiRenderActurl_filterActionURL5
+      {
+         JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+         TestResult tr5 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDERACTURL_FILTERACTIONURL5);
+         String tcval = portletReq.getParameter("tc");
+         if (tcval.equals("V2URLTests_PortletURLGenerationListener_ApiRenderActurl_filterActionURL5")) {
+            // Verify that the listener set the parameter as expected
+            String val = portletReq.getParameter("PUGL");
+            boolean ok = (val != null) && val.equals("Action");
+            if (!ok) {
+               tr5.appendTcDetail("Parameter not set by listener. Expected: Action, actual: " + val);
+            }
+            tr5.setTcSuccess(ok);
+            PortletSession ps = portletReq.getPortletSession();
+            ps.setAttribute(RESULT_ATTR_PREFIX + "V2URLTests_PortletURLGenerationListener_ApiRenderActurl_filterActionURL5", tr5);
+         }
+      }
+
+   }
+
+   @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
+
+      ClassChecker cc = new ClassChecker(PortletURLGenerationListener.class);
+
+      /* TestCase: V2URLTests_PortletURLGenerationListener_ApiRenderActurl_configuration */
+      /* Details: "A PortletURLGenerationListener can be configured in the    */
+      /* portlet deployment descriptor"                                       */
+      TestResult tr0 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDERACTURL_CONFIGURATION);
+      try {
+         PortletURL turl = portletResp.createActionURL();
+         turl.setParameter("tc", "V2URLTests_PortletURLGenerationListener_ApiRenderActurl_configuration");
+         String urlstr = turl.toString();
+         
+         // add the execution button for an action request
+         TestButton tb = new TestButton("V2URLTests_PortletURLGenerationListener_ApiRenderActurl_configuration", urlstr);
+         tb.writeTo(writer);
+         
+         // display evaluated results
+         String tcval = portletReq.getParameter("tc");
+         if (tcval.equals("V2URLTests_PortletURLGenerationListener_ApiRenderActurl_configuration")) {
+            PortletSession ps = portletReq.getPortletSession();
+            TestResult tmp = (TestResult)ps.getAttribute(RESULT_ATTR_PREFIX + "V2URLTests_PortletURLGenerationListener_ApiRenderActurl_configuration");
+            if (tmp != null) {
+               tr0 = tmp;
+               ps.removeAttribute(RESULT_ATTR_PREFIX + "V2URLTests_PortletURLGenerationListener_ApiRenderActurl_configuration");
+            }
+         }
+      } catch(Exception e) {tr0.appendTcDetail(e.toString());}
+      tr0.writeTo(writer);
+
+      /* TestCase: V2URLTests_PortletURLGenerationListener_ApiRenderActurl_filterActionURL1 */
+      /* Details: "Method filterActionURL(PortletURL): The                    */
+      /* filterActionURL(PortletURL): method is called before the             */
+      /* toString() method is executed"                                       */
+      TestResult tr1 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDERACTURL_FILTERACTIONURL1);
+      try {
+         PortletURL turl = portletResp.createActionURL();
+         turl.setParameter("tc", "V2URLTests_PortletURLGenerationListener_ApiRenderActurl_filterActionURL1");
+         String urlstr = turl.toString();
+         
+         // add the execution button for an action request
+         TestButton tb = new TestButton("V2URLTests_PortletURLGenerationListener_ApiRenderActurl_filterActionURL1", urlstr);
+         tb.writeTo(writer);
+         
+         // display evaluated results
+         String tcval = portletReq.getParameter("tc");
+         if (tcval.equals("V2URLTests_PortletURLGenerationListener_ApiRenderActurl_filterActionURL1")) {
+            PortletSession ps = portletReq.getPortletSession();
+            TestResult tmp = (TestResult)ps.getAttribute(RESULT_ATTR_PREFIX + "V2URLTests_PortletURLGenerationListener_ApiRenderActurl_filterActionURL1");
+            if (tmp != null) {
+               tr1 = tmp;
+               ps.removeAttribute(RESULT_ATTR_PREFIX + "V2URLTests_PortletURLGenerationListener_ApiRenderActurl_filterActionURL1");
+            }
+         }
+      } catch(Exception e) {tr1.appendTcDetail(e.toString());}
+      tr1.writeTo(writer);
+
+      /* TestCase: V2URLTests_PortletURLGenerationListener_ApiRenderActurl_filterActionURL2 */
+      /* Details: "Method filterActionURL(PortletURL): The                    */
+      /* filterActionURL(PortletURL): method is called before the             */
+      /* write(Writer out) method is executed"                                */
+      TestResult tr2 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDERACTURL_FILTERACTIONURL2);
+      try {
+         PortletURL turl = portletResp.createActionURL();
+         turl.setParameter("tc", "V2URLTests_PortletURLGenerationListener_ApiRenderActurl_filterActionURL2");
+         StringWriter tsw = new StringWriter();
+         turl.write(tsw);
+         String urlstr = tsw.toString();
+         
+         // add the execution button for an action request
+         TestButton tb = new TestButton("V2URLTests_PortletURLGenerationListener_ApiRenderActurl_filterActionURL2", urlstr);
+         tb.writeTo(writer);
+         
+         // display evaluated results
+         String tcval = portletReq.getParameter("tc");
+         if (tcval.equals("V2URLTests_PortletURLGenerationListener_ApiRenderActurl_filterActionURL2")) {
+            PortletSession ps = portletReq.getPortletSession();
+            TestResult tmp = (TestResult)ps.getAttribute(RESULT_ATTR_PREFIX + "V2URLTests_PortletURLGenerationListener_ApiRenderActurl_filterActionURL2");
+            if (tmp != null) {
+               tr2 = tmp;
+               ps.removeAttribute(RESULT_ATTR_PREFIX + "V2URLTests_PortletURLGenerationListener_ApiRenderActurl_filterActionURL2");
+            }
+         }
+      } catch(Exception e) {tr2.appendTcDetail(e.toString());}
+      tr2.writeTo(writer);
+
+      /* TestCase: V2URLTests_PortletURLGenerationListener_ApiRenderActurl_filterActionURL3 */
+      /* Details: "Method filterActionURL(PortletURL): The                    */
+      /* filterActionURL(PortletURL): method is called before the             */
+      /* write(Writer out, boolean escapeXML) method is executed"             */
+      TestResult tr3 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDERACTURL_FILTERACTIONURL3);
+      try {
+         PortletURL turl = portletResp.createActionURL();
+         turl.setParameter("tc", "V2URLTests_PortletURLGenerationListener_ApiRenderActurl_filterActionURL3");
+         StringWriter tsw = new StringWriter();
+         turl.write(tsw, true);
+         String urlstr = tsw.toString();
+         
+         // add the execution button for an action request
+         TestButton tb = new TestButton("V2URLTests_PortletURLGenerationListener_ApiRenderActurl_filterActionURL3", urlstr);
+         tb.writeTo(writer);
+         
+         // display evaluated results
+         String tcval = portletReq.getParameter("tc");
+         if (tcval.equals("V2URLTests_PortletURLGenerationListener_ApiRenderActurl_filterActionURL3")) {
+            PortletSession ps = portletReq.getPortletSession();
+            TestResult tmp = (TestResult)ps.getAttribute(RESULT_ATTR_PREFIX + "V2URLTests_PortletURLGenerationListener_ApiRenderActurl_filterActionURL3");
+            if (tmp != null) {
+               tr3 = tmp;
+               ps.removeAttribute(RESULT_ATTR_PREFIX + "V2URLTests_PortletURLGenerationListener_ApiRenderActurl_filterActionURL3");
+            }
+         }
+      } catch(Exception e) {tr3.appendTcDetail(e.toString());}
+      tr3.writeTo(writer);
+
+      /* TestCase: V2URLTests_PortletURLGenerationListener_ApiRenderActurl_filterActionURL4 */
+      /* Details: "Method filterActionURL(PortletURL): The filterActionURL    */
+      /* method is passed the PortletURL object representing the action       */
+      /* URL"                                                                 */
+      TestResult tr4 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDERACTURL_FILTERACTIONURL4);
+      try {
+         PortletURL turl = portletResp.createActionURL();
+         turl.setParameter("tc", "V2URLTests_PortletURLGenerationListener_ApiRenderActurl_filterActionURL4");
+         String urlstr = turl.toString();
+         
+         // add the execution button for an action request
+         TestButton tb = new TestButton("V2URLTests_PortletURLGenerationListener_ApiRenderActurl_filterActionURL4", urlstr);
+         tb.writeTo(writer);
+         
+         // display evaluated results
+         String tcval = portletReq.getParameter("tc");
+         if (tcval.equals("V2URLTests_PortletURLGenerationListener_ApiRenderActurl_filterActionURL4")) {
+            PortletSession ps = portletReq.getPortletSession();
+            TestResult tmp = (TestResult)ps.getAttribute(RESULT_ATTR_PREFIX + "V2URLTests_PortletURLGenerationListener_ApiRenderActurl_filterActionURL4");
+            if (tmp != null) {
+               tr4 = tmp;
+               ps.removeAttribute(RESULT_ATTR_PREFIX + "V2URLTests_PortletURLGenerationListener_ApiRenderActurl_filterActionURL4");
+            }
+         }
+      } catch(Exception e) {tr4.appendTcDetail(e.toString());}
+      tr4.writeTo(writer);
+
+      /* TestCase: V2URLTests_PortletURLGenerationListener_ApiRenderActurl_filterActionURL5 */
+      /* Details: "Method filterActionURL(PortletURL): The input URL object   */
+      /* can be modified by setting a parameter and the modified URL object   */
+      /* is processed by the PortletURL toString or write method"             */
+      TestResult tr5 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDERACTURL_FILTERACTIONURL5);
+      try {
+         PortletURL turl = portletResp.createActionURL();
+         turl.setParameter("tc", "V2URLTests_PortletURLGenerationListener_ApiRenderActurl_filterActionURL5");
+         String urlstr = turl.toString();
+         
+         // add the execution button for an action request
+         TestButton tb = new TestButton("V2URLTests_PortletURLGenerationListener_ApiRenderActurl_filterActionURL5", urlstr);
+         tb.writeTo(writer);
+         
+         // display evaluated results
+         String tcval = portletReq.getParameter("tc");
+         if (tcval.equals("V2URLTests_PortletURLGenerationListener_ApiRenderActurl_filterActionURL5")) {
+            PortletSession ps = portletReq.getPortletSession();
+            TestResult tmp = (TestResult)ps.getAttribute(RESULT_ATTR_PREFIX + "V2URLTests_PortletURLGenerationListener_ApiRenderActurl_filterActionURL5");
+            if (tmp != null) {
+               tr5 = tmp;
+               ps.removeAttribute(RESULT_ATTR_PREFIX + "V2URLTests_PortletURLGenerationListener_ApiRenderActurl_filterActionURL5");
+            }
+         }
+      } catch(Exception e) {tr5.appendTcDetail(e.toString());}
+      tr5.writeTo(writer);
+
+   }
+
+}

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/dc496844/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_PortletURLGenerationListener_ApiRenderRenurl.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_PortletURLGenerationListener_ApiRenderRenurl.java b/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_PortletURLGenerationListener_ApiRenderRenurl.java
new file mode 100644
index 0000000..f7b1f92
--- /dev/null
+++ b/portlet-tck_3.0/V2URLTests/src/main/java/javax/portlet/tck/portlets/URLTests_PortletURLGenerationListener_ApiRenderRenurl.java
@@ -0,0 +1,251 @@
+/*  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 URLTests_PortletURLGenerationListener_ApiRenderRenurl_event
+ *
+ */
+public class URLTests_PortletURLGenerationListener_ApiRenderRenurl implements Portlet, ResourceServingPortlet {
+   private static final String LOG_CLASS = 
+         URLTests_PortletURLGenerationListener_ApiRenderRenurl.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
+
+      ClassChecker cc = new ClassChecker(PortletURLGenerationListener.class);
+
+      /* TestCase: V2URLTests_PortletURLGenerationListener_ApiRenderRenurl_filterRenderURL1 */
+      /* Details: "Method filterRenderURL(PortletURL): The                    */
+      /* filterRenderURL(PortletURL): method is called before the             */
+      /* toString() method is executed"                                       */
+      TestResult tr0 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDERRENURL_FILTERRENDERURL1);
+      try {
+         PortletURL turl = portletResp.createRenderURL();
+         turl.setParameter("tc", "V2URLTests_PortletURLGenerationListener_ApiRenderRenurl_filterRenderURL1");
+         String urlstr = turl.toString();
+         
+         // add the execution link
+         TestLink tl = new TestLink("V2URLTests_PortletURLGenerationListener_ApiRenderRenurl_filterRenderURL1", urlstr);
+         tl.writeTo(writer);
+         
+         // evaluate results
+         String tcval = portletReq.getParameter("tc");
+         if (tcval.equals("V2URLTests_PortletURLGenerationListener_ApiRenderRenurl_filterRenderURL1")) {
+            // Verify that the listener set the parameter as expected
+            String val = portletReq.getParameter("PUGL");
+            boolean ok = (val != null) && val.equals("Render");
+            if (!ok) {
+               tr0.appendTcDetail("Parameter not set by listener. Expected: Render, actual: " + val);
+            }
+            tr0.setTcSuccess(ok);
+         }
+      } catch(Exception e) {tr0.appendTcDetail(e.toString());}
+      tr0.writeTo(writer);
+
+      /* TestCase: V2URLTests_PortletURLGenerationListener_ApiRenderRenurl_filterRenderURL2 */
+      /* Details: "Method filterRenderURL(PortletURL): The                    */
+      /* filterRenderURL(PortletURL): method is called before the             */
+      /* write(Writer out) method is executed"                                */
+      TestResult tr1 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDERRENURL_FILTERRENDERURL2);
+      try {
+         PortletURL turl = portletResp.createRenderURL();
+         turl.setParameter("tc", "V2URLTests_PortletURLGenerationListener_ApiRenderRenurl_filterRenderURL2");
+         StringWriter tsw = new StringWriter();
+         turl.write(tsw);
+         String urlstr = tsw.toString();
+         
+         // add the execution link
+         TestLink tl = new TestLink("V2URLTests_PortletURLGenerationListener_ApiRenderRenurl_filterRenderURL2", urlstr);
+         tl.writeTo(writer);
+         
+         // evaluate results
+         String tcval = portletReq.getParameter("tc");
+         if (tcval.equals("V2URLTests_PortletURLGenerationListener_ApiRenderRenurl_filterRenderURL2")) {
+            // Verify that the listener set the parameter as expected
+            String val = portletReq.getParameter("PUGL");
+            boolean ok = (val != null) && val.equals("Render");
+            if (!ok) {
+               tr1.appendTcDetail("Parameter not set by listener. Expected: Render, actual: " + val);
+            }
+            tr1.setTcSuccess(ok);
+         }
+      } catch(Exception e) {tr1.appendTcDetail(e.toString());}
+      tr1.writeTo(writer);
+
+      /* TestCase: V2URLTests_PortletURLGenerationListener_ApiRenderRenurl_filterRenderURL3 */
+      /* Details: "Method filterRenderURL(PortletURL): The                    */
+      /* filterRenderURL(PortletURL): method is called before the             */
+      /* write(Writer out, boolean escapeXML) method is executed"             */
+      TestResult tr2 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDERRENURL_FILTERRENDERURL3);
+      try {
+         PortletURL turl = portletResp.createRenderURL();
+         turl.setParameter("tc", "V2URLTests_PortletURLGenerationListener_ApiRenderRenurl_filterRenderURL3");
+         StringWriter tsw = new StringWriter();
+         turl.write(tsw, true);
+         String urlstr = tsw.toString();
+         
+         // add the execution link
+         TestLink tl = new TestLink("V2URLTests_PortletURLGenerationListener_ApiRenderRenurl_filterRenderURL3", urlstr);
+         tl.writeTo(writer);
+         
+         // evaluate results
+         String tcval = portletReq.getParameter("tc");
+         if (tcval.equals("V2URLTests_PortletURLGenerationListener_ApiRenderRenurl_filterRenderURL3")) {
+            // Verify that the listener set the parameter as expected
+            String val = portletReq.getParameter("PUGL");
+            boolean ok = (val != null) && val.equals("Render");
+            if (!ok) {
+               tr2.appendTcDetail("Parameter not set by listener. Expected: Render, actual: " + val);
+            }
+            tr2.setTcSuccess(ok);
+         }
+      } catch(Exception e) {tr2.appendTcDetail(e.toString());}
+      tr2.writeTo(writer);
+
+      /* TestCase: V2URLTests_PortletURLGenerationListener_ApiRenderRenurl_filterRenderURL4 */
+      /* Details: "Method filterRenderURL(PortletURL): The filterRenderURL    */
+      /* method is passed the PortletURL object representing the render       */
+      /* URL"                                                                 */
+      TestResult tr3 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDERRENURL_FILTERRENDERURL4);
+      try {
+         PortletURL turl = portletResp.createRenderURL();
+         turl.setParameter("tc", "V2URLTests_PortletURLGenerationListener_ApiRenderRenurl_filterRenderURL4");
+         String urlstr = turl.toString();
+         
+         // add the execution link
+         TestLink tl = new TestLink("V2URLTests_PortletURLGenerationListener_ApiRenderRenurl_filterRenderURL4", urlstr);
+         tl.writeTo(writer);
+         
+         // evaluate results
+         String tcval = portletReq.getParameter("tc");
+         if (tcval.equals("V2URLTests_PortletURLGenerationListener_ApiRenderRenurl_filterRenderURL4")) {
+            // Verify that the listener set the parameter as expected
+            String val = portletReq.getParameter("PUGL");
+            boolean ok = (val != null) && val.equals("Render");
+            if (!ok) {
+               tr3.appendTcDetail("Parameter not set by listener. Expected: Render, actual: " + val);
+            }
+            tr3.setTcSuccess(ok);
+         }
+      } catch(Exception e) {tr3.appendTcDetail(e.toString());}
+      tr3.writeTo(writer);
+
+      /* TestCase: V2URLTests_PortletURLGenerationListener_ApiRenderRenurl_filterRenderURL5 */
+      /* Details: "Method filterRenderURL(PortletURL): The input URL object   */
+      /* can be modified by setting a parameter and the modified URL object   */
+      /* is processed by the PortletURL toString or write method"             */
+      TestResult tr4 = tcd.getTestResultFailed(V2URLTESTS_PORTLETURLGENERATIONLISTENER_APIRENDERRENURL_FILTERRENDERURL5);
+      try {
+         PortletURL turl = portletResp.createRenderURL();
+         turl.setParameter("tc", "V2URLTests_PortletURLGenerationListener_ApiRenderRenurl_filterRenderURL5");
+         String urlstr = turl.toString();
+         
+         // add the execution link
+         TestLink tl = new TestLink("V2URLTests_PortletURLGenerationListener_ApiRenderRenurl_filterRenderURL5", urlstr);
+         tl.writeTo(writer);
+         
+         // evaluate results
+         String tcval = portletReq.getParameter("tc");
+         if (tcval.equals("V2URLTests_PortletURLGenerationListener_ApiRenderRenurl_filterRenderURL5")) {
+            // Verify that the listener set the parameter as expected
+            String val = portletReq.getParameter("PUGL");
+            boolean ok = (val != null) && val.equals("Render");
+            if (!ok) {
+               tr4.appendTcDetail("Parameter not set by listener. Expected: Render, actual: " + val);
+            }
+            tr4.setTcSuccess(ok);
+         }
+      } catch(Exception e) {tr4.appendTcDetail(e.toString());}
+      tr4.writeTo(writer);
+
+   }
+
+}


Mime
View raw message