You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-scm@portals.apache.org by ms...@apache.org on 2014/08/28 08:29:50 UTC

[31/32] git commit: Implemented FilterChaing and FilterConfig signature tests.

Implemented FilterChaing and FilterConfig signature tests.


Project: http://git-wip-us.apache.org/repos/asf/portals-pluto/repo
Commit: http://git-wip-us.apache.org/repos/asf/portals-pluto/commit/fa5e23dd
Tree: http://git-wip-us.apache.org/repos/asf/portals-pluto/tree/fa5e23dd
Diff: http://git-wip-us.apache.org/repos/asf/portals-pluto/diff/fa5e23dd

Branch: refs/heads/master
Commit: fa5e23dd7c88d266131f2acace1d091c3c2eb91f
Parents: 7314573
Author: Scott Nicklous <ms...@apache.org>
Authored: Wed Aug 27 21:21:50 2014 +0200
Committer: Scott Nicklous <ms...@apache.org>
Committed: Wed Aug 27 21:21:50 2014 +0200

----------------------------------------------------------------------
 ...estsFilter_FilterChain_SIGRender_filter.java | 173 +++++++++++++++++++
 ...stsFilter_FilterConfig_SIGRender_filter.java | 162 +++++++++++++++++
 .../SigTestsFilter_FilterChain_SIGRender.java   |  78 ---------
 .../SigTestsFilter_FilterConfig_SIGRender.java  |  67 -------
 .../src/main/webapp/WEB-INF/portlet.xml         |  20 +++
 5 files changed, 355 insertions(+), 145 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/fa5e23dd/portlet-tck_3.0/V2SigTestsFilter/src/main/java/javax/portlet/tck/filters/SigTestsFilter_FilterChain_SIGRender_filter.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2SigTestsFilter/src/main/java/javax/portlet/tck/filters/SigTestsFilter_FilterChain_SIGRender_filter.java b/portlet-tck_3.0/V2SigTestsFilter/src/main/java/javax/portlet/tck/filters/SigTestsFilter_FilterChain_SIGRender_filter.java
new file mode 100644
index 0000000..4e9fa70
--- /dev/null
+++ b/portlet-tck_3.0/V2SigTestsFilter/src/main/java/javax/portlet/tck/filters/SigTestsFilter_FilterChain_SIGRender_filter.java
@@ -0,0 +1,173 @@
+/*  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.filters;
+
+import java.io.IOException;
+
+import java.io.*;
+import java.util.logging.*;
+import static java.util.logging.Logger.*;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286SignatureTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+
+/**
+ * Render filter for TCK signature tests
+ * 
+ * @author nick
+ *
+ */
+public class SigTestsFilter_FilterChain_SIGRender_filter implements
+      RenderFilter {
+   private static final String LOG_CLASS = 
+         SigTestsFilter_FilterChain_SIGRender_filter.class.getName();
+   private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+   private FilterConfig filterConfig;
+
+   @Override
+   public void init(FilterConfig filterConfig) throws PortletException {
+      this.filterConfig = filterConfig;
+   }
+
+   @Override
+   public void destroy() {
+   }
+
+   @Override
+   public void doFilter(RenderRequest request, RenderResponse response,
+         FilterChain chain) throws IOException, PortletException {
+      LOGGER.entering(LOG_CLASS, "doFilter");
+      
+      // first execute the chain
+      
+      chain.doFilter(request, response);
+
+      // now do the tests and write output
+      
+      PrintWriter writer = response.getWriter();
+      JSR286SignatureTestCaseDetails tcd = new JSR286SignatureTestCaseDetails();
+      ClassChecker cc = new ClassChecker(chain.getClass());
+
+      /* TestCase: V2SigTestsFilter_FilterChain_SIGRender_hasDoFilter         */
+      /* Details: "FilterChain has a doFilter(ActionRequest,                  */
+      /* ActionResponse) throws java.io.IOException, PortletException         */
+      /* method "                                                             */
+      TestResult tr0 = tcd.getTestResultFailed(V2SIGTESTSFILTER_FILTERCHAIN_SIGRENDER_HASDOFILTER);
+      try {
+         String name = "doFilter";
+         Class<?>[] exceptions = {java.io.IOException.class, PortletException.class};
+         Class<?>[] parms = {ActionRequest.class, ActionResponse.class};
+         tr0.setTcSuccess(cc.hasMethod(name, parms, exceptions));
+      } catch(Exception e) {tr0.appendTcDetail(e.toString());}
+      tr0.writeTo(writer);
+
+      /* TestCase: V2SigTestsFilter_FilterChain_SIGRender_hasDoFilterA        */
+      /* Details: "FilterChain has a doFilter(EventRequest, EventResponse)    */
+      /* throws java.io.IOException, PortletException method "                */
+      TestResult tr1 = tcd.getTestResultFailed(V2SIGTESTSFILTER_FILTERCHAIN_SIGRENDER_HASDOFILTERA);
+      try {
+         String name = "doFilter";
+         Class<?>[] exceptions = {java.io.IOException.class, PortletException.class};
+         Class<?>[] parms = {EventRequest.class, EventResponse.class};
+         tr1.setTcSuccess(cc.hasMethod(name, parms, exceptions));
+      } catch(Exception e) {tr1.appendTcDetail(e.toString());}
+      tr1.writeTo(writer);
+
+      /* TestCase: V2SigTestsFilter_FilterChain_SIGRender_hasDoFilterB        */
+      /* Details: "FilterChain has a doFilter(RenderRequest,                  */
+      /* RenderResponse) throws java.io.IOException, PortletException         */
+      /* method "                                                             */
+      TestResult tr2 = tcd.getTestResultFailed(V2SIGTESTSFILTER_FILTERCHAIN_SIGRENDER_HASDOFILTERB);
+      try {
+         String name = "doFilter";
+         Class<?>[] exceptions = {java.io.IOException.class, PortletException.class};
+         Class<?>[] parms = {RenderRequest.class, RenderResponse.class};
+         tr2.setTcSuccess(cc.hasMethod(name, parms, exceptions));
+      } catch(Exception e) {tr2.appendTcDetail(e.toString());}
+      tr2.writeTo(writer);
+
+      /* TestCase: V2SigTestsFilter_FilterChain_SIGRender_hasDoFilterC        */
+      /* Details: "FilterChain has a doFilter(ResourceRequest,                */
+      /* ResourceResponse) throws java.io.IOException, PortletException       */
+      /* method "                                                             */
+      TestResult tr3 = tcd.getTestResultFailed(V2SIGTESTSFILTER_FILTERCHAIN_SIGRENDER_HASDOFILTERC);
+      try {
+         String name = "doFilter";
+         Class<?>[] exceptions = {java.io.IOException.class, PortletException.class};
+         Class<?>[] parms = {ResourceRequest.class, ResourceResponse.class};
+         tr3.setTcSuccess(cc.hasMethod(name, parms, exceptions));
+      } catch(Exception e) {tr3.appendTcDetail(e.toString());}
+      tr3.writeTo(writer);
+
+      /* TestCase: V2SigTestsFilter_FilterChain_SIGRender_hasDoFilterReturns  */
+      /* Details: "FilterChain method doFilter(ActionRequest,                 */
+      /* ActionResponse) returns void "                                       */
+      TestResult tr4 = tcd.getTestResultFailed(V2SIGTESTSFILTER_FILTERCHAIN_SIGRENDER_HASDOFILTERRETURNS);
+      try {
+         String name = "doFilter";
+         Class<?> retType = void.class;
+         Class<?>[] parms = {ActionRequest.class, ActionResponse.class};
+         tr4.setTcSuccess(cc.methodHasReturnType(name, retType, parms));
+      } catch(Exception e) {tr4.appendTcDetail(e.toString());}
+      tr4.writeTo(writer);
+
+      /* TestCase: V2SigTestsFilter_FilterChain_SIGRender_hasDoFilterReturnsA */
+      /* Details: "FilterChain method doFilter(EventRequest, EventResponse)   */
+      /* returns void "                                                       */
+      TestResult tr5 = tcd.getTestResultFailed(V2SIGTESTSFILTER_FILTERCHAIN_SIGRENDER_HASDOFILTERRETURNSA);
+      try {
+         String name = "doFilter";
+         Class<?> retType = void.class;
+         Class<?>[] parms = {EventRequest.class, EventResponse.class};
+         tr5.setTcSuccess(cc.methodHasReturnType(name, retType, parms));
+      } catch(Exception e) {tr5.appendTcDetail(e.toString());}
+      tr5.writeTo(writer);
+
+      /* TestCase: V2SigTestsFilter_FilterChain_SIGRender_hasDoFilterReturnsB */
+      /* Details: "FilterChain method doFilter(RenderRequest,                 */
+      /* RenderResponse) returns void "                                       */
+      TestResult tr6 = tcd.getTestResultFailed(V2SIGTESTSFILTER_FILTERCHAIN_SIGRENDER_HASDOFILTERRETURNSB);
+      try {
+         String name = "doFilter";
+         Class<?> retType = void.class;
+         Class<?>[] parms = {RenderRequest.class, RenderResponse.class};
+         tr6.setTcSuccess(cc.methodHasReturnType(name, retType, parms));
+      } catch(Exception e) {tr6.appendTcDetail(e.toString());}
+      tr6.writeTo(writer);
+
+      /* TestCase: V2SigTestsFilter_FilterChain_SIGRender_hasDoFilterReturnsC */
+      /* Details: "FilterChain method doFilter(ResourceRequest,               */
+      /* ResourceResponse) returns void "                                     */
+      TestResult tr7 = tcd.getTestResultFailed(V2SIGTESTSFILTER_FILTERCHAIN_SIGRENDER_HASDOFILTERRETURNSC);
+      try {
+         String name = "doFilter";
+         Class<?> retType = void.class;
+         Class<?>[] parms = {ResourceRequest.class, ResourceResponse.class};
+         tr7.setTcSuccess(cc.methodHasReturnType(name, retType, parms));
+      } catch(Exception e) {tr7.appendTcDetail(e.toString());}
+      tr7.writeTo(writer);
+
+   }
+
+}

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/fa5e23dd/portlet-tck_3.0/V2SigTestsFilter/src/main/java/javax/portlet/tck/filters/SigTestsFilter_FilterConfig_SIGRender_filter.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2SigTestsFilter/src/main/java/javax/portlet/tck/filters/SigTestsFilter_FilterConfig_SIGRender_filter.java b/portlet-tck_3.0/V2SigTestsFilter/src/main/java/javax/portlet/tck/filters/SigTestsFilter_FilterConfig_SIGRender_filter.java
new file mode 100644
index 0000000..5449aed
--- /dev/null
+++ b/portlet-tck_3.0/V2SigTestsFilter/src/main/java/javax/portlet/tck/filters/SigTestsFilter_FilterConfig_SIGRender_filter.java
@@ -0,0 +1,162 @@
+/*  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.filters;
+
+import java.io.IOException;
+
+import java.io.*;
+import java.util.logging.*;
+
+import static java.util.logging.Logger.*;
+import javax.portlet.*;
+import javax.portlet.filter.*;
+import javax.portlet.tck.beans.*;
+import javax.portlet.tck.constants.*;
+import static javax.portlet.tck.beans.JSR286SignatureTestCaseDetails.*;
+import static javax.portlet.tck.constants.Constants.*;
+
+/**
+ * Render filter for signature tests 
+ *
+ * @author nick
+ *
+ */
+public class SigTestsFilter_FilterConfig_SIGRender_filter implements
+      RenderFilter {
+   private static final String LOG_CLASS = 
+         SigTestsFilter_FilterConfig_SIGRender_filter.class.getName();
+   private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+
+      private FilterConfig filterConfig;
+      
+   @Override
+   public void init(FilterConfig filterConfig) throws PortletException {
+      this.filterConfig = filterConfig;
+   }
+
+   @Override
+   public void destroy() {
+   }
+
+   @Override
+   public void doFilter(RenderRequest request, RenderResponse response,
+         FilterChain chain) throws IOException, PortletException {
+      LOGGER.entering(LOG_CLASS, "doFilter");
+
+      chain.doFilter(request, response);
+
+      PrintWriter writer = response.getWriter();
+      JSR286SignatureTestCaseDetails tcd = new JSR286SignatureTestCaseDetails();
+      ClassChecker cc = new ClassChecker(filterConfig.getClass());
+
+      /* TestCase: V2SigTestsFilter_FilterConfig_SIGRender_hasGetFilterName   */
+      /* Details: "FilterConfig has a getFilterName()  method "               */
+      TestResult tr0 = tcd.getTestResultFailed(V2SIGTESTSFILTER_FILTERCONFIG_SIGRENDER_HASGETFILTERNAME);
+      try {
+         String name = "getFilterName";
+         Class<?>[] exceptions = null;
+         Class<?>[] parms = null;
+         tr0.setTcSuccess(cc.hasMethod(name, parms, exceptions));
+      } catch(Exception e) {tr0.appendTcDetail(e.toString());}
+      tr0.writeTo(writer);
+
+      /* TestCase: V2SigTestsFilter_FilterConfig_SIGRender_hasGetFilterNameReturns */
+      /* Details: "FilterConfig method getFilterName() returns String "       */
+      TestResult tr1 = tcd.getTestResultFailed(V2SIGTESTSFILTER_FILTERCONFIG_SIGRENDER_HASGETFILTERNAMERETURNS);
+      try {
+         String name = "getFilterName";
+         Class<?> retType = String.class;
+         Class<?>[] parms = null;
+         tr1.setTcSuccess(cc.methodHasReturnType(name, retType, parms));
+      } catch(Exception e) {tr1.appendTcDetail(e.toString());}
+      tr1.writeTo(writer);
+
+      /* TestCase: V2SigTestsFilter_FilterConfig_SIGRender_hasGetInitParameter */
+      /* Details: "FilterConfig has a getInitParameter(String)  method "      */
+      TestResult tr2 = tcd.getTestResultFailed(V2SIGTESTSFILTER_FILTERCONFIG_SIGRENDER_HASGETINITPARAMETER);
+      try {
+         String name = "getInitParameter";
+         Class<?>[] exceptions = null;
+         Class<?>[] parms = {String.class};
+         tr2.setTcSuccess(cc.hasMethod(name, parms, exceptions));
+      } catch(Exception e) {tr2.appendTcDetail(e.toString());}
+      tr2.writeTo(writer);
+
+      /* TestCase: V2SigTestsFilter_FilterConfig_SIGRender_hasGetInitParameterNames */
+      /* Details: "FilterConfig has a getInitParameterNames()  method "       */
+      TestResult tr3 = tcd.getTestResultFailed(V2SIGTESTSFILTER_FILTERCONFIG_SIGRENDER_HASGETINITPARAMETERNAMES);
+      try {
+         String name = "getInitParameterNames";
+         Class<?>[] exceptions = null;
+         Class<?>[] parms = null;
+         tr3.setTcSuccess(cc.hasMethod(name, parms, exceptions));
+      } catch(Exception e) {tr3.appendTcDetail(e.toString());}
+      tr3.writeTo(writer);
+
+      /* TestCase: V2SigTestsFilter_FilterConfig_SIGRender_hasGetInitParameterNamesReturns */
+      /* Details: "FilterConfig method getInitParameterNames() returns        */
+      /* java.util.Enumeration "                                              */
+      TestResult tr4 = tcd.getTestResultFailed(V2SIGTESTSFILTER_FILTERCONFIG_SIGRENDER_HASGETINITPARAMETERNAMESRETURNS);
+      try {
+         String name = "getInitParameterNames";
+         Class<?> retType = java.util.Enumeration.class;
+         Class<?>[] parms = null;
+         tr4.setTcSuccess(cc.methodHasReturnType(name, retType, parms));
+      } catch(Exception e) {tr4.appendTcDetail(e.toString());}
+      tr4.writeTo(writer);
+
+      /* TestCase: V2SigTestsFilter_FilterConfig_SIGRender_hasGetInitParameterReturns */
+      /* Details: "FilterConfig method getInitParameter(String) returns       */
+      /* String "                                                             */
+      TestResult tr5 = tcd.getTestResultFailed(V2SIGTESTSFILTER_FILTERCONFIG_SIGRENDER_HASGETINITPARAMETERRETURNS);
+      try {
+         String name = "getInitParameter";
+         Class<?> retType = String.class;
+         Class<?>[] parms = {String.class};
+         tr5.setTcSuccess(cc.methodHasReturnType(name, retType, parms));
+      } catch(Exception e) {tr5.appendTcDetail(e.toString());}
+      tr5.writeTo(writer);
+
+      /* TestCase: V2SigTestsFilter_FilterConfig_SIGRender_hasGetPortletContext */
+      /* Details: "FilterConfig has a getPortletContext()  method "           */
+      TestResult tr6 = tcd.getTestResultFailed(V2SIGTESTSFILTER_FILTERCONFIG_SIGRENDER_HASGETPORTLETCONTEXT);
+      try {
+         String name = "getPortletContext";
+         Class<?>[] exceptions = null;
+         Class<?>[] parms = null;
+         tr6.setTcSuccess(cc.hasMethod(name, parms, exceptions));
+      } catch(Exception e) {tr6.appendTcDetail(e.toString());}
+      tr6.writeTo(writer);
+
+      /* TestCase: V2SigTestsFilter_FilterConfig_SIGRender_hasGetPortletContextReturns */
+      /* Details: "FilterConfig method getPortletContext() returns            */
+      /* PortletContext "                                                     */
+      TestResult tr7 = tcd.getTestResultFailed(V2SIGTESTSFILTER_FILTERCONFIG_SIGRENDER_HASGETPORTLETCONTEXTRETURNS);
+      try {
+         String name = "getPortletContext";
+         Class<?> retType = PortletContext.class;
+         Class<?>[] parms = null;
+         tr7.setTcSuccess(cc.methodHasReturnType(name, retType, parms));
+      } catch(Exception e) {tr7.appendTcDetail(e.toString());}
+      tr7.writeTo(writer);
+      
+   }
+
+}

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/fa5e23dd/portlet-tck_3.0/V2SigTestsFilter/src/main/java/javax/portlet/tck/portlets/SigTestsFilter_FilterChain_SIGRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2SigTestsFilter/src/main/java/javax/portlet/tck/portlets/SigTestsFilter_FilterChain_SIGRender.java b/portlet-tck_3.0/V2SigTestsFilter/src/main/java/javax/portlet/tck/portlets/SigTestsFilter_FilterChain_SIGRender.java
index 0b1c44c..fadf2fd 100644
--- a/portlet-tck_3.0/V2SigTestsFilter/src/main/java/javax/portlet/tck/portlets/SigTestsFilter_FilterChain_SIGRender.java
+++ b/portlet-tck_3.0/V2SigTestsFilter/src/main/java/javax/portlet/tck/portlets/SigTestsFilter_FilterChain_SIGRender.java
@@ -82,8 +82,6 @@ public class SigTestsFilter_FilterChain_SIGRender implements Portlet, ResourceSe
       long tid = Thread.currentThread().getId();
       portletReq.setAttribute(THREADID_ATTR, tid);
 
-      PrintWriter writer = portletResp.getWriter();
-
    }
 
    @Override
@@ -91,82 +89,6 @@ public class SigTestsFilter_FilterChain_SIGRender implements Portlet, ResourceSe
          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();
-
-      JSR286SignatureTestCaseDetails tcd = new JSR286SignatureTestCaseDetails();
-
-      // Create result objects for the tests
-
-      /* TestCase: V2SigTestsFilter_FilterChain_SIGRender_hasDoFilter         */
-      /* Details: "FilterChain has a doFilter(ActionRequest,                  */
-      /* ActionResponse) throws java.io.IOException, PortletException         */
-      /* method "                                                             */
-      TestResult tr0 = tcd.getTestResultFailed(V2SIGTESTSFILTER_FILTERCHAIN_SIGRENDER_HASDOFILTER);
-      /* TODO: implement test */
-      tr0.appendTcDetail("Not implemented.");
-      tr0.writeTo(writer);
-
-      /* TestCase: V2SigTestsFilter_FilterChain_SIGRender_hasDoFilterA        */
-      /* Details: "FilterChain has a doFilter(EventRequest, EventResponse)    */
-      /* throws java.io.IOException, PortletException method "                */
-      TestResult tr1 = tcd.getTestResultFailed(V2SIGTESTSFILTER_FILTERCHAIN_SIGRENDER_HASDOFILTERA);
-      /* TODO: implement test */
-      tr1.appendTcDetail("Not implemented.");
-      tr1.writeTo(writer);
-
-      /* TestCase: V2SigTestsFilter_FilterChain_SIGRender_hasDoFilterB        */
-      /* Details: "FilterChain has a doFilter(RenderRequest,                  */
-      /* RenderResponse) throws java.io.IOException, PortletException         */
-      /* method "                                                             */
-      TestResult tr2 = tcd.getTestResultFailed(V2SIGTESTSFILTER_FILTERCHAIN_SIGRENDER_HASDOFILTERB);
-      /* TODO: implement test */
-      tr2.appendTcDetail("Not implemented.");
-      tr2.writeTo(writer);
-
-      /* TestCase: V2SigTestsFilter_FilterChain_SIGRender_hasDoFilterC        */
-      /* Details: "FilterChain has a doFilter(ResourceRequest,                */
-      /* ResourceResponse) throws java.io.IOException, PortletException       */
-      /* method "                                                             */
-      TestResult tr3 = tcd.getTestResultFailed(V2SIGTESTSFILTER_FILTERCHAIN_SIGRENDER_HASDOFILTERC);
-      /* TODO: implement test */
-      tr3.appendTcDetail("Not implemented.");
-      tr3.writeTo(writer);
-
-      /* TestCase: V2SigTestsFilter_FilterChain_SIGRender_hasDoFilterReturns  */
-      /* Details: "FilterChain method doFilter(ActionRequest,                 */
-      /* ActionResponse) returns void "                                       */
-      TestResult tr4 = tcd.getTestResultFailed(V2SIGTESTSFILTER_FILTERCHAIN_SIGRENDER_HASDOFILTERRETURNS);
-      /* TODO: implement test */
-      tr4.appendTcDetail("Not implemented.");
-      tr4.writeTo(writer);
-
-      /* TestCase: V2SigTestsFilter_FilterChain_SIGRender_hasDoFilterReturnsA */
-      /* Details: "FilterChain method doFilter(EventRequest, EventResponse)   */
-      /* returns void "                                                       */
-      TestResult tr5 = tcd.getTestResultFailed(V2SIGTESTSFILTER_FILTERCHAIN_SIGRENDER_HASDOFILTERRETURNSA);
-      /* TODO: implement test */
-      tr5.appendTcDetail("Not implemented.");
-      tr5.writeTo(writer);
-
-      /* TestCase: V2SigTestsFilter_FilterChain_SIGRender_hasDoFilterReturnsB */
-      /* Details: "FilterChain method doFilter(RenderRequest,                 */
-      /* RenderResponse) returns void "                                       */
-      TestResult tr6 = tcd.getTestResultFailed(V2SIGTESTSFILTER_FILTERCHAIN_SIGRENDER_HASDOFILTERRETURNSB);
-      /* TODO: implement test */
-      tr6.appendTcDetail("Not implemented.");
-      tr6.writeTo(writer);
-
-      /* TestCase: V2SigTestsFilter_FilterChain_SIGRender_hasDoFilterReturnsC */
-      /* Details: "FilterChain method doFilter(ResourceRequest,               */
-      /* ResourceResponse) returns void "                                     */
-      TestResult tr7 = tcd.getTestResultFailed(V2SIGTESTSFILTER_FILTERCHAIN_SIGRENDER_HASDOFILTERRETURNSC);
-      /* TODO: implement test */
-      tr7.appendTcDetail("Not implemented.");
-      tr7.writeTo(writer);
-
    }
 
 }

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/fa5e23dd/portlet-tck_3.0/V2SigTestsFilter/src/main/java/javax/portlet/tck/portlets/SigTestsFilter_FilterConfig_SIGRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2SigTestsFilter/src/main/java/javax/portlet/tck/portlets/SigTestsFilter_FilterConfig_SIGRender.java b/portlet-tck_3.0/V2SigTestsFilter/src/main/java/javax/portlet/tck/portlets/SigTestsFilter_FilterConfig_SIGRender.java
index d07610e..ea14dd0 100644
--- a/portlet-tck_3.0/V2SigTestsFilter/src/main/java/javax/portlet/tck/portlets/SigTestsFilter_FilterConfig_SIGRender.java
+++ b/portlet-tck_3.0/V2SigTestsFilter/src/main/java/javax/portlet/tck/portlets/SigTestsFilter_FilterConfig_SIGRender.java
@@ -91,73 +91,6 @@ public class SigTestsFilter_FilterConfig_SIGRender implements Portlet, ResourceS
          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();
-
-      JSR286SignatureTestCaseDetails tcd = new JSR286SignatureTestCaseDetails();
-
-      // Create result objects for the tests
-
-      /* TestCase: V2SigTestsFilter_FilterConfig_SIGRender_hasGetFilterName   */
-      /* Details: "FilterConfig has a getFilterName()  method "               */
-      TestResult tr0 = tcd.getTestResultFailed(V2SIGTESTSFILTER_FILTERCONFIG_SIGRENDER_HASGETFILTERNAME);
-      /* TODO: implement test */
-      tr0.appendTcDetail("Not implemented.");
-      tr0.writeTo(writer);
-
-      /* TestCase: V2SigTestsFilter_FilterConfig_SIGRender_hasGetFilterNameReturns */
-      /* Details: "FilterConfig method getFilterName() returns String "       */
-      TestResult tr1 = tcd.getTestResultFailed(V2SIGTESTSFILTER_FILTERCONFIG_SIGRENDER_HASGETFILTERNAMERETURNS);
-      /* TODO: implement test */
-      tr1.appendTcDetail("Not implemented.");
-      tr1.writeTo(writer);
-
-      /* TestCase: V2SigTestsFilter_FilterConfig_SIGRender_hasGetInitParameter */
-      /* Details: "FilterConfig has a getInitParameter(String)  method "      */
-      TestResult tr2 = tcd.getTestResultFailed(V2SIGTESTSFILTER_FILTERCONFIG_SIGRENDER_HASGETINITPARAMETER);
-      /* TODO: implement test */
-      tr2.appendTcDetail("Not implemented.");
-      tr2.writeTo(writer);
-
-      /* TestCase: V2SigTestsFilter_FilterConfig_SIGRender_hasGetInitParameterNames */
-      /* Details: "FilterConfig has a getInitParameterNames()  method "       */
-      TestResult tr3 = tcd.getTestResultFailed(V2SIGTESTSFILTER_FILTERCONFIG_SIGRENDER_HASGETINITPARAMETERNAMES);
-      /* TODO: implement test */
-      tr3.appendTcDetail("Not implemented.");
-      tr3.writeTo(writer);
-
-      /* TestCase: V2SigTestsFilter_FilterConfig_SIGRender_hasGetInitParameterNamesReturns */
-      /* Details: "FilterConfig method getInitParameterNames() returns        */
-      /* java.util.Enumeration "                                              */
-      TestResult tr4 = tcd.getTestResultFailed(V2SIGTESTSFILTER_FILTERCONFIG_SIGRENDER_HASGETINITPARAMETERNAMESRETURNS);
-      /* TODO: implement test */
-      tr4.appendTcDetail("Not implemented.");
-      tr4.writeTo(writer);
-
-      /* TestCase: V2SigTestsFilter_FilterConfig_SIGRender_hasGetInitParameterReturns */
-      /* Details: "FilterConfig method getInitParameter(String) returns       */
-      /* String "                                                             */
-      TestResult tr5 = tcd.getTestResultFailed(V2SIGTESTSFILTER_FILTERCONFIG_SIGRENDER_HASGETINITPARAMETERRETURNS);
-      /* TODO: implement test */
-      tr5.appendTcDetail("Not implemented.");
-      tr5.writeTo(writer);
-
-      /* TestCase: V2SigTestsFilter_FilterConfig_SIGRender_hasGetPortletContext */
-      /* Details: "FilterConfig has a getPortletContext()  method "           */
-      TestResult tr6 = tcd.getTestResultFailed(V2SIGTESTSFILTER_FILTERCONFIG_SIGRENDER_HASGETPORTLETCONTEXT);
-      /* TODO: implement test */
-      tr6.appendTcDetail("Not implemented.");
-      tr6.writeTo(writer);
-
-      /* TestCase: V2SigTestsFilter_FilterConfig_SIGRender_hasGetPortletContextReturns */
-      /* Details: "FilterConfig method getPortletContext() returns            */
-      /* PortletContext "                                                     */
-      TestResult tr7 = tcd.getTestResultFailed(V2SIGTESTSFILTER_FILTERCONFIG_SIGRENDER_HASGETPORTLETCONTEXTRETURNS);
-      /* TODO: implement test */
-      tr7.appendTcDetail("Not implemented.");
-      tr7.writeTo(writer);
 
    }
 

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/fa5e23dd/portlet-tck_3.0/V2SigTestsFilter/src/main/webapp/WEB-INF/portlet.xml
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2SigTestsFilter/src/main/webapp/WEB-INF/portlet.xml b/portlet-tck_3.0/V2SigTestsFilter/src/main/webapp/WEB-INF/portlet.xml
index c7a7f52..5caf2dd 100644
--- a/portlet-tck_3.0/V2SigTestsFilter/src/main/webapp/WEB-INF/portlet.xml
+++ b/portlet-tck_3.0/V2SigTestsFilter/src/main/webapp/WEB-INF/portlet.xml
@@ -112,6 +112,26 @@
          <title>SigTestsFilter_ResourceFilter_SIGRender</title>
       </portlet-info>
    </portlet>
+   
+   <filter>
+      <filter-name>SigTestsFilter_FilterChain_SIGRender_filter</filter-name>
+      <filter-class>javax.portlet.tck.filters.SigTestsFilter_FilterChain_SIGRender_filter</filter-class>
+      <lifecycle>RENDER_PHASE</lifecycle>
+   </filter>
+   <filter>
+      <filter-name>SigTestsFilter_FilterConfig_SIGRender_filter</filter-name>
+      <filter-class>javax.portlet.tck.filters.SigTestsFilter_FilterConfig_SIGRender_filter</filter-class>
+      <lifecycle>RENDER_PHASE</lifecycle>
+   </filter>
+
+   <filter-mapping>
+      <filter-name>SigTestsFilter_FilterChain_SIGRender_filter</filter-name>
+      <portlet-name>SigTestsFilter_FilterChain_SIGRender</portlet-name>
+   </filter-mapping>
+   <filter-mapping>
+      <filter-name>SigTestsFilter_FilterConfig_SIGRender_filter</filter-name>
+      <portlet-name>SigTestsFilter_FilterConfig_SIGRender</portlet-name>
+   </filter-mapping>
 
    <event-definition>
       <qname>tck:SigTestsEvent_Event_SIGEvent</qname>