portals-pluto-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From msnickl...@apache.org
Subject [25/48] git commit: Continued work on dispatcher tests
Date Thu, 14 Aug 2014 13:24:00 GMT
Continued work on dispatcher 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/d54190c6
Tree: http://git-wip-us.apache.org/repos/asf/portals-pluto/tree/d54190c6
Diff: http://git-wip-us.apache.org/repos/asf/portals-pluto/diff/d54190c6

Branch: refs/heads/master
Commit: d54190c62b6b3e024b3b26a8c817add6ece59dfb
Parents: dcd43c8
Author: Scott Nicklous <msnicklous@apache.org>
Authored: Tue Aug 12 22:08:51 2014 +0200
Committer: Scott Nicklous <msnicklous@apache.org>
Committed: Tue Aug 12 22:08:51 2014 +0200

----------------------------------------------------------------------
 ...s_SPEC2_19_ForwardServletAction_servlet.java |  58 +++-
 ...ts_SPEC2_19_ForwardServletEvent_servlet.java |  58 +++-
 ...s_SPEC2_19_ForwardServletRender_servlet.java |  57 +++-
 ...SPEC2_19_ForwardServletResource_servlet.java |  56 +++-
 ...s_SPEC2_19_IncludeServletAction_servlet.java |  59 +++-
 ...ts_SPEC2_19_IncludeServletEvent_servlet.java |  59 +++-
 ...s_SPEC2_19_IncludeServletRender_servlet.java |  57 +++-
 ...SPEC2_19_IncludeServletResource_servlet.java |  56 +++-
 .../resources/xml-resources/additionalTCs.xml   | 298 +++++++++++++------
 .../resources/xml-resources/additionalTCs.xml   | 206 +++++++++++++
 ...spatcherTests2_SPEC2_19_ForwardJSPAction.jsp |  58 +++-
 ...ispatcherTests2_SPEC2_19_ForwardJSPEvent.jsp |  58 +++-
 ...spatcherTests2_SPEC2_19_ForwardJSPRender.jsp |  57 +++-
 ...atcherTests2_SPEC2_19_ForwardJSPResource.jsp |  56 +++-
 ...spatcherTests2_SPEC2_19_IncludeJSPAction.jsp |  59 +++-
 ...ispatcherTests2_SPEC2_19_IncludeJSPEvent.jsp |  59 +++-
 ...spatcherTests2_SPEC2_19_IncludeJSPRender.jsp |  57 +++-
 ...atcherTests2_SPEC2_19_IncludeJSPResource.jsp |  56 +++-
 .../javax/portlet/tck/beans/CompareUtils.java   |  49 +++
 .../beans/JSR286DispatcherTestCaseDetails.java  |  32 +-
 20 files changed, 1265 insertions(+), 240 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/d54190c6/portlet-tck_3.0/V2DispatcherTests/src/main/java/javax/portlet/tck/servlets/DispatcherTests_SPEC2_19_ForwardServletAction_servlet.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2DispatcherTests/src/main/java/javax/portlet/tck/servlets/DispatcherTests_SPEC2_19_ForwardServletAction_servlet.java b/portlet-tck_3.0/V2DispatcherTests/src/main/java/javax/portlet/tck/servlets/DispatcherTests_SPEC2_19_ForwardServletAction_servlet.java
index d9db5e6..d017c9b 100644
--- a/portlet-tck_3.0/V2DispatcherTests/src/main/java/javax/portlet/tck/servlets/DispatcherTests_SPEC2_19_ForwardServletAction_servlet.java
+++ b/portlet-tck_3.0/V2DispatcherTests/src/main/java/javax/portlet/tck/servlets/DispatcherTests_SPEC2_19_ForwardServletAction_servlet.java
@@ -121,6 +121,7 @@ public class DispatcherTests_SPEC2_19_ForwardServletAction_servlet extends HttpS
       /* scoped only for the duration of the forward or forward call"         */
       TestResult tr3 = tcd.getTestResultFailed(SPEC2_19_FORWARDSERVLETACTION_DISPATCH4);
       /* TODO: implement test */
+      tr3.appendTcDetail("Not implemented.");
       tr3.writeTo(writer);
 
       /* TestCase: SPEC2_19_ForwardServletAction_invoke1                      */
@@ -150,6 +151,7 @@ public class DispatcherTests_SPEC2_19_ForwardServletAction_servlet extends HttpS
       /* lifecyle method initiating the include"                              */
       TestResult tr6 = tcd.getTestResultFailed(SPEC2_19_FORWARDSERVLETACTION_INVOKE3);
       /* TODO: implement test */
+      tr6.appendTcDetail("Not implemented.");
       tr6.writeTo(writer);
 
       /* TestCase: SPEC2_19_ForwardServletAction_invoke4                      */
@@ -205,6 +207,7 @@ public class DispatcherTests_SPEC2_19_ForwardServletAction_servlet extends HttpS
       /* call remains valid"                                                  */
       TestResult tr11 = tcd.getTestResultFailed(SPEC2_19_FORWARDSERVLETACTION_STATE1);
       /* TODO: implement test */
+      tr11.appendTcDetail("Not implemented.");
       tr11.writeTo(writer);
 
       /* TestCase: SPEC2_19_ForwardServletAction_state2                       */
@@ -212,6 +215,7 @@ public class DispatcherTests_SPEC2_19_ForwardServletAction_servlet extends HttpS
       /* call remains valid"                                                  */
       TestResult tr12 = tcd.getTestResultFailed(SPEC2_19_FORWARDSERVLETACTION_STATE2);
       /* TODO: implement test */
+      tr12.appendTcDetail("Not implemented.");
       tr12.writeTo(writer);
 
       /* TestCase: SPEC2_19_ForwardServletAction_state3                       */
@@ -219,6 +223,7 @@ public class DispatcherTests_SPEC2_19_ForwardServletAction_servlet extends HttpS
       /* call remain valid"                                                   */
       TestResult tr13 = tcd.getTestResultFailed(SPEC2_19_FORWARDSERVLETACTION_STATE3);
       /* TODO: implement test */
+      tr13.appendTcDetail("Not implemented.");
       tr13.writeTo(writer);
 
       /* TestCase: SPEC2_19_ForwardServletAction_attributes1                  */
@@ -228,7 +233,12 @@ public class DispatcherTests_SPEC2_19_ForwardServletAction_servlet extends HttpS
       /* value from HTTPServletRequest.getRequestURI for the first servlet    */
       /* in the forward chain"                                                */
       TestResult tr14 = tcd.getTestResultFailed(SPEC2_19_FORWARDSERVLETACTION_ATTRIBUTES1);
-      /* TODO: implement test */
+      try {
+         String name = "javax.servlet.forward.req.uri";
+         String attrVal = (String) portletReq.getAttribute(name);
+         String currVal =  request.getRequestURI();
+         CompareUtils.stringsEqual(attrVal, currVal, tr14);
+      } catch(Exception e) {tr14.appendTcDetail(e.toString());}
       tr14.writeTo(writer);
 
       /* TestCase: SPEC2_19_ForwardServletAction_attributes2                  */
@@ -238,7 +248,12 @@ public class DispatcherTests_SPEC2_19_ForwardServletAction_servlet extends HttpS
       /* value from HTTPServletRequest.getContestPath for the first servlet   */
       /* in the forward chain"                                                */
       TestResult tr15 = tcd.getTestResultFailed(SPEC2_19_FORWARDSERVLETACTION_ATTRIBUTES2);
-      /* TODO: implement test */
+      try {
+         String name = "javax.servlet.forward.context_path";
+         String attrVal = (String) portletReq.getAttribute(name);
+         String currVal =  request.getContextPath();
+         CompareUtils.stringsEqual(attrVal, currVal, tr15);
+      } catch(Exception e) {tr15.appendTcDetail(e.toString());}
       tr15.writeTo(writer);
 
       /* TestCase: SPEC2_19_ForwardServletAction_attributes3                  */
@@ -248,7 +263,12 @@ public class DispatcherTests_SPEC2_19_ForwardServletAction_servlet extends HttpS
       /* value from HTTPServletRequest.getServletPath for the first servlet   */
       /* in the forward chain"                                                */
       TestResult tr16 = tcd.getTestResultFailed(SPEC2_19_FORWARDSERVLETACTION_ATTRIBUTES3);
-      /* TODO: implement test */
+      try {
+         String name = "javax.servlet.forward.servlet_path";
+         String attrVal = (String) portletReq.getAttribute(name);
+         String currVal =  request.getServletPath();
+         CompareUtils.stringsEqual(attrVal, currVal, tr16);
+      } catch(Exception e) {tr16.appendTcDetail(e.toString());}
       tr16.writeTo(writer);
 
       /* TestCase: SPEC2_19_ForwardServletAction_attributes4                  */
@@ -258,7 +278,12 @@ public class DispatcherTests_SPEC2_19_ForwardServletAction_servlet extends HttpS
       /* from HTTPServletRequest.getPathInfo for the first servlet in the     */
       /* forward chain"                                                       */
       TestResult tr17 = tcd.getTestResultFailed(SPEC2_19_FORWARDSERVLETACTION_ATTRIBUTES4);
-      /* TODO: implement test */
+      try {
+         String name = "javax.servlet.forward.path_info";
+         String attrVal = (String) portletReq.getAttribute(name);
+         String currVal =  request.getPathInfo();
+         CompareUtils.stringsEqual(attrVal, currVal, tr17);
+      } catch(Exception e) {tr17.appendTcDetail(e.toString());}
       tr17.writeTo(writer);
 
       /* TestCase: SPEC2_19_ForwardServletAction_attributes5                  */
@@ -268,14 +293,23 @@ public class DispatcherTests_SPEC2_19_ForwardServletAction_servlet extends HttpS
       /* value from HTTPServletRequest.getQueryString for the first servlet   */
       /* in the forward chain"                                                */
       TestResult tr18 = tcd.getTestResultFailed(SPEC2_19_FORWARDSERVLETACTION_ATTRIBUTES5);
-      /* TODO: implement test */
+      try {
+         String name = "javax.servlet.forward.query_string";
+         String attrVal = (String) portletReq.getAttribute(name);
+         String currVal =  request.getQueryString();
+         CompareUtils.stringsEqual(attrVal, currVal, tr18);
+      } catch(Exception e) {tr18.appendTcDetail(e.toString());}
       tr18.writeTo(writer);
 
       /* TestCase: SPEC2_19_ForwardServletAction_attributes6                  */
       /* Details: "The request attribute javax.portlet.config must be set     */
       /* to the javax.portlet.PortletConfig object"                           */
       TestResult tr19 = tcd.getTestResultFailed(SPEC2_19_FORWARDSERVLETACTION_ATTRIBUTES6);
-      /* TODO: implement test */
+      try {
+         ClassChecker cc = new ClassChecker(portletConfig.getClass());
+         boolean ok = cc.implementsInterface(PortletConfig.class);
+         tr19.setTcSuccess(ok);
+      } catch(Exception e) {tr19.appendTcDetail(e.toString());}
       tr19.writeTo(writer);
 
       /* TestCase: SPEC2_19_ForwardServletAction_attributes7                  */
@@ -283,7 +317,11 @@ public class DispatcherTests_SPEC2_19_ForwardServletAction_servlet extends HttpS
       /* attribute javax.portlet.request must be set to the                   */
       /* javax.portlet.ActionRequest object"                                  */
       TestResult tr20 = tcd.getTestResultFailed(SPEC2_19_FORWARDSERVLETACTION_ATTRIBUTES7);
-      /* TODO: implement test */
+      try {
+         ClassChecker cc = new ClassChecker(portletReq.getClass());
+         boolean ok = cc.implementsInterface(ActionRequest.class);
+         tr20.setTcSuccess(ok);
+      } catch(Exception e) {tr20.appendTcDetail(e.toString());}
       tr20.writeTo(writer);
 
       /* TestCase: SPEC2_19_ForwardServletAction_attributes8                  */
@@ -291,7 +329,11 @@ public class DispatcherTests_SPEC2_19_ForwardServletAction_servlet extends HttpS
       /* attribute javax.portlet.response must be set to the                  */
       /* javax.portlet.ActionResponse object"                                 */
       TestResult tr21 = tcd.getTestResultFailed(SPEC2_19_FORWARDSERVLETACTION_ATTRIBUTES8);
-      /* TODO: implement test */
+      try {
+         ClassChecker cc = new ClassChecker(portletResp.getClass());
+         boolean ok = cc.implementsInterface(ActionResponse.class);
+         tr21.setTcSuccess(ok);
+      } catch(Exception e) {tr21.appendTcDetail(e.toString());}
       tr21.writeTo(writer);
 
       request.getSession().setAttribute(

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/d54190c6/portlet-tck_3.0/V2DispatcherTests/src/main/java/javax/portlet/tck/servlets/DispatcherTests_SPEC2_19_ForwardServletEvent_servlet.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2DispatcherTests/src/main/java/javax/portlet/tck/servlets/DispatcherTests_SPEC2_19_ForwardServletEvent_servlet.java b/portlet-tck_3.0/V2DispatcherTests/src/main/java/javax/portlet/tck/servlets/DispatcherTests_SPEC2_19_ForwardServletEvent_servlet.java
index d5198a7..9c9e19f 100644
--- a/portlet-tck_3.0/V2DispatcherTests/src/main/java/javax/portlet/tck/servlets/DispatcherTests_SPEC2_19_ForwardServletEvent_servlet.java
+++ b/portlet-tck_3.0/V2DispatcherTests/src/main/java/javax/portlet/tck/servlets/DispatcherTests_SPEC2_19_ForwardServletEvent_servlet.java
@@ -121,6 +121,7 @@ public class DispatcherTests_SPEC2_19_ForwardServletEvent_servlet extends HttpSe
       /* scoped only for the duration of the forward or forward call"         */
       TestResult tr3 = tcd.getTestResultFailed(SPEC2_19_FORWARDSERVLETEVENT_DISPATCH4);
       /* TODO: implement test */
+      tr3.appendTcDetail("Not implemented.");
       tr3.writeTo(writer);
 
       /* TestCase: SPEC2_19_ForwardServletEvent_invoke1                       */
@@ -150,6 +151,7 @@ public class DispatcherTests_SPEC2_19_ForwardServletEvent_servlet extends HttpSe
       /* lifecyle method initiating the include"                              */
       TestResult tr6 = tcd.getTestResultFailed(SPEC2_19_FORWARDSERVLETEVENT_INVOKE3);
       /* TODO: implement test */
+      tr6.appendTcDetail("Not implemented.");
       tr6.writeTo(writer);
 
       /* TestCase: SPEC2_19_ForwardServletEvent_invoke4                       */
@@ -205,6 +207,7 @@ public class DispatcherTests_SPEC2_19_ForwardServletEvent_servlet extends HttpSe
       /* call remains valid"                                                  */
       TestResult tr11 = tcd.getTestResultFailed(SPEC2_19_FORWARDSERVLETEVENT_STATE1);
       /* TODO: implement test */
+      tr11.appendTcDetail("Not implemented.");
       tr11.writeTo(writer);
 
       /* TestCase: SPEC2_19_ForwardServletEvent_state2                        */
@@ -212,6 +215,7 @@ public class DispatcherTests_SPEC2_19_ForwardServletEvent_servlet extends HttpSe
       /* call remains valid"                                                  */
       TestResult tr12 = tcd.getTestResultFailed(SPEC2_19_FORWARDSERVLETEVENT_STATE2);
       /* TODO: implement test */
+      tr12.appendTcDetail("Not implemented.");
       tr12.writeTo(writer);
 
       /* TestCase: SPEC2_19_ForwardServletEvent_state3                        */
@@ -219,6 +223,7 @@ public class DispatcherTests_SPEC2_19_ForwardServletEvent_servlet extends HttpSe
       /* call remain valid"                                                   */
       TestResult tr13 = tcd.getTestResultFailed(SPEC2_19_FORWARDSERVLETEVENT_STATE3);
       /* TODO: implement test */
+      tr13.appendTcDetail("Not implemented.");
       tr13.writeTo(writer);
 
       /* TestCase: SPEC2_19_ForwardServletEvent_attributes1                   */
@@ -228,7 +233,12 @@ public class DispatcherTests_SPEC2_19_ForwardServletEvent_servlet extends HttpSe
       /* value from HTTPServletRequest.getRequestURI for the first servlet    */
       /* in the forward chain"                                                */
       TestResult tr14 = tcd.getTestResultFailed(SPEC2_19_FORWARDSERVLETEVENT_ATTRIBUTES1);
-      /* TODO: implement test */
+      try {
+         String name = "javax.servlet.forward.req.uri";
+         String attrVal = (String) portletReq.getAttribute(name);
+         String currVal =  request.getRequestURI();
+         CompareUtils.stringsEqual(attrVal, currVal, tr14);
+      } catch(Exception e) {tr14.appendTcDetail(e.toString());}
       tr14.writeTo(writer);
 
       /* TestCase: SPEC2_19_ForwardServletEvent_attributes2                   */
@@ -238,7 +248,12 @@ public class DispatcherTests_SPEC2_19_ForwardServletEvent_servlet extends HttpSe
       /* value from HTTPServletRequest.getContestPath for the first servlet   */
       /* in the forward chain"                                                */
       TestResult tr15 = tcd.getTestResultFailed(SPEC2_19_FORWARDSERVLETEVENT_ATTRIBUTES2);
-      /* TODO: implement test */
+      try {
+         String name = "javax.servlet.forward.context_path";
+         String attrVal = (String) portletReq.getAttribute(name);
+         String currVal =  request.getContextPath();
+         CompareUtils.stringsEqual(attrVal, currVal, tr15);
+      } catch(Exception e) {tr15.appendTcDetail(e.toString());}
       tr15.writeTo(writer);
 
       /* TestCase: SPEC2_19_ForwardServletEvent_attributes3                   */
@@ -248,7 +263,12 @@ public class DispatcherTests_SPEC2_19_ForwardServletEvent_servlet extends HttpSe
       /* value from HTTPServletRequest.getServletPath for the first servlet   */
       /* in the forward chain"                                                */
       TestResult tr16 = tcd.getTestResultFailed(SPEC2_19_FORWARDSERVLETEVENT_ATTRIBUTES3);
-      /* TODO: implement test */
+      try {
+         String name = "javax.servlet.forward.servlet_path";
+         String attrVal = (String) portletReq.getAttribute(name);
+         String currVal =  request.getServletPath();
+         CompareUtils.stringsEqual(attrVal, currVal, tr16);
+      } catch(Exception e) {tr16.appendTcDetail(e.toString());}
       tr16.writeTo(writer);
 
       /* TestCase: SPEC2_19_ForwardServletEvent_attributes4                   */
@@ -258,7 +278,12 @@ public class DispatcherTests_SPEC2_19_ForwardServletEvent_servlet extends HttpSe
       /* from HTTPServletRequest.getPathInfo for the first servlet in the     */
       /* forward chain"                                                       */
       TestResult tr17 = tcd.getTestResultFailed(SPEC2_19_FORWARDSERVLETEVENT_ATTRIBUTES4);
-      /* TODO: implement test */
+      try {
+         String name = "javax.servlet.forward.path_info";
+         String attrVal = (String) portletReq.getAttribute(name);
+         String currVal =  request.getPathInfo();
+         CompareUtils.stringsEqual(attrVal, currVal, tr17);
+      } catch(Exception e) {tr17.appendTcDetail(e.toString());}
       tr17.writeTo(writer);
 
       /* TestCase: SPEC2_19_ForwardServletEvent_attributes5                   */
@@ -268,14 +293,23 @@ public class DispatcherTests_SPEC2_19_ForwardServletEvent_servlet extends HttpSe
       /* value from HTTPServletRequest.getQueryString for the first servlet   */
       /* in the forward chain"                                                */
       TestResult tr18 = tcd.getTestResultFailed(SPEC2_19_FORWARDSERVLETEVENT_ATTRIBUTES5);
-      /* TODO: implement test */
+      try {
+         String name = "javax.servlet.forward.query_string";
+         String attrVal = (String) portletReq.getAttribute(name);
+         String currVal =  request.getQueryString();
+         CompareUtils.stringsEqual(attrVal, currVal, tr18);
+      } catch(Exception e) {tr18.appendTcDetail(e.toString());}
       tr18.writeTo(writer);
 
       /* TestCase: SPEC2_19_ForwardServletEvent_attributes6                   */
       /* Details: "The request attribute javax.portlet.config must be set     */
       /* to the javax.portlet.PortletConfig object"                           */
       TestResult tr19 = tcd.getTestResultFailed(SPEC2_19_FORWARDSERVLETEVENT_ATTRIBUTES6);
-      /* TODO: implement test */
+      try {
+         ClassChecker cc = new ClassChecker(portletConfig.getClass());
+         boolean ok = cc.implementsInterface(PortletConfig.class);
+         tr19.setTcSuccess(ok);
+      } catch(Exception e) {tr19.appendTcDetail(e.toString());}
       tr19.writeTo(writer);
 
       /* TestCase: SPEC2_19_ForwardServletEvent_attributes7                   */
@@ -283,7 +317,11 @@ public class DispatcherTests_SPEC2_19_ForwardServletEvent_servlet extends HttpSe
       /* attribute javax.portlet.request must be set to the                   */
       /* javax.portlet.EventRequest object"                                   */
       TestResult tr20 = tcd.getTestResultFailed(SPEC2_19_FORWARDSERVLETEVENT_ATTRIBUTES7);
-      /* TODO: implement test */
+      try {
+         ClassChecker cc = new ClassChecker(portletReq.getClass());
+         boolean ok = cc.implementsInterface(EventRequest.class);
+         tr20.setTcSuccess(ok);
+      } catch(Exception e) {tr20.appendTcDetail(e.toString());}
       tr20.writeTo(writer);
 
       /* TestCase: SPEC2_19_ForwardServletEvent_attributes8                   */
@@ -291,7 +329,11 @@ public class DispatcherTests_SPEC2_19_ForwardServletEvent_servlet extends HttpSe
       /* attribute javax.portlet.response must be set to the                  */
       /* javax.portlet.EventResponse object"                                  */
       TestResult tr21 = tcd.getTestResultFailed(SPEC2_19_FORWARDSERVLETEVENT_ATTRIBUTES8);
-      /* TODO: implement test */
+      try {
+         ClassChecker cc = new ClassChecker(portletResp.getClass());
+         boolean ok = cc.implementsInterface(EventResponse.class);
+         tr21.setTcSuccess(ok);
+      } catch(Exception e) {tr21.appendTcDetail(e.toString());}
       tr21.writeTo(writer);
 
       request.getSession().setAttribute(

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/d54190c6/portlet-tck_3.0/V2DispatcherTests/src/main/java/javax/portlet/tck/servlets/DispatcherTests_SPEC2_19_ForwardServletRender_servlet.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2DispatcherTests/src/main/java/javax/portlet/tck/servlets/DispatcherTests_SPEC2_19_ForwardServletRender_servlet.java b/portlet-tck_3.0/V2DispatcherTests/src/main/java/javax/portlet/tck/servlets/DispatcherTests_SPEC2_19_ForwardServletRender_servlet.java
index 984b680..ac1ec13 100644
--- a/portlet-tck_3.0/V2DispatcherTests/src/main/java/javax/portlet/tck/servlets/DispatcherTests_SPEC2_19_ForwardServletRender_servlet.java
+++ b/portlet-tck_3.0/V2DispatcherTests/src/main/java/javax/portlet/tck/servlets/DispatcherTests_SPEC2_19_ForwardServletRender_servlet.java
@@ -121,6 +121,7 @@ public class DispatcherTests_SPEC2_19_ForwardServletRender_servlet extends HttpS
       /* scoped only for the duration of the forward or forward call"         */
       TestResult tr3 = tcd.getTestResultFailed(SPEC2_19_FORWARDSERVLETRENDER_DISPATCH4);
       /* TODO: implement test */
+      tr3.appendTcDetail("Not implemented.");
       tr3.writeTo(writer);
 
       /* TestCase: SPEC2_19_ForwardServletRender_invoke1                      */
@@ -150,6 +151,7 @@ public class DispatcherTests_SPEC2_19_ForwardServletRender_servlet extends HttpS
       /* lifecyle method initiating the include"                              */
       TestResult tr6 = tcd.getTestResultFailed(SPEC2_19_FORWARDSERVLETRENDER_INVOKE3);
       /* TODO: implement test */
+      tr6.appendTcDetail("Not implemented.");
       tr6.writeTo(writer);
 
       /* TestCase: SPEC2_19_ForwardServletRender_invoke4                      */
@@ -206,6 +208,7 @@ public class DispatcherTests_SPEC2_19_ForwardServletRender_servlet extends HttpS
       /* committed, and closed by the portlet container"                      */
       TestResult tr11 = tcd.getTestResultFailed(SPEC2_19_FORWARDSERVLETRENDER_COMMIT1);
       /* TODO: implement test */
+      tr11.appendTcDetail("Not implemented.");
       tr11.writeTo(writer);
 
       /* TestCase: SPEC2_19_ForwardServletRender_title1                       */
@@ -213,6 +216,7 @@ public class DispatcherTests_SPEC2_19_ForwardServletRender_servlet extends HttpS
       /* call remains valid"                                                  */
       TestResult tr12 = tcd.getTestResultFailed(SPEC2_19_FORWARDSERVLETRENDER_TITLE1);
       /* TODO: implement test */
+      tr12.appendTcDetail("Not implemented.");
       tr12.writeTo(writer);
 
       /* TestCase: SPEC2_19_ForwardServletRender_attributes1                  */
@@ -222,7 +226,12 @@ public class DispatcherTests_SPEC2_19_ForwardServletRender_servlet extends HttpS
       /* value from HTTPServletRequest.getRequestURI for the first servlet    */
       /* in the forward chain"                                                */
       TestResult tr13 = tcd.getTestResultFailed(SPEC2_19_FORWARDSERVLETRENDER_ATTRIBUTES1);
-      /* TODO: implement test */
+      try {
+         String name = "javax.servlet.forward.req.uri";
+         String attrVal = (String) portletReq.getAttribute(name);
+         String currVal =  request.getRequestURI();
+         CompareUtils.stringsEqual(attrVal, currVal, tr13);
+      } catch(Exception e) {tr13.appendTcDetail(e.toString());}
       tr13.writeTo(writer);
 
       /* TestCase: SPEC2_19_ForwardServletRender_attributes2                  */
@@ -232,7 +241,12 @@ public class DispatcherTests_SPEC2_19_ForwardServletRender_servlet extends HttpS
       /* value from HTTPServletRequest.getContestPath for the first servlet   */
       /* in the forward chain"                                                */
       TestResult tr14 = tcd.getTestResultFailed(SPEC2_19_FORWARDSERVLETRENDER_ATTRIBUTES2);
-      /* TODO: implement test */
+      try {
+         String name = "javax.servlet.forward.context_path";
+         String attrVal = (String) portletReq.getAttribute(name);
+         String currVal =  request.getContextPath();
+         CompareUtils.stringsEqual(attrVal, currVal, tr14);
+      } catch(Exception e) {tr14.appendTcDetail(e.toString());}
       tr14.writeTo(writer);
 
       /* TestCase: SPEC2_19_ForwardServletRender_attributes3                  */
@@ -242,7 +256,12 @@ public class DispatcherTests_SPEC2_19_ForwardServletRender_servlet extends HttpS
       /* value from HTTPServletRequest.getServletPath for the first servlet   */
       /* in the forward chain"                                                */
       TestResult tr15 = tcd.getTestResultFailed(SPEC2_19_FORWARDSERVLETRENDER_ATTRIBUTES3);
-      /* TODO: implement test */
+      try {
+         String name = "javax.servlet.forward.servlet_path";
+         String attrVal = (String) portletReq.getAttribute(name);
+         String currVal =  request.getServletPath();
+         CompareUtils.stringsEqual(attrVal, currVal, tr15);
+      } catch(Exception e) {tr15.appendTcDetail(e.toString());}
       tr15.writeTo(writer);
 
       /* TestCase: SPEC2_19_ForwardServletRender_attributes4                  */
@@ -252,7 +271,12 @@ public class DispatcherTests_SPEC2_19_ForwardServletRender_servlet extends HttpS
       /* from HTTPServletRequest.getPathInfo for the first servlet in the     */
       /* forward chain"                                                       */
       TestResult tr16 = tcd.getTestResultFailed(SPEC2_19_FORWARDSERVLETRENDER_ATTRIBUTES4);
-      /* TODO: implement test */
+      try {
+         String name = "javax.servlet.forward.path_info";
+         String attrVal = (String) portletReq.getAttribute(name);
+         String currVal =  request.getPathInfo();
+         CompareUtils.stringsEqual(attrVal, currVal, tr16);
+      } catch(Exception e) {tr16.appendTcDetail(e.toString());}
       tr16.writeTo(writer);
 
       /* TestCase: SPEC2_19_ForwardServletRender_attributes5                  */
@@ -262,14 +286,23 @@ public class DispatcherTests_SPEC2_19_ForwardServletRender_servlet extends HttpS
       /* value from HTTPServletRequest.getQueryString for the first servlet   */
       /* in the forward chain"                                                */
       TestResult tr17 = tcd.getTestResultFailed(SPEC2_19_FORWARDSERVLETRENDER_ATTRIBUTES5);
-      /* TODO: implement test */
+      try {
+         String name = "javax.servlet.forward.query_string";
+         String attrVal = (String) portletReq.getAttribute(name);
+         String currVal =  request.getQueryString();
+         CompareUtils.stringsEqual(attrVal, currVal, tr17);
+      } catch(Exception e) {tr17.appendTcDetail(e.toString());}
       tr17.writeTo(writer);
 
       /* TestCase: SPEC2_19_ForwardServletRender_attributes6                  */
       /* Details: "The request attribute javax.portlet.config must be set     */
       /* to the javax.portlet.PortletConfig object"                           */
       TestResult tr18 = tcd.getTestResultFailed(SPEC2_19_FORWARDSERVLETRENDER_ATTRIBUTES6);
-      /* TODO: implement test */
+      try {
+         ClassChecker cc = new ClassChecker(portletConfig.getClass());
+         boolean ok = cc.implementsInterface(PortletConfig.class);
+         tr18.setTcSuccess(ok);
+      } catch(Exception e) {tr18.appendTcDetail(e.toString());}
       tr18.writeTo(writer);
 
       /* TestCase: SPEC2_19_ForwardServletRender_attributes7                  */
@@ -277,7 +310,11 @@ public class DispatcherTests_SPEC2_19_ForwardServletRender_servlet extends HttpS
       /* attribute javax.portlet.request must be set to the                   */
       /* javax.portlet.RenderRequest object"                                  */
       TestResult tr19 = tcd.getTestResultFailed(SPEC2_19_FORWARDSERVLETRENDER_ATTRIBUTES7);
-      /* TODO: implement test */
+      try {
+         ClassChecker cc = new ClassChecker(portletReq.getClass());
+         boolean ok = cc.implementsInterface(RenderRequest.class);
+         tr19.setTcSuccess(ok);
+      } catch(Exception e) {tr19.appendTcDetail(e.toString());}
       tr19.writeTo(writer);
 
       /* TestCase: SPEC2_19_ForwardServletRender_attributes8                  */
@@ -285,7 +322,11 @@ public class DispatcherTests_SPEC2_19_ForwardServletRender_servlet extends HttpS
       /* attribute javax.portlet.response must be set to the                  */
       /* javax.portlet.RenderResponse object"                                 */
       TestResult tr20 = tcd.getTestResultFailed(SPEC2_19_FORWARDSERVLETRENDER_ATTRIBUTES8);
-      /* TODO: implement test */
+      try {
+         ClassChecker cc = new ClassChecker(portletResp.getClass());
+         boolean ok = cc.implementsInterface(RenderResponse.class);
+         tr20.setTcSuccess(ok);
+      } catch(Exception e) {tr20.appendTcDetail(e.toString());}
       tr20.writeTo(writer);
 
 

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/d54190c6/portlet-tck_3.0/V2DispatcherTests/src/main/java/javax/portlet/tck/servlets/DispatcherTests_SPEC2_19_ForwardServletResource_servlet.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2DispatcherTests/src/main/java/javax/portlet/tck/servlets/DispatcherTests_SPEC2_19_ForwardServletResource_servlet.java b/portlet-tck_3.0/V2DispatcherTests/src/main/java/javax/portlet/tck/servlets/DispatcherTests_SPEC2_19_ForwardServletResource_servlet.java
index 59ae8c5..13ce0ae 100644
--- a/portlet-tck_3.0/V2DispatcherTests/src/main/java/javax/portlet/tck/servlets/DispatcherTests_SPEC2_19_ForwardServletResource_servlet.java
+++ b/portlet-tck_3.0/V2DispatcherTests/src/main/java/javax/portlet/tck/servlets/DispatcherTests_SPEC2_19_ForwardServletResource_servlet.java
@@ -121,6 +121,7 @@ public class DispatcherTests_SPEC2_19_ForwardServletResource_servlet extends Htt
       /* scoped only for the duration of the forward or forward call"         */
       TestResult tr3 = tcd.getTestResultFailed(SPEC2_19_FORWARDSERVLETRESOURCE_DISPATCH4);
       /* TODO: implement test */
+      tr3.appendTcDetail("Not implemented.");
       tr3.writeTo(writer);
 
       /* TestCase: SPEC2_19_ForwardServletResource_invoke1                    */
@@ -150,6 +151,7 @@ public class DispatcherTests_SPEC2_19_ForwardServletResource_servlet extends Htt
       /* lifecyle method initiating the include"                              */
       TestResult tr6 = tcd.getTestResultFailed(SPEC2_19_FORWARDSERVLETRESOURCE_INVOKE3);
       /* TODO: implement test */
+      tr6.appendTcDetail("Not implemented.");
       tr6.writeTo(writer);
 
       /* TestCase: SPEC2_19_ForwardServletResource_invoke4                    */
@@ -206,6 +208,7 @@ public class DispatcherTests_SPEC2_19_ForwardServletResource_servlet extends Htt
       /* committed, and closed by the portlet container"                      */
       TestResult tr11 = tcd.getTestResultFailed(SPEC2_19_FORWARDSERVLETRESOURCE_COMMIT1);
       /* TODO: implement test */
+      tr11.appendTcDetail("Not implemented.");
       tr11.writeTo(writer);
 
       /* TestCase: SPEC2_19_ForwardServletResource_attributes1                */
@@ -215,7 +218,12 @@ public class DispatcherTests_SPEC2_19_ForwardServletResource_servlet extends Htt
       /* value from HTTPServletRequest.getRequestURI for the first servlet    */
       /* in the forward chain"                                                */
       TestResult tr12 = tcd.getTestResultFailed(SPEC2_19_FORWARDSERVLETRESOURCE_ATTRIBUTES1);
-      /* TODO: implement test */
+      try {
+         String name = "javax.servlet.forward.req.uri";
+         String attrVal = (String) portletReq.getAttribute(name);
+         String currVal =  request.getRequestURI();
+         CompareUtils.stringsEqual(attrVal, currVal, tr12);
+      } catch(Exception e) {tr12.appendTcDetail(e.toString());}
       tr12.writeTo(writer);
 
       /* TestCase: SPEC2_19_ForwardServletResource_attributes2                */
@@ -225,7 +233,12 @@ public class DispatcherTests_SPEC2_19_ForwardServletResource_servlet extends Htt
       /* value from HTTPServletRequest.getContestPath for the first servlet   */
       /* in the forward chain"                                                */
       TestResult tr13 = tcd.getTestResultFailed(SPEC2_19_FORWARDSERVLETRESOURCE_ATTRIBUTES2);
-      /* TODO: implement test */
+      try {
+         String name = "javax.servlet.forward.context_path";
+         String attrVal = (String) portletReq.getAttribute(name);
+         String currVal =  request.getContextPath();
+         CompareUtils.stringsEqual(attrVal, currVal, tr13);
+      } catch(Exception e) {tr13.appendTcDetail(e.toString());}
       tr13.writeTo(writer);
 
       /* TestCase: SPEC2_19_ForwardServletResource_attributes3                */
@@ -235,7 +248,12 @@ public class DispatcherTests_SPEC2_19_ForwardServletResource_servlet extends Htt
       /* value from HTTPServletRequest.getServletPath for the first servlet   */
       /* in the forward chain"                                                */
       TestResult tr14 = tcd.getTestResultFailed(SPEC2_19_FORWARDSERVLETRESOURCE_ATTRIBUTES3);
-      /* TODO: implement test */
+      try {
+         String name = "javax.servlet.forward.servlet_path";
+         String attrVal = (String) portletReq.getAttribute(name);
+         String currVal =  request.getServletPath();
+         CompareUtils.stringsEqual(attrVal, currVal, tr14);
+      } catch(Exception e) {tr14.appendTcDetail(e.toString());}
       tr14.writeTo(writer);
 
       /* TestCase: SPEC2_19_ForwardServletResource_attributes4                */
@@ -245,7 +263,12 @@ public class DispatcherTests_SPEC2_19_ForwardServletResource_servlet extends Htt
       /* from HTTPServletRequest.getPathInfo for the first servlet in the     */
       /* forward chain"                                                       */
       TestResult tr15 = tcd.getTestResultFailed(SPEC2_19_FORWARDSERVLETRESOURCE_ATTRIBUTES4);
-      /* TODO: implement test */
+      try {
+         String name = "javax.servlet.forward.path_info";
+         String attrVal = (String) portletReq.getAttribute(name);
+         String currVal =  request.getPathInfo();
+         CompareUtils.stringsEqual(attrVal, currVal, tr15);
+      } catch(Exception e) {tr15.appendTcDetail(e.toString());}
       tr15.writeTo(writer);
 
       /* TestCase: SPEC2_19_ForwardServletResource_attributes5                */
@@ -255,14 +278,23 @@ public class DispatcherTests_SPEC2_19_ForwardServletResource_servlet extends Htt
       /* value from HTTPServletRequest.getQueryString for the first servlet   */
       /* in the forward chain"                                                */
       TestResult tr16 = tcd.getTestResultFailed(SPEC2_19_FORWARDSERVLETRESOURCE_ATTRIBUTES5);
-      /* TODO: implement test */
+      try {
+         String name = "javax.servlet.forward.query_string";
+         String attrVal = (String) portletReq.getAttribute(name);
+         String currVal =  request.getQueryString();
+         CompareUtils.stringsEqual(attrVal, currVal, tr16);
+      } catch(Exception e) {tr16.appendTcDetail(e.toString());}
       tr16.writeTo(writer);
 
       /* TestCase: SPEC2_19_ForwardServletResource_attributes6                */
       /* Details: "The request attribute javax.portlet.config must be set     */
       /* to the javax.portlet.PortletConfig object"                           */
       TestResult tr17 = tcd.getTestResultFailed(SPEC2_19_FORWARDSERVLETRESOURCE_ATTRIBUTES6);
-      /* TODO: implement test */
+      try {
+         ClassChecker cc = new ClassChecker(portletConfig.getClass());
+         boolean ok = cc.implementsInterface(PortletConfig.class);
+         tr17.setTcSuccess(ok);
+      } catch(Exception e) {tr17.appendTcDetail(e.toString());}
       tr17.writeTo(writer);
 
       /* TestCase: SPEC2_19_ForwardServletResource_attributes7                */
@@ -270,7 +302,11 @@ public class DispatcherTests_SPEC2_19_ForwardServletResource_servlet extends Htt
       /* attribute javax.portlet.request must be set to the                   */
       /* javax.portlet.ResourceRequest object"                                */
       TestResult tr18 = tcd.getTestResultFailed(SPEC2_19_FORWARDSERVLETRESOURCE_ATTRIBUTES7);
-      /* TODO: implement test */
+      try {
+         ClassChecker cc = new ClassChecker(portletReq.getClass());
+         boolean ok = cc.implementsInterface(ResourceRequest.class);
+         tr18.setTcSuccess(ok);
+      } catch(Exception e) {tr18.appendTcDetail(e.toString());}
       tr18.writeTo(writer);
 
       /* TestCase: SPEC2_19_ForwardServletResource_attributes8                */
@@ -278,7 +314,11 @@ public class DispatcherTests_SPEC2_19_ForwardServletResource_servlet extends Htt
       /* attribute javax.portlet.response must be set to the                  */
       /* javax.portlet.ResourceResponse object"                               */
       TestResult tr19 = tcd.getTestResultFailed(SPEC2_19_FORWARDSERVLETRESOURCE_ATTRIBUTES8);
-      /* TODO: implement test */
+      try {
+         ClassChecker cc = new ClassChecker(portletResp.getClass());
+         boolean ok = cc.implementsInterface(ResourceResponse.class);
+         tr19.setTcSuccess(ok);
+      } catch(Exception e) {tr19.appendTcDetail(e.toString());}
       tr19.writeTo(writer);
 
 

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/d54190c6/portlet-tck_3.0/V2DispatcherTests/src/main/java/javax/portlet/tck/servlets/DispatcherTests_SPEC2_19_IncludeServletAction_servlet.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2DispatcherTests/src/main/java/javax/portlet/tck/servlets/DispatcherTests_SPEC2_19_IncludeServletAction_servlet.java b/portlet-tck_3.0/V2DispatcherTests/src/main/java/javax/portlet/tck/servlets/DispatcherTests_SPEC2_19_IncludeServletAction_servlet.java
index 6d8fc5f..d58f5b0 100644
--- a/portlet-tck_3.0/V2DispatcherTests/src/main/java/javax/portlet/tck/servlets/DispatcherTests_SPEC2_19_IncludeServletAction_servlet.java
+++ b/portlet-tck_3.0/V2DispatcherTests/src/main/java/javax/portlet/tck/servlets/DispatcherTests_SPEC2_19_IncludeServletAction_servlet.java
@@ -121,6 +121,7 @@ public class DispatcherTests_SPEC2_19_IncludeServletAction_servlet extends HttpS
       /* scoped only for the duration of the include or forward call"         */
       TestResult tr3 = tcd.getTestResultFailed(SPEC2_19_INCLUDESERVLETACTION_DISPATCH4);
       /* TODO: implement test */
+      tr3.appendTcDetail("Not implemented.");
       tr3.writeTo(writer);
 
       /* TestCase: SPEC2_19_IncludeServletAction_invoke1                      */
@@ -150,6 +151,7 @@ public class DispatcherTests_SPEC2_19_IncludeServletAction_servlet extends HttpS
       /* lifecyle method initiating the include"                              */
       TestResult tr6 = tcd.getTestResultFailed(SPEC2_19_INCLUDESERVLETACTION_INVOKE3);
       /* TODO: implement test */
+      tr6.appendTcDetail("Not implemented.");
       tr6.writeTo(writer);
 
       /* TestCase: SPEC2_19_IncludeServletAction_invoke4                      */
@@ -205,6 +207,7 @@ public class DispatcherTests_SPEC2_19_IncludeServletAction_servlet extends HttpS
       /* same lifecycle method"                                               */
       TestResult tr11 = tcd.getTestResultFailed(SPEC2_19_INCLUDESERVLETACTION_INVOKE8);
       /* TODO: implement test */
+      tr11.appendTcDetail("Not implemented.");
       tr11.writeTo(writer);
 
       /* TestCase: SPEC2_19_IncludeServletAction_invoke9                      */
@@ -222,6 +225,7 @@ public class DispatcherTests_SPEC2_19_IncludeServletAction_servlet extends HttpS
       /* call remains valid"                                                  */
       TestResult tr13 = tcd.getTestResultFailed(SPEC2_19_INCLUDESERVLETACTION_STATE1);
       /* TODO: implement test */
+      tr13.appendTcDetail("Not implemented.");
       tr13.writeTo(writer);
 
       /* TestCase: SPEC2_19_IncludeServletAction_state2                       */
@@ -229,6 +233,7 @@ public class DispatcherTests_SPEC2_19_IncludeServletAction_servlet extends HttpS
       /* call remains valid"                                                  */
       TestResult tr14 = tcd.getTestResultFailed(SPEC2_19_INCLUDESERVLETACTION_STATE2);
       /* TODO: implement test */
+      tr14.appendTcDetail("Not implemented.");
       tr14.writeTo(writer);
 
       /* TestCase: SPEC2_19_IncludeServletAction_state3                       */
@@ -236,6 +241,7 @@ public class DispatcherTests_SPEC2_19_IncludeServletAction_servlet extends HttpS
       /* call remain valid"                                                   */
       TestResult tr15 = tcd.getTestResultFailed(SPEC2_19_INCLUDESERVLETACTION_STATE3);
       /* TODO: implement test */
+      tr15.appendTcDetail("Not implemented.");
       tr15.writeTo(writer);
 
       /* TestCase: SPEC2_19_IncludeServletAction_attributes1                  */
@@ -245,7 +251,12 @@ public class DispatcherTests_SPEC2_19_IncludeServletAction_servlet extends HttpS
       /* value from HTTPServletRequest.getRequestURI for the first servlet    */
       /* in the include chain"                                                */
       TestResult tr16 = tcd.getTestResultFailed(SPEC2_19_INCLUDESERVLETACTION_ATTRIBUTES1);
-      /* TODO: implement test */
+      try {
+         String name = "javax.servlet.include.req.uri";
+         String attrVal = (String) portletReq.getAttribute(name);
+         String currVal =  request.getRequestURI();
+         CompareUtils.stringsEqual(attrVal, currVal, tr16);
+      } catch(Exception e) {tr16.appendTcDetail(e.toString());}
       tr16.writeTo(writer);
 
       /* TestCase: SPEC2_19_IncludeServletAction_attributes2                  */
@@ -255,7 +266,12 @@ public class DispatcherTests_SPEC2_19_IncludeServletAction_servlet extends HttpS
       /* value from HTTPServletRequest.getContestPath for the first servlet   */
       /* in the include chain"                                                */
       TestResult tr17 = tcd.getTestResultFailed(SPEC2_19_INCLUDESERVLETACTION_ATTRIBUTES2);
-      /* TODO: implement test */
+      try {
+         String name = "javax.servlet.include.context_path";
+         String attrVal = (String) portletReq.getAttribute(name);
+         String currVal =  request.getContextPath();
+         CompareUtils.stringsEqual(attrVal, currVal, tr17);
+      } catch(Exception e) {tr17.appendTcDetail(e.toString());}
       tr17.writeTo(writer);
 
       /* TestCase: SPEC2_19_IncludeServletAction_attributes3                  */
@@ -265,7 +281,12 @@ public class DispatcherTests_SPEC2_19_IncludeServletAction_servlet extends HttpS
       /* value from HTTPServletRequest.getServletPath for the first servlet   */
       /* in the include chain"                                                */
       TestResult tr18 = tcd.getTestResultFailed(SPEC2_19_INCLUDESERVLETACTION_ATTRIBUTES3);
-      /* TODO: implement test */
+      try {
+         String name = "javax.servlet.include.servlet_path";
+         String attrVal = (String) portletReq.getAttribute(name);
+         String currVal =  request.getServletPath();
+         CompareUtils.stringsEqual(attrVal, currVal, tr18);
+      } catch(Exception e) {tr18.appendTcDetail(e.toString());}
       tr18.writeTo(writer);
 
       /* TestCase: SPEC2_19_IncludeServletAction_attributes4                  */
@@ -275,7 +296,12 @@ public class DispatcherTests_SPEC2_19_IncludeServletAction_servlet extends HttpS
       /* from HTTPServletRequest.getPathInfo for the first servlet in the     */
       /* include chain"                                                       */
       TestResult tr19 = tcd.getTestResultFailed(SPEC2_19_INCLUDESERVLETACTION_ATTRIBUTES4);
-      /* TODO: implement test */
+      try {
+         String name = "javax.servlet.include.path_info";
+         String attrVal = (String) portletReq.getAttribute(name);
+         String currVal =  request.getPathInfo();
+         CompareUtils.stringsEqual(attrVal, currVal, tr19);
+      } catch(Exception e) {tr19.appendTcDetail(e.toString());}
       tr19.writeTo(writer);
 
       /* TestCase: SPEC2_19_IncludeServletAction_attributes5                  */
@@ -285,14 +311,23 @@ public class DispatcherTests_SPEC2_19_IncludeServletAction_servlet extends HttpS
       /* value from HTTPServletRequest.getQueryString for the first servlet   */
       /* in the include chain"                                                */
       TestResult tr20 = tcd.getTestResultFailed(SPEC2_19_INCLUDESERVLETACTION_ATTRIBUTES5);
-      /* TODO: implement test */
+      try {
+         String name = "javax.servlet.include.query_string";
+         String attrVal = (String) portletReq.getAttribute(name);
+         String currVal =  request.getQueryString();
+         CompareUtils.stringsEqual(attrVal, currVal, tr20);
+      } catch(Exception e) {tr20.appendTcDetail(e.toString());}
       tr20.writeTo(writer);
 
       /* TestCase: SPEC2_19_IncludeServletAction_attributes6                  */
       /* Details: "The request attribute javax.portlet.config must be set     */
       /* to the javax.portlet.PortletConfig object"                           */
       TestResult tr21 = tcd.getTestResultFailed(SPEC2_19_INCLUDESERVLETACTION_ATTRIBUTES6);
-      /* TODO: implement test */
+      try {
+         ClassChecker cc = new ClassChecker(portletConfig.getClass());
+         boolean ok = cc.implementsInterface(PortletConfig.class);
+         tr21.setTcSuccess(ok);
+      } catch(Exception e) {tr21.appendTcDetail(e.toString());}
       tr21.writeTo(writer);
 
       /* TestCase: SPEC2_19_IncludeServletAction_attributes7                  */
@@ -300,7 +335,11 @@ public class DispatcherTests_SPEC2_19_IncludeServletAction_servlet extends HttpS
       /* attribute javax.portlet.request must be set to the                   */
       /* javax.portlet.ActionRequest object"                                  */
       TestResult tr22 = tcd.getTestResultFailed(SPEC2_19_INCLUDESERVLETACTION_ATTRIBUTES7);
-      /* TODO: implement test */
+      try {
+         ClassChecker cc = new ClassChecker(portletReq.getClass());
+         boolean ok = cc.implementsInterface(ActionRequest.class);
+         tr22.setTcSuccess(ok);
+      } catch(Exception e) {tr22.appendTcDetail(e.toString());}
       tr22.writeTo(writer);
 
       /* TestCase: SPEC2_19_IncludeServletAction_attributes8                  */
@@ -308,7 +347,11 @@ public class DispatcherTests_SPEC2_19_IncludeServletAction_servlet extends HttpS
       /* attribute javax.portlet.response must be set to the                  */
       /* javax.portlet.ActionResponse object"                                 */
       TestResult tr23 = tcd.getTestResultFailed(SPEC2_19_INCLUDESERVLETACTION_ATTRIBUTES8);
-      /* TODO: implement test */
+      try {
+         ClassChecker cc = new ClassChecker(portletResp.getClass());
+         boolean ok = cc.implementsInterface(ActionResponse.class);
+         tr23.setTcSuccess(ok);
+      } catch(Exception e) {tr23.appendTcDetail(e.toString());}
       tr23.writeTo(writer);
 
       request.getSession().setAttribute(

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/d54190c6/portlet-tck_3.0/V2DispatcherTests/src/main/java/javax/portlet/tck/servlets/DispatcherTests_SPEC2_19_IncludeServletEvent_servlet.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2DispatcherTests/src/main/java/javax/portlet/tck/servlets/DispatcherTests_SPEC2_19_IncludeServletEvent_servlet.java b/portlet-tck_3.0/V2DispatcherTests/src/main/java/javax/portlet/tck/servlets/DispatcherTests_SPEC2_19_IncludeServletEvent_servlet.java
index 12541a7..9dde728 100644
--- a/portlet-tck_3.0/V2DispatcherTests/src/main/java/javax/portlet/tck/servlets/DispatcherTests_SPEC2_19_IncludeServletEvent_servlet.java
+++ b/portlet-tck_3.0/V2DispatcherTests/src/main/java/javax/portlet/tck/servlets/DispatcherTests_SPEC2_19_IncludeServletEvent_servlet.java
@@ -121,6 +121,7 @@ public class DispatcherTests_SPEC2_19_IncludeServletEvent_servlet extends HttpSe
       /* scoped only for the duration of the include or forward call"         */
       TestResult tr3 = tcd.getTestResultFailed(SPEC2_19_INCLUDESERVLETEVENT_DISPATCH4);
       /* TODO: implement test */
+      tr3.appendTcDetail("Not implemented.");
       tr3.writeTo(writer);
 
       /* TestCase: SPEC2_19_IncludeServletEvent_invoke1                       */
@@ -150,6 +151,7 @@ public class DispatcherTests_SPEC2_19_IncludeServletEvent_servlet extends HttpSe
       /* lifecyle method initiating the include"                              */
       TestResult tr6 = tcd.getTestResultFailed(SPEC2_19_INCLUDESERVLETEVENT_INVOKE3);
       /* TODO: implement test */
+      tr6.appendTcDetail("Not implemented.");
       tr6.writeTo(writer);
 
       /* TestCase: SPEC2_19_IncludeServletEvent_invoke4                       */
@@ -205,6 +207,7 @@ public class DispatcherTests_SPEC2_19_IncludeServletEvent_servlet extends HttpSe
       /* same lifecycle method"                                               */
       TestResult tr11 = tcd.getTestResultFailed(SPEC2_19_INCLUDESERVLETEVENT_INVOKE8);
       /* TODO: implement test */
+      tr11.appendTcDetail("Not implemented.");
       tr11.writeTo(writer);
 
       /* TestCase: SPEC2_19_IncludeServletEvent_invoke9                       */
@@ -222,6 +225,7 @@ public class DispatcherTests_SPEC2_19_IncludeServletEvent_servlet extends HttpSe
       /* call remains valid"                                                  */
       TestResult tr13 = tcd.getTestResultFailed(SPEC2_19_INCLUDESERVLETEVENT_STATE1);
       /* TODO: implement test */
+      tr13.appendTcDetail("Not implemented.");
       tr13.writeTo(writer);
 
       /* TestCase: SPEC2_19_IncludeServletEvent_state2                        */
@@ -229,6 +233,7 @@ public class DispatcherTests_SPEC2_19_IncludeServletEvent_servlet extends HttpSe
       /* call remains valid"                                                  */
       TestResult tr14 = tcd.getTestResultFailed(SPEC2_19_INCLUDESERVLETEVENT_STATE2);
       /* TODO: implement test */
+      tr14.appendTcDetail("Not implemented.");
       tr14.writeTo(writer);
 
       /* TestCase: SPEC2_19_IncludeServletEvent_state3                        */
@@ -236,6 +241,7 @@ public class DispatcherTests_SPEC2_19_IncludeServletEvent_servlet extends HttpSe
       /* call remain valid"                                                   */
       TestResult tr15 = tcd.getTestResultFailed(SPEC2_19_INCLUDESERVLETEVENT_STATE3);
       /* TODO: implement test */
+      tr15.appendTcDetail("Not implemented.");
       tr15.writeTo(writer);
 
       /* TestCase: SPEC2_19_IncludeServletEvent_attributes1                   */
@@ -245,7 +251,12 @@ public class DispatcherTests_SPEC2_19_IncludeServletEvent_servlet extends HttpSe
       /* value from HTTPServletRequest.getRequestURI for the first servlet    */
       /* in the include chain"                                                */
       TestResult tr16 = tcd.getTestResultFailed(SPEC2_19_INCLUDESERVLETEVENT_ATTRIBUTES1);
-      /* TODO: implement test */
+      try {
+         String name = "javax.servlet.include.req.uri";
+         String attrVal = (String) portletReq.getAttribute(name);
+         String currVal =  request.getRequestURI();
+         CompareUtils.stringsEqual(attrVal, currVal, tr16);
+      } catch(Exception e) {tr16.appendTcDetail(e.toString());}
       tr16.writeTo(writer);
 
       /* TestCase: SPEC2_19_IncludeServletEvent_attributes2                   */
@@ -255,7 +266,12 @@ public class DispatcherTests_SPEC2_19_IncludeServletEvent_servlet extends HttpSe
       /* value from HTTPServletRequest.getContestPath for the first servlet   */
       /* in the include chain"                                                */
       TestResult tr17 = tcd.getTestResultFailed(SPEC2_19_INCLUDESERVLETEVENT_ATTRIBUTES2);
-      /* TODO: implement test */
+      try {
+         String name = "javax.servlet.include.context_path";
+         String attrVal = (String) portletReq.getAttribute(name);
+         String currVal =  request.getContextPath();
+         CompareUtils.stringsEqual(attrVal, currVal, tr17);
+      } catch(Exception e) {tr17.appendTcDetail(e.toString());}
       tr17.writeTo(writer);
 
       /* TestCase: SPEC2_19_IncludeServletEvent_attributes3                   */
@@ -265,7 +281,12 @@ public class DispatcherTests_SPEC2_19_IncludeServletEvent_servlet extends HttpSe
       /* value from HTTPServletRequest.getServletPath for the first servlet   */
       /* in the include chain"                                                */
       TestResult tr18 = tcd.getTestResultFailed(SPEC2_19_INCLUDESERVLETEVENT_ATTRIBUTES3);
-      /* TODO: implement test */
+      try {
+         String name = "javax.servlet.include.servlet_path";
+         String attrVal = (String) portletReq.getAttribute(name);
+         String currVal =  request.getServletPath();
+         CompareUtils.stringsEqual(attrVal, currVal, tr18);
+      } catch(Exception e) {tr18.appendTcDetail(e.toString());}
       tr18.writeTo(writer);
 
       /* TestCase: SPEC2_19_IncludeServletEvent_attributes4                   */
@@ -275,7 +296,12 @@ public class DispatcherTests_SPEC2_19_IncludeServletEvent_servlet extends HttpSe
       /* from HTTPServletRequest.getPathInfo for the first servlet in the     */
       /* include chain"                                                       */
       TestResult tr19 = tcd.getTestResultFailed(SPEC2_19_INCLUDESERVLETEVENT_ATTRIBUTES4);
-      /* TODO: implement test */
+      try {
+         String name = "javax.servlet.include.path_info";
+         String attrVal = (String) portletReq.getAttribute(name);
+         String currVal =  request.getPathInfo();
+         CompareUtils.stringsEqual(attrVal, currVal, tr19);
+      } catch(Exception e) {tr19.appendTcDetail(e.toString());}
       tr19.writeTo(writer);
 
       /* TestCase: SPEC2_19_IncludeServletEvent_attributes5                   */
@@ -285,14 +311,23 @@ public class DispatcherTests_SPEC2_19_IncludeServletEvent_servlet extends HttpSe
       /* value from HTTPServletRequest.getQueryString for the first servlet   */
       /* in the include chain"                                                */
       TestResult tr20 = tcd.getTestResultFailed(SPEC2_19_INCLUDESERVLETEVENT_ATTRIBUTES5);
-      /* TODO: implement test */
+      try {
+         String name = "javax.servlet.include.query_string";
+         String attrVal = (String) portletReq.getAttribute(name);
+         String currVal =  request.getQueryString();
+         CompareUtils.stringsEqual(attrVal, currVal, tr20);
+      } catch(Exception e) {tr20.appendTcDetail(e.toString());}
       tr20.writeTo(writer);
 
       /* TestCase: SPEC2_19_IncludeServletEvent_attributes6                   */
       /* Details: "The request attribute javax.portlet.config must be set     */
       /* to the javax.portlet.PortletConfig object"                           */
       TestResult tr21 = tcd.getTestResultFailed(SPEC2_19_INCLUDESERVLETEVENT_ATTRIBUTES6);
-      /* TODO: implement test */
+      try {
+         ClassChecker cc = new ClassChecker(portletConfig.getClass());
+         boolean ok = cc.implementsInterface(PortletConfig.class);
+         tr21.setTcSuccess(ok);
+      } catch(Exception e) {tr21.appendTcDetail(e.toString());}
       tr21.writeTo(writer);
 
       /* TestCase: SPEC2_19_IncludeServletEvent_attributes7                   */
@@ -300,7 +335,11 @@ public class DispatcherTests_SPEC2_19_IncludeServletEvent_servlet extends HttpSe
       /* attribute javax.portlet.request must be set to the                   */
       /* javax.portlet.EventRequest object"                                   */
       TestResult tr22 = tcd.getTestResultFailed(SPEC2_19_INCLUDESERVLETEVENT_ATTRIBUTES7);
-      /* TODO: implement test */
+      try {
+         ClassChecker cc = new ClassChecker(portletReq.getClass());
+         boolean ok = cc.implementsInterface(EventRequest.class);
+         tr22.setTcSuccess(ok);
+      } catch(Exception e) {tr22.appendTcDetail(e.toString());}
       tr22.writeTo(writer);
 
       /* TestCase: SPEC2_19_IncludeServletEvent_attributes8                   */
@@ -308,7 +347,11 @@ public class DispatcherTests_SPEC2_19_IncludeServletEvent_servlet extends HttpSe
       /* attribute javax.portlet.response must be set to the                  */
       /* javax.portlet.EventResponse object"                                  */
       TestResult tr23 = tcd.getTestResultFailed(SPEC2_19_INCLUDESERVLETEVENT_ATTRIBUTES8);
-      /* TODO: implement test */
+      try {
+         ClassChecker cc = new ClassChecker(portletResp.getClass());
+         boolean ok = cc.implementsInterface(EventResponse.class);
+         tr23.setTcSuccess(ok);
+      } catch(Exception e) {tr23.appendTcDetail(e.toString());}
       tr23.writeTo(writer);
 
       request.getSession().setAttribute(

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/d54190c6/portlet-tck_3.0/V2DispatcherTests/src/main/java/javax/portlet/tck/servlets/DispatcherTests_SPEC2_19_IncludeServletRender_servlet.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2DispatcherTests/src/main/java/javax/portlet/tck/servlets/DispatcherTests_SPEC2_19_IncludeServletRender_servlet.java b/portlet-tck_3.0/V2DispatcherTests/src/main/java/javax/portlet/tck/servlets/DispatcherTests_SPEC2_19_IncludeServletRender_servlet.java
index 40e7368..f0118e5 100644
--- a/portlet-tck_3.0/V2DispatcherTests/src/main/java/javax/portlet/tck/servlets/DispatcherTests_SPEC2_19_IncludeServletRender_servlet.java
+++ b/portlet-tck_3.0/V2DispatcherTests/src/main/java/javax/portlet/tck/servlets/DispatcherTests_SPEC2_19_IncludeServletRender_servlet.java
@@ -121,6 +121,7 @@ public class DispatcherTests_SPEC2_19_IncludeServletRender_servlet extends HttpS
       /* scoped only for the duration of the include or forward call"         */
       TestResult tr3 = tcd.getTestResultFailed(SPEC2_19_INCLUDESERVLETRENDER_DISPATCH4);
       /* TODO: implement test */
+      tr3.appendTcDetail("Not implemented.");
       tr3.writeTo(writer);
 
       /* TestCase: SPEC2_19_IncludeServletRender_invoke1                      */
@@ -150,6 +151,7 @@ public class DispatcherTests_SPEC2_19_IncludeServletRender_servlet extends HttpS
       /* lifecyle method initiating the include"                              */
       TestResult tr6 = tcd.getTestResultFailed(SPEC2_19_INCLUDESERVLETRENDER_INVOKE3);
       /* TODO: implement test */
+      tr6.appendTcDetail("Not implemented.");
       tr6.writeTo(writer);
 
       /* TestCase: SPEC2_19_IncludeServletRender_invoke4                      */
@@ -205,6 +207,7 @@ public class DispatcherTests_SPEC2_19_IncludeServletRender_servlet extends HttpS
       /* same lifecycle method"                                               */
       TestResult tr11 = tcd.getTestResultFailed(SPEC2_19_INCLUDESERVLETRENDER_INVOKE8);
       /* TODO: implement test */
+      tr11.appendTcDetail("Not implemented.");
       tr11.writeTo(writer);
 
       /* TestCase: SPEC2_19_IncludeServletRender_invoke9                      */
@@ -222,6 +225,7 @@ public class DispatcherTests_SPEC2_19_IncludeServletRender_servlet extends HttpS
       /* call remains valid"                                                  */
       TestResult tr13 = tcd.getTestResultFailed(SPEC2_19_INCLUDESERVLETRENDER_TITLE1);
       /* TODO: implement test */
+      tr13.appendTcDetail("Not implemented.");
       tr13.writeTo(writer);
 
       /* TestCase: SPEC2_19_IncludeServletRender_attributes1                  */
@@ -231,7 +235,12 @@ public class DispatcherTests_SPEC2_19_IncludeServletRender_servlet extends HttpS
       /* value from HTTPServletRequest.getRequestURI for the first servlet    */
       /* in the include chain"                                                */
       TestResult tr14 = tcd.getTestResultFailed(SPEC2_19_INCLUDESERVLETRENDER_ATTRIBUTES1);
-      /* TODO: implement test */
+      try {
+         String name = "javax.servlet.include.req.uri";
+         String attrVal = (String) portletReq.getAttribute(name);
+         String currVal =  request.getRequestURI();
+         CompareUtils.stringsEqual(attrVal, currVal, tr14);
+      } catch(Exception e) {tr14.appendTcDetail(e.toString());}
       tr14.writeTo(writer);
 
       /* TestCase: SPEC2_19_IncludeServletRender_attributes2                  */
@@ -241,7 +250,12 @@ public class DispatcherTests_SPEC2_19_IncludeServletRender_servlet extends HttpS
       /* value from HTTPServletRequest.getContestPath for the first servlet   */
       /* in the include chain"                                                */
       TestResult tr15 = tcd.getTestResultFailed(SPEC2_19_INCLUDESERVLETRENDER_ATTRIBUTES2);
-      /* TODO: implement test */
+      try {
+         String name = "javax.servlet.include.context_path";
+         String attrVal = (String) portletReq.getAttribute(name);
+         String currVal =  request.getContextPath();
+         CompareUtils.stringsEqual(attrVal, currVal, tr15);
+      } catch(Exception e) {tr15.appendTcDetail(e.toString());}
       tr15.writeTo(writer);
 
       /* TestCase: SPEC2_19_IncludeServletRender_attributes3                  */
@@ -251,7 +265,12 @@ public class DispatcherTests_SPEC2_19_IncludeServletRender_servlet extends HttpS
       /* value from HTTPServletRequest.getServletPath for the first servlet   */
       /* in the include chain"                                                */
       TestResult tr16 = tcd.getTestResultFailed(SPEC2_19_INCLUDESERVLETRENDER_ATTRIBUTES3);
-      /* TODO: implement test */
+      try {
+         String name = "javax.servlet.include.servlet_path";
+         String attrVal = (String) portletReq.getAttribute(name);
+         String currVal =  request.getServletPath();
+         CompareUtils.stringsEqual(attrVal, currVal, tr16);
+      } catch(Exception e) {tr16.appendTcDetail(e.toString());}
       tr16.writeTo(writer);
 
       /* TestCase: SPEC2_19_IncludeServletRender_attributes4                  */
@@ -261,7 +280,12 @@ public class DispatcherTests_SPEC2_19_IncludeServletRender_servlet extends HttpS
       /* from HTTPServletRequest.getPathInfo for the first servlet in the     */
       /* include chain"                                                       */
       TestResult tr17 = tcd.getTestResultFailed(SPEC2_19_INCLUDESERVLETRENDER_ATTRIBUTES4);
-      /* TODO: implement test */
+      try {
+         String name = "javax.servlet.include.path_info";
+         String attrVal = (String) portletReq.getAttribute(name);
+         String currVal =  request.getPathInfo();
+         CompareUtils.stringsEqual(attrVal, currVal, tr17);
+      } catch(Exception e) {tr17.appendTcDetail(e.toString());}
       tr17.writeTo(writer);
 
       /* TestCase: SPEC2_19_IncludeServletRender_attributes5                  */
@@ -271,14 +295,23 @@ public class DispatcherTests_SPEC2_19_IncludeServletRender_servlet extends HttpS
       /* value from HTTPServletRequest.getQueryString for the first servlet   */
       /* in the include chain"                                                */
       TestResult tr18 = tcd.getTestResultFailed(SPEC2_19_INCLUDESERVLETRENDER_ATTRIBUTES5);
-      /* TODO: implement test */
+      try {
+         String name = "javax.servlet.include.query_string";
+         String attrVal = (String) portletReq.getAttribute(name);
+         String currVal =  request.getQueryString();
+         CompareUtils.stringsEqual(attrVal, currVal, tr18);
+      } catch(Exception e) {tr18.appendTcDetail(e.toString());}
       tr18.writeTo(writer);
 
       /* TestCase: SPEC2_19_IncludeServletRender_attributes6                  */
       /* Details: "The request attribute javax.portlet.config must be set     */
       /* to the javax.portlet.PortletConfig object"                           */
       TestResult tr19 = tcd.getTestResultFailed(SPEC2_19_INCLUDESERVLETRENDER_ATTRIBUTES6);
-      /* TODO: implement test */
+      try {
+         ClassChecker cc = new ClassChecker(portletConfig.getClass());
+         boolean ok = cc.implementsInterface(PortletConfig.class);
+         tr19.setTcSuccess(ok);
+      } catch(Exception e) {tr19.appendTcDetail(e.toString());}
       tr19.writeTo(writer);
 
       /* TestCase: SPEC2_19_IncludeServletRender_attributes7                  */
@@ -286,7 +319,11 @@ public class DispatcherTests_SPEC2_19_IncludeServletRender_servlet extends HttpS
       /* attribute javax.portlet.request must be set to the                   */
       /* javax.portlet.RenderRequest object"                                  */
       TestResult tr20 = tcd.getTestResultFailed(SPEC2_19_INCLUDESERVLETRENDER_ATTRIBUTES7);
-      /* TODO: implement test */
+      try {
+         ClassChecker cc = new ClassChecker(portletReq.getClass());
+         boolean ok = cc.implementsInterface(RenderRequest.class);
+         tr20.setTcSuccess(ok);
+      } catch(Exception e) {tr20.appendTcDetail(e.toString());}
       tr20.writeTo(writer);
 
       /* TestCase: SPEC2_19_IncludeServletRender_attributes8                  */
@@ -294,7 +331,11 @@ public class DispatcherTests_SPEC2_19_IncludeServletRender_servlet extends HttpS
       /* attribute javax.portlet.response must be set to the                  */
       /* javax.portlet.RenderResponse object"                                 */
       TestResult tr21 = tcd.getTestResultFailed(SPEC2_19_INCLUDESERVLETRENDER_ATTRIBUTES8);
-      /* TODO: implement test */
+      try {
+         ClassChecker cc = new ClassChecker(portletResp.getClass());
+         boolean ok = cc.implementsInterface(RenderResponse.class);
+         tr21.setTcSuccess(ok);
+      } catch(Exception e) {tr21.appendTcDetail(e.toString());}
       tr21.writeTo(writer);
 
 

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/d54190c6/portlet-tck_3.0/V2DispatcherTests/src/main/java/javax/portlet/tck/servlets/DispatcherTests_SPEC2_19_IncludeServletResource_servlet.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2DispatcherTests/src/main/java/javax/portlet/tck/servlets/DispatcherTests_SPEC2_19_IncludeServletResource_servlet.java b/portlet-tck_3.0/V2DispatcherTests/src/main/java/javax/portlet/tck/servlets/DispatcherTests_SPEC2_19_IncludeServletResource_servlet.java
index f795cab..5d4422e 100644
--- a/portlet-tck_3.0/V2DispatcherTests/src/main/java/javax/portlet/tck/servlets/DispatcherTests_SPEC2_19_IncludeServletResource_servlet.java
+++ b/portlet-tck_3.0/V2DispatcherTests/src/main/java/javax/portlet/tck/servlets/DispatcherTests_SPEC2_19_IncludeServletResource_servlet.java
@@ -121,6 +121,7 @@ public class DispatcherTests_SPEC2_19_IncludeServletResource_servlet extends Htt
       /* scoped only for the duration of the include or forward call"         */
       TestResult tr3 = tcd.getTestResultFailed(SPEC2_19_INCLUDESERVLETRESOURCE_DISPATCH4);
       /* TODO: implement test */
+      tr3.appendTcDetail("Not implemented.");
       tr3.writeTo(writer);
 
       /* TestCase: SPEC2_19_IncludeServletResource_invoke1                    */
@@ -150,6 +151,7 @@ public class DispatcherTests_SPEC2_19_IncludeServletResource_servlet extends Htt
       /* lifecyle method initiating the include"                              */
       TestResult tr6 = tcd.getTestResultFailed(SPEC2_19_INCLUDESERVLETRESOURCE_INVOKE3);
       /* TODO: implement test */
+      tr6.appendTcDetail("Not implemented.");
       tr6.writeTo(writer);
 
       /* TestCase: SPEC2_19_IncludeServletResource_invoke4                    */
@@ -205,6 +207,7 @@ public class DispatcherTests_SPEC2_19_IncludeServletResource_servlet extends Htt
       /* same lifecycle method"                                               */
       TestResult tr11 = tcd.getTestResultFailed(SPEC2_19_INCLUDESERVLETRESOURCE_INVOKE8);
       /* TODO: implement test */
+      tr11.appendTcDetail("Not implemented.");
       tr11.writeTo(writer);
 
       /* TestCase: SPEC2_19_IncludeServletResource_invoke9                    */
@@ -224,7 +227,12 @@ public class DispatcherTests_SPEC2_19_IncludeServletResource_servlet extends Htt
       /* value from HTTPServletRequest.getRequestURI for the first servlet    */
       /* in the include chain"                                                */
       TestResult tr13 = tcd.getTestResultFailed(SPEC2_19_INCLUDESERVLETRESOURCE_ATTRIBUTES1);
-      /* TODO: implement test */
+      try {
+         String name = "javax.servlet.include.req.uri";
+         String attrVal = (String) portletReq.getAttribute(name);
+         String currVal =  request.getRequestURI();
+         CompareUtils.stringsEqual(attrVal, currVal, tr13);
+      } catch(Exception e) {tr13.appendTcDetail(e.toString());}
       tr13.writeTo(writer);
 
       /* TestCase: SPEC2_19_IncludeServletResource_attributes2                */
@@ -234,7 +242,12 @@ public class DispatcherTests_SPEC2_19_IncludeServletResource_servlet extends Htt
       /* value from HTTPServletRequest.getContestPath for the first servlet   */
       /* in the include chain"                                                */
       TestResult tr14 = tcd.getTestResultFailed(SPEC2_19_INCLUDESERVLETRESOURCE_ATTRIBUTES2);
-      /* TODO: implement test */
+      try {
+         String name = "javax.servlet.include.context_path";
+         String attrVal = (String) portletReq.getAttribute(name);
+         String currVal =  request.getContextPath();
+         CompareUtils.stringsEqual(attrVal, currVal, tr14);
+      } catch(Exception e) {tr14.appendTcDetail(e.toString());}
       tr14.writeTo(writer);
 
       /* TestCase: SPEC2_19_IncludeServletResource_attributes3                */
@@ -244,7 +257,12 @@ public class DispatcherTests_SPEC2_19_IncludeServletResource_servlet extends Htt
       /* value from HTTPServletRequest.getServletPath for the first servlet   */
       /* in the include chain"                                                */
       TestResult tr15 = tcd.getTestResultFailed(SPEC2_19_INCLUDESERVLETRESOURCE_ATTRIBUTES3);
-      /* TODO: implement test */
+      try {
+         String name = "javax.servlet.include.servlet_path";
+         String attrVal = (String) portletReq.getAttribute(name);
+         String currVal =  request.getServletPath();
+         CompareUtils.stringsEqual(attrVal, currVal, tr15);
+      } catch(Exception e) {tr15.appendTcDetail(e.toString());}
       tr15.writeTo(writer);
 
       /* TestCase: SPEC2_19_IncludeServletResource_attributes4                */
@@ -254,7 +272,12 @@ public class DispatcherTests_SPEC2_19_IncludeServletResource_servlet extends Htt
       /* from HTTPServletRequest.getPathInfo for the first servlet in the     */
       /* include chain"                                                       */
       TestResult tr16 = tcd.getTestResultFailed(SPEC2_19_INCLUDESERVLETRESOURCE_ATTRIBUTES4);
-      /* TODO: implement test */
+      try {
+         String name = "javax.servlet.include.path_info";
+         String attrVal = (String) portletReq.getAttribute(name);
+         String currVal =  request.getPathInfo();
+         CompareUtils.stringsEqual(attrVal, currVal, tr16);
+      } catch(Exception e) {tr16.appendTcDetail(e.toString());}
       tr16.writeTo(writer);
 
       /* TestCase: SPEC2_19_IncludeServletResource_attributes5                */
@@ -264,14 +287,23 @@ public class DispatcherTests_SPEC2_19_IncludeServletResource_servlet extends Htt
       /* value from HTTPServletRequest.getQueryString for the first servlet   */
       /* in the include chain"                                                */
       TestResult tr17 = tcd.getTestResultFailed(SPEC2_19_INCLUDESERVLETRESOURCE_ATTRIBUTES5);
-      /* TODO: implement test */
+      try {
+         String name = "javax.servlet.include.query_string";
+         String attrVal = (String) portletReq.getAttribute(name);
+         String currVal =  request.getQueryString();
+         CompareUtils.stringsEqual(attrVal, currVal, tr17);
+      } catch(Exception e) {tr17.appendTcDetail(e.toString());}
       tr17.writeTo(writer);
 
       /* TestCase: SPEC2_19_IncludeServletResource_attributes6                */
       /* Details: "The request attribute javax.portlet.config must be set     */
       /* to the javax.portlet.PortletConfig object"                           */
       TestResult tr18 = tcd.getTestResultFailed(SPEC2_19_INCLUDESERVLETRESOURCE_ATTRIBUTES6);
-      /* TODO: implement test */
+      try {
+         ClassChecker cc = new ClassChecker(portletConfig.getClass());
+         boolean ok = cc.implementsInterface(PortletConfig.class);
+         tr18.setTcSuccess(ok);
+      } catch(Exception e) {tr18.appendTcDetail(e.toString());}
       tr18.writeTo(writer);
 
       /* TestCase: SPEC2_19_IncludeServletResource_attributes7                */
@@ -279,7 +311,11 @@ public class DispatcherTests_SPEC2_19_IncludeServletResource_servlet extends Htt
       /* attribute javax.portlet.request must be set to the                   */
       /* javax.portlet.ResourceRequest object"                                */
       TestResult tr19 = tcd.getTestResultFailed(SPEC2_19_INCLUDESERVLETRESOURCE_ATTRIBUTES7);
-      /* TODO: implement test */
+      try {
+         ClassChecker cc = new ClassChecker(portletReq.getClass());
+         boolean ok = cc.implementsInterface(ResourceRequest.class);
+         tr19.setTcSuccess(ok);
+      } catch(Exception e) {tr19.appendTcDetail(e.toString());}
       tr19.writeTo(writer);
 
       /* TestCase: SPEC2_19_IncludeServletResource_attributes8                */
@@ -287,7 +323,11 @@ public class DispatcherTests_SPEC2_19_IncludeServletResource_servlet extends Htt
       /* attribute javax.portlet.response must be set to the                  */
       /* javax.portlet.ResourceResponse object"                               */
       TestResult tr20 = tcd.getTestResultFailed(SPEC2_19_INCLUDESERVLETRESOURCE_ATTRIBUTES8);
-      /* TODO: implement test */
+      try {
+         ClassChecker cc = new ClassChecker(portletResp.getClass());
+         boolean ok = cc.implementsInterface(ResourceResponse.class);
+         tr20.setTcSuccess(ok);
+      } catch(Exception e) {tr20.appendTcDetail(e.toString());}
       tr20.writeTo(writer);
 
 


Mime
View raw message