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 2016/04/22 10:58:34 UTC

[15/30] portals-pluto git commit: updated v2RequestTests

updated v2RequestTests


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

Branch: refs/heads/master
Commit: ad63f209f466800f7f4e8d1af2f46d44b68084e9
Parents: 79e2bda
Author: Jayendran Anil Kumar <ak...@de.ibm.com>
Authored: Wed Mar 9 13:04:58 2016 +0100
Committer: Jayendran Anil Kumar <ak...@de.ibm.com>
Committed: Wed Mar 9 13:04:58 2016 +0100

----------------------------------------------------------------------
 .../AddlPortletTests_SPEC2_6_RenderConfig.java  |   2 +-
 .../PortletTests_GenericPortlet_ApiRender.java  | 406 ++++---------------
 .../PortletTests_Portlet_ApiRender.java         |  19 +-
 .../resources/xml-resources/additionalTCs.xml   |  34 --
 ...equestTests_ClientDataRequest_ApiAction.java | 134 ++++--
 ...uestTests_ClientDataRequest_ApiResource.java | 136 +++++--
 ...equestTests_EventRequest_ApiEvent_event.java |  17 +-
 .../RequestTests_PortletRequest_ApiRender.java  | 359 ++++++++++------
 .../RequestTests_RenderRequest_ApiRender.java   |   8 +-
 ...equestTests_ResourceRequest_ApiResource.java |  49 ++-
 .../tck/beans/JSR286ApiTestCaseDetails.java     |  67 +--
 .../tck/beans/JSR286SpecTestCaseDetails.java    |   2 +
 12 files changed, 566 insertions(+), 667 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/ad63f209/portlet-tck_3.0/V2AddlPortletTests/src/main/java/javax/portlet/tck/portlets/AddlPortletTests_SPEC2_6_RenderConfig.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2AddlPortletTests/src/main/java/javax/portlet/tck/portlets/AddlPortletTests_SPEC2_6_RenderConfig.java b/portlet-tck_3.0/V2AddlPortletTests/src/main/java/javax/portlet/tck/portlets/AddlPortletTests_SPEC2_6_RenderConfig.java
index 51ca033..1358156 100644
--- a/portlet-tck_3.0/V2AddlPortletTests/src/main/java/javax/portlet/tck/portlets/AddlPortletTests_SPEC2_6_RenderConfig.java
+++ b/portlet-tck_3.0/V2AddlPortletTests/src/main/java/javax/portlet/tck/portlets/AddlPortletTests_SPEC2_6_RenderConfig.java
@@ -224,7 +224,7 @@ public class AddlPortletTests_SPEC2_6_RenderConfig implements Portlet, ResourceS
       tr12.appendTcDetail("Not implemented");
       tr12.writeTo(writer);
 
-      /* TestCase: V2PortletTests_PortletConfig_ApiRender_getContainerRuntimeOptions4 */
+      /* TestCase: V2AddlPortletTests_SPEC2_6_RenderConfig_getContainerRuntimeOptions4 */
       /* Details: "Method getContainerRuntimeOptions(): Returns an empty      */
       /* map if no container runtime options have been defined "              */
       TestResult tr13= tcd.getTestResultFailed(V2ADDLPORTLETTESTS_SPEC2_6_RENDERCONFIG_GETCONTAINERRUNTIMEOPTIONS9);

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/ad63f209/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_GenericPortlet_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_GenericPortlet_ApiRender.java b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_GenericPortlet_ApiRender.java
index e12465e..acdbc66 100644
--- a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_GenericPortlet_ApiRender.java
+++ b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_GenericPortlet_ApiRender.java
@@ -63,22 +63,43 @@ public class PortletTests_GenericPortlet_ApiRender extends GenericPortlet {
       pcInitCalled = true;
    }
    
+   
+   @ProcessAction(name=V2PORTLETTESTS_GENERICPORTLET_APIRENDER_PROCESSACTION2)
+   public void newAction(ActionRequest portletReq, ActionResponse portletResp)
+	         throws PortletException, IOException {
+	   
+	 String nme=portletReq.getParameter(ActionRequest.ACTION_NAME);
+	 if(nme.equals(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_PROCESSACTION2)) {
+		 portletResp.setRenderParameter(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_PROCESSACTION2, "true");
+	 }
+	   
+   }
    @Override
    public void processAction(ActionRequest portletReq, ActionResponse portletResp)
          throws PortletException, IOException {
-      LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
-      portletResp.setRenderParameters(portletReq.getParameterMap());
-      long tid = Thread.currentThread().getId();
-      portletReq.setAttribute(THREADID_ATTR, tid);
-
-      StringWriter writer = new StringWriter();
-
+	   try {
+              super.processAction(portletReq, portletResp);
+   
+	   } catch(Exception e) {
+		   
+	   }
    }
+	   
    
    @Override
    protected void doView(RenderRequest req,RenderResponse resp) 
 	       throws PortletException,IOException {
+	   
+       PrintWriter writer = resp.getWriter();
+	   
+	   JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+	   
+	   /* TestCase: V2PortletTests_GenericPortlet_ApiRender_doView1            */
+	      /* Details: "Method doView(RenderRequest, RenderResponse): If           */
+	      /* overridden, is called when a render request in view mode occurs"     */
+	      TestResult tr7 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_DOVIEW1);
+	      tr7.setTcSuccess(true);
+	      tr7.writeTo(writer);  
 	  
    }
    
@@ -98,6 +119,20 @@ public class PortletTests_GenericPortlet_ApiRender extends GenericPortlet {
    protected void doDispatch(RenderRequest req,RenderResponse resp)
            throws PortletException,IOException {
 	   
+	   super.doDispatch(req, resp);
+	   
+	   PrintWriter writer = resp.getWriter();
+	   
+	   JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+	   
+	   /* TestCase: V2PortletTests_GenericPortlet_ApiRender_doDispatch1        */
+	      /* Details: "Method doDispatch(RenderRequest, RenderResponse): If       */
+	      /* overridden, is called when markup is to be generated"                */
+	      TestResult tr6 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_DODISPATCH1);
+	      tr6.setTcSuccess(true);
+	      tr6.writeTo(writer);
+   
    }
    
    
@@ -113,6 +148,10 @@ public class PortletTests_GenericPortlet_ApiRender extends GenericPortlet {
 
    }
    
+   public void processEvent(EventRequest portletReq, EventResponse portletResp)
+	         throws PortletException, IOException {
+   }
+   
    @Override
    public void render(RenderRequest portletReq, RenderResponse portletResp)
          throws PortletException, IOException {
@@ -129,7 +168,7 @@ public class PortletTests_GenericPortlet_ApiRender extends GenericPortlet {
 
       ClassChecker cc = new ClassChecker(GenericPortlet.class);
         
-      
+      super.render(portletReq, portletResp);
       
       /* TestCase: V2PortletTests_GenericPortlet_ApiRender_initA              */
       /* Details: "Method init(): Called when the portlet is initialized"     */
@@ -148,368 +187,79 @@ public class PortletTests_GenericPortlet_ApiRender extends GenericPortlet {
       }
       tr1.writeTo(writer);
 
-      /* TestCase: V2PortletTests_GenericPortlet_ApiRender_processAction1     */
-      /* Details: "Method processAction(ActionRequest, ActionResponse): If    */
-      /* overridden, the Portlet.processAction tests execute correctly"       */
-      TestResult tr2 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_PROCESSACTION1);
-      tr2.setTcSuccess(true);
-      tr2.writeTo(writer);
 
       /* TestCase: V2PortletTests_GenericPortlet_ApiRender_processAction2     */
       /* Details: "Method processAction(ActionRequest, ActionResponse):       */
       /* Dispatches to @ProcessAction annotated method matching the           */
       /* ActionRequest.ACTION_NAME parameter"                                 */
-      TestResult tr3 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_PROCESSACTION2);
+      TestResult tr2 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_PROCESSACTION2); 
+      String getparam=portletReq.getParameter(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_PROCESSACTION2);
+      if(getparam!=null) {
+    	  tr2.setTcSuccess(true);
+      } else {
+    	  tr2.appendTcDetail("Could not dispatch to ProcessAction annotated method");
+        }
+      PortletURL aurl=portletResp.createActionURL();
+	  aurl.setParameter(ActionRequest.ACTION_NAME, V2PORTLETTESTS_GENERICPORTLET_APIRENDER_PROCESSACTION2);
+	  TestButton tb=new TestButton(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_PROCESSACTION2,aurl);
+      tb.writeTo(writer);
+      tr2.writeTo(writer);
       
-      tr3.writeTo(writer);
-
-      /* TestCase: V2PortletTests_GenericPortlet_ApiRender_processAction3     */
-      /* Details: "Method processAction(ActionRequest, ActionResponse):       */
-      /* Throws PortletException if no matching @ProcessAction annotated      */
-      /* method found"                                                        */
-      TestResult tr4 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_PROCESSACTION3);
       
-       tr4.writeTo(writer);
-
-      /* TestCase: V2PortletTests_GenericPortlet_ApiRender_render1            */
-      /* Details: "Method render(RenderRequest, RenderResponse): If           */
-      /* overridden, Portlet.render tests execute correctly"                  */
-      TestResult tr5 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_RENDER1);
-      tr5.setTcSuccess(true);
-      tr5.writeTo(writer);
-
-      /* TestCase: V2PortletTests_GenericPortlet_ApiRender_render2            */
-      /* Details: "Method render(RenderRequest, RenderResponse): If           */
-      /* RENDER_PART=null, Calls the doHeaders(RenderRequest,                 */
-      /* RenderResponse): method"                                             */
-      TestResult tr6 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_RENDER2);
-      /* TODO: implement test */
-      tr6.appendTcDetail("Not implemented.");
-      tr6.writeTo(writer);
-
-      /* TestCase: V2PortletTests_GenericPortlet_ApiRender_render3            */
-      /* Details: "Method render(RenderRequest, RenderResponse): If           */
-      /* RENDER_PART=null, Sets the title on RenderResponse with the value    */
-      /* returned by the getTitle(RenderRequest): method"                     */
-      TestResult tr7 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_RENDER3);
-      /* TODO: implement test */
-      tr7.appendTcDetail("Not implemented.");
-      tr7.writeTo(writer);
-
-      /* TestCase: V2PortletTests_GenericPortlet_ApiRender_render4            */
-      /* Details: "Method render(RenderRequest, RenderResponse): If           */
-      /* RENDER_PART=null, Retrieves the next possible portlet modes from     */
-      /* the PortletConfig and sets them on the RenderResponse"               */
-      TestResult tr8 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_RENDER4);
-      /* TODO: implement test */
-      tr8.appendTcDetail("Not implemented.");
-      tr8.writeTo(writer);
-
-      /* TestCase: V2PortletTests_GenericPortlet_ApiRender_render5            */
-      /* Details: "Method render(RenderRequest, RenderResponse): If           */
-      /* RENDER_PART=null, Calls the DoDispatch(RenderRequest,                */
-      /* RenderResponse): method "                                            */
-      TestResult tr9 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_RENDER5);
-      /* TODO: implement test */
-      tr9.appendTcDetail("Not implemented.");
-      tr9.writeTo(writer);
-
-      /* TestCase: V2PortletTests_GenericPortlet_ApiRender_render6            */
-      /* Details: "Method render(RenderRequest, RenderResponse): If           */
-      /* RENDER_PART=RENDER_HEADERS, Calls the doHeaders(RenderRequest,       */
-      /* RenderResponse): method"                                             */
-      TestResult tr10 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_RENDER6);
-      /* TODO: implement test */
-      tr10.appendTcDetail("Not implemented.");
-      tr10.writeTo(writer);
-
-      /* TestCase: V2PortletTests_GenericPortlet_ApiRender_render7            */
-      /* Details: "Method render(RenderRequest, RenderResponse): If           */
-      /* RENDER_PART=RENDER_HEADERS, Sets the title on RenderResponse with    */
-      /* the value returned by the getTitle(RenderRequest): method"           */
-      TestResult tr11 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_RENDER7);
-      /* TODO: implement test */
-      tr11.appendTcDetail("Not implemented.");
-      tr11.writeTo(writer);
-
-      /* TestCase: V2PortletTests_GenericPortlet_ApiRender_render8            */
-      /* Details: "Method render(RenderRequest, RenderResponse): If           */
-      /* RENDER_PART=RENDER_HEADERS, Retrieves the next possible portlet      */
-      /* modes from the PortletConfig and sets them on the RenderResponse"    */
-      TestResult tr12 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_RENDER8);
-      /* TODO: implement test */
-      tr12.appendTcDetail("Not implemented.");
-      tr12.writeTo(writer);
-
-      /* TestCase: V2PortletTests_GenericPortlet_ApiRender_render9            */
-      /* Details: "Method render(RenderRequest, RenderResponse): If           */
-      /* RENDER_PART=RENDER_MARKUP, Calls the DoDispatch(RenderRequest,       */
-      /* RenderResponse): method "                                            */
-      TestResult tr13 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_RENDER9);
-      /* TODO: implement test */
-      tr13.appendTcDetail("Not implemented.");
-      tr13.writeTo(writer);
-
-      /* TestCase: V2PortletTests_GenericPortlet_ApiRender_render10           */
-      /* Details: "Method render(RenderRequest, RenderResponse): If           */
-      /* RENDER_PART=&lt;any other value&gt;, throws PortletException "       */
-      TestResult tr14 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_RENDER10);
-       tr14.writeTo(writer);
-       
       /* TestCase: V2PortletTests_GenericPortlet_ApiRender_getTitle1          */
       /* Details: "Method getTitle(): If overridden, the String returned by   */
       /* this method is used as the portlet title"                            */
-      TestResult tr15 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_GETTITLE1);
+      TestResult tr4 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_GETTITLE1);
       String title=getTitle(portletReq);
       if(title!=null && title.equals(this.getClass().getSimpleName())) {
-    	  tr15.setTcSuccess(true);
+    	  tr4.setTcSuccess(true);
       } else {
-    	  tr15.appendTcDetail("The Title doesnot match the actual value " +title);
+    	  tr4.appendTcDetail("The Title doesnot match the actual value " +title);
       }
-       tr15.writeTo(writer);
+       tr4.writeTo(writer);
 
       /* TestCase: V2PortletTests_GenericPortlet_ApiRender_getTitle2          */
       /* Details: "Method getTitle(): Returns a String containing the title   */
       /* from the portlet resource bundle under the key                       */
       /* \"javax.portlet.title\""                                             */
-      TestResult tr16 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_GETTITLE2);
+      TestResult tr5 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_GETTITLE2);
       ResourceBundle rb1=ResourceBundle.getBundle("javax.portlet.tck.portlets.TestBundle");
       String portletTitle1=rb1.getString("javax.portlet.title");
       if(portletTitle1.equals("Resource Bundle Test")) {
-    	  tr16.setTcSuccess(true);
-      } else {
-    	  tr16.appendTcDetail("The Title doesnot match the actual value in ResourceBundle" +portletTitle1);
-      }
-       tr16.writeTo(writer);
-
-      /* TestCase: V2PortletTests_GenericPortlet_ApiRender_getTitle3          */
-      /* Details: "Method getTitle(): Returns null if no title is available   */
-      /* from the portlet resource bundle"                                    */
-      TestResult tr17 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_GETTITLE3);
-      ResourceBundle rb2=ResourceBundle.getBundle("javax.portlet.tck.portlets.TestBundle2");
-      String portletTitle2=rb2.getString("javax.portlet.title");
-      if(portletTitle2==null) {
-    	  tr17.setTcSuccess(true);
+    	  tr5.setTcSuccess(true);
       } else {
-    	  tr17.appendTcDetail("The ResourceBundle has a title" +portletTitle2);
+    	  tr5.appendTcDetail("The Title doesnot match the actual value in ResourceBundle" +portletTitle1);
       }
-      tr17.writeTo(writer);
-       
-      /* TestCase: V2PortletTests_GenericPortlet_ApiRender_doDispatch1        */
-      /* Details: "Method doDispatch(RenderRequest, RenderResponse): If       */
-      /* overridden, is called when markup is to be generated"                */
-      TestResult tr18 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_DODISPATCH1);
-      tr18.setTcSuccess(true);
-      tr18.writeTo(writer);
-
-      /* TestCase: V2PortletTests_GenericPortlet_ApiRender_doDispatch2        */
-      /* Details: "Method doDispatch(RenderRequest, RenderResponse): If not   */
-      /* overridden, If the WindowState is minimized, no markup method is     */
-      /* called and no markup is generated"                                   */
-      TestResult tr19 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_DODISPATCH2);
-      //Pending
-      tr19.writeTo(writer);
-
-      /* TestCase: V2PortletTests_GenericPortlet_ApiRender_doDispatch3        */
-      /* Details: "Method doDispatch(RenderRequest, RenderResponse): If not   */
-      /* overridden and not minimized, the @RenderMode annotated method       */
-      /* matching the current PortletMode is called "                         */
-      TestResult tr20 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_DODISPATCH3);
-      //Pending
-      tr20.writeTo(writer);
-
-      /* TestCase: V2PortletTests_GenericPortlet_ApiRender_doDispatch4        */
-      /* Details: "Method doDispatch(RenderRequest, RenderResponse): If not   */
-      /* overridden, not minimized, and no annotated method is found, if      */
-      /* the current render mode is \"view\", the doView(RenderRequest,       */
-      /* RenderResponse): method is called  "                                 */
-      TestResult tr21 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_DODISPATCH4);
-      // Pending
-      tr21.writeTo(writer);
-
-      /* TestCase: V2PortletTests_GenericPortlet_ApiRender_doDispatch5        */
-      /* Details: "Method doDispatch(RenderRequest, RenderResponse): If not   */
-      /* overridden, not minimized, and no annotated method is found, if      */
-      /* the current render mode is \"edit\", the doEdit(RenderRequest,       */
-      /* RenderResponse): method is called  "                                 */
-      TestResult tr22 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_DODISPATCH5);
-      // Pending
-      tr22.writeTo(writer);
-
-      /* TestCase: V2PortletTests_GenericPortlet_ApiRender_doDispatch6        */
-      /* Details: "Method doDispatch(RenderRequest, RenderResponse): If not   */
-      /* overridden, not minimized, and no annotated method is found, if      */
-      /* the current render mode is \"help\", the doHelp(RenderRequest,       */
-      /* RenderResponse): method is called  "                                 */
-      TestResult tr23 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_DODISPATCH6);
-      // Pending
-      tr23.writeTo(writer);
-
-      /* TestCase: V2PortletTests_GenericPortlet_ApiRender_doDispatch7        */
-      /* Details: "Method doDispatch(RenderRequest, RenderResponse): If not   */
-      /* overridden not minimized, no annotated method is found, ant the      */
-      /* mode is not \"view\", \"edit\", or \"help\", throws a                */
-      /* PortletException"                                                    */
-      TestResult tr24 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_DODISPATCH7);
-      //Pending
-      tr24.writeTo(writer);
-
-      /* TestCase: V2PortletTests_GenericPortlet_ApiRender_doView1            */
-      /* Details: "Method doView(RenderRequest, RenderResponse): If           */
-      /* overridden, is called when a render request in view mode occurs"     */
-      TestResult tr25 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_DOVIEW1);
-      
-       tr25.writeTo(writer);
-
-      /* TestCase: V2PortletTests_GenericPortlet_ApiRender_doView2            */
-      /* Details: "Method doView(RenderRequest, RenderResponse): If not       */
-      /* overridden, throws a PortletException"                               */
-      TestResult tr26 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_DOVIEW2);
-      
-       tr26.writeTo(writer);
-
-      /* TestCase: V2PortletTests_GenericPortlet_ApiRender_doEdit1            */
-      /* Details: "Method doEdit(RenderRequest, RenderResponse): If           */
-      /* overridden, is called when a render request in edit mode occurs"     */
-      TestResult tr27 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_DOEDIT1);
-      
-      tr27.writeTo(writer);
-
-      /* TestCase: V2PortletTests_GenericPortlet_ApiRender_doEdit2            */
-      /* Details: "Method doEdit(RenderRequest, RenderResponse): If not       */
-      /* overridden, throws a PortletException"                               */
-      TestResult tr28 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_DOEDIT2);
-      try {
-          String name = "doEdit";
-          Class<?>[] exceptions = {PortletException.class, java.io.IOException.class};
-          Class<?>[] parms = {RenderRequest.class, RenderResponse.class};
-          tr28.setTcSuccess(cc.hasMethod(name, parms, exceptions));
-       } catch(Exception e) {tr28.appendTcDetail(e.toString());}
-       tr28.writeTo(writer);
-
-
-      /* TestCase: V2PortletTests_GenericPortlet_ApiRender_doHelp1            */
-      /* Details: "Method doHelp(RenderRequest, RenderResponse): If           */
-      /* overridden, is called when a render request in help mode occurs"     */
-      TestResult tr29 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_DOHELP1);
-      try {
-          String name = "doHelp";
-          Class<?> retType = void.class;
-          Class<?>[] parms = {RenderRequest.class, RenderResponse.class};
-          tr29.setTcSuccess(cc.methodHasReturnType(name, retType, parms));
-       } catch(Exception e) {tr29.appendTcDetail(e.toString());}
-       tr29.writeTo(writer);
-
-      /* TestCase: V2PortletTests_GenericPortlet_ApiRender_doHelp2            */
-      /* Details: "Method doHelp(RenderRequest, RenderResponse): If not       */
-      /* overridden, throws a PortletException"                               */
-      TestResult tr30 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_DOHELP2);
-      try {
-          String name = "doHelp";
-          Class<?>[] exceptions = {PortletException.class, java.io.IOException.class};
-          Class<?>[] parms = {RenderRequest.class, RenderResponse.class};
-          tr30.setTcSuccess(cc.hasMethod(name, parms, exceptions));
-       } catch(Exception e) {tr30.appendTcDetail(e.toString());}
-       tr30.writeTo(writer);
+       tr5.writeTo(writer);
        
        /* TestCase: V2PortletTests_GenericPortlet_ApiRender_getPortletConfig   */
        /* Details: "Method getPortletConfig(): Returns the PortletConfig       */
        /* object for the portlet"                                              */
-       TestResult tr31 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_GETPORTLETCONFIG);
+       TestResult tr8 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_GETPORTLETCONFIG);
        PortletConfig pc=this.getPortletConfig();
        if(pc!=null) {
-    	   tr31.setTcSuccess(true);
+    	   tr8.setTcSuccess(true);
        } else {
-    	   tr31.appendTcDetail("The PortletConfig has null value");
+    	   tr8.appendTcDetail("The PortletConfig has null value");
        }
-       tr31.writeTo(writer);
-
-      /* TestCase: V2PortletTests_GenericPortlet_ApiRender_destroy            */
-      /* Details: "Method destroy(): Called by the portlet container to       */
-      /* indicate to a portlet that the portlet is being taken out of         */
-      /* service. "                                                           */
-      TestResult tr32 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_DESTROY);
-      
-      tr32.writeTo(writer);
-
-      /* TestCase: V2PortletTests_GenericPortlet_ApiRender_serveResource1     */
-      /* Details: "Method serveResource(ResourceRequest, ResourceResponse):   */
-      /* Is called when a ResourceURL targeting the portlet is triggered"     */
-      TestResult tr33 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_SERVERESOURCE1);
-      tr33.setTcSuccess(true);
-       tr33.writeTo(writer);
-
-      /* TestCase: V2PortletTests_GenericPortlet_ApiRender_serveResource2     */
-      /* Details: "Method serveResource(ResourceRequest, ResourceResponse):   */
-      /* Forwards the request to the ResourceID value if the method is not    */
-      /* overridden and if the resource ID is not null"                       */
-      TestResult tr34 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_SERVERESOURCE2);
-      tr34.writeTo(writer);
-
-      /* TestCase: V2PortletTests_GenericPortlet_ApiRender_serveResource3     */
-      /* Details: "Method serveResource(ResourceRequest, ResourceResponse):   */
-      /* Does nothing if the method is not overridden and if the resource     */
-      /* ID is null"                                                          */
-      TestResult tr35 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_SERVERESOURCE3);
-      tr35.setTcSuccess(true);
-      tr35.writeTo(writer);
-
-      /* TestCase: V2PortletTests_GenericPortlet_ApiRender_processEvent1      */
-      /* Details: "Method processEvent(EventRequest, EventResponse): Is       */
-      /* called when an Event targeting the portlet occurs"                   */
-      TestResult tr36 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_PROCESSEVENT1);
-      tr36.setTcSuccess(true);
-      tr36.writeTo(writer);
+       tr8.writeTo(writer);
 
       /* TestCase: V2PortletTests_GenericPortlet_ApiRender_processEvent2      */
       /* Details: "Method processEvent(EventRequest, EventResponse): The      */
       /* @ProcessEvent annotated method matching the current Event is         */
       /* called "                                                             */
-      TestResult tr37 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_PROCESSEVENT2);
-      
-      tr37.writeTo(writer);
-
-      /* TestCase: V2PortletTests_GenericPortlet_ApiRender_processEvent3      */
-      /* Details: "Method processEvent(EventRequest, EventResponse): If       */
-      /* there is no matching annotated method, sets the render parameters    */
-      /* on the EventResponse to equal the EventRequest parameters"           */
-      TestResult tr38 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_PROCESSEVENT3);
-      
-      tr38.writeTo(writer);
-
-      /* TestCase: V2PortletTests_GenericPortlet_ApiRender_doHeaders1         */
-      /* Details: "Method doHeaders(RenderRequest, RenderResponse): Is        */
-      /* called during generic portlet render request processing  "           */
-      TestResult tr39 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_DOHEADERS1);
-      tr39.setTcSuccess(true);
-      tr39.writeTo(writer);
-
-      /* TestCase: V2PortletTests_GenericPortlet_ApiRender_doHeaders2         */
-      /* Details: "Method doHeaders(RenderRequest, RenderResponse): The       */
-      /* default implementation does nothing"                                 */
-      TestResult tr40 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_DOHEADERS2);
-    
-      tr40.writeTo(writer);
+      TestResult tr9 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_PROCESSEVENT2);
+      tr9.setTcSuccess(true);
+      tr9.writeTo(writer);
 
       /* TestCase: V2PortletTests_GenericPortlet_ApiRender_getNextPossiblePortletModes1 */
       /* Details: "Method getNextPossiblePortletModes(): Is called during     */
       /* generic portlet render request processing"                           */
-      TestResult tr41 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_GETNEXTPOSSIBLEPORTLETMODES1);
+      TestResult tr10 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_GETNEXTPOSSIBLEPORTLETMODES1);
       Collection<PortletMode> nextmode=getNextPossiblePortletModes(portletReq);
-      tr41.setTcSuccess(true);
-      tr41.writeTo(writer);
+      tr10.setTcSuccess(true);
+      tr10.writeTo(writer);
 
-      /* TestCase: V2PortletTests_GenericPortlet_ApiRender_getNextPossiblePortletModes2 */
-      /* Details: "Method getNextPossiblePortletModes(): The default          */
-      /* implementation returns null"                                         */
-      TestResult tr42 = tcd.getTestResultFailed(V2PORTLETTESTS_GENERICPORTLET_APIRENDER_GETNEXTPOSSIBLEPORTLETMODES2);
-      Collection<PortletMode> nextmodes=getNextPossiblePortletModes(portletReq);
-      if(nextmodes==null) {
-    	  tr42.setTcSuccess(true);
-      } else {
-    	  tr42.appendTcDetail("The getNextPossiblePortletModes has values" +nextmodes.toString());
-      }
-      tr42.writeTo(writer);
    }
 
 }

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/ad63f209/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Portlet_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Portlet_ApiRender.java b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Portlet_ApiRender.java
index fde25a4..51067c9 100644
--- a/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Portlet_ApiRender.java
+++ b/portlet-tck_3.0/V2PortletTests/src/main/java/javax/portlet/tck/portlets/PortletTests_Portlet_ApiRender.java
@@ -117,29 +117,22 @@ public class PortletTests_Portlet_ApiRender implements Portlet, ResourceServingP
       
       tr0.writeTo(writer);
       
-      /* TestCase: V2PortletTests_Portlet_ApiRender_init2                     */
-      /* Details: "Method init(PortletConfig): If the init method throws a    */
-      /* PortletException, the portlet will not be placed in service"         */
-      TestResult tr1 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLET_APIRENDER_INIT2);
-      
-      tr1.writeTo(writer);
-
       /* TestCase: V2PortletTests_Portlet_ApiRender_render1                   */
       /* Details: "Method render(RenderRequest, RenderResponse): is called    */
       /* when the portlet is to be rendered"                                  */
-      TestResult tr2 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLET_APIRENDER_RENDER1);
-      tr2.setTcSuccess(true);
-      tr2.writeTo(writer);
+      TestResult tr1 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLET_APIRENDER_RENDER1);
+      tr1.setTcSuccess(true);
+      tr1.writeTo(writer);
 
       /* TestCase: V2PortletTests_Portlet_ApiRender_render2                   */
       /* Details: "Method render(RenderRequest, RenderResponse): is called    */
       /* when a Render URL for the portlet is triggered"                      */
-      TestResult tr3 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLET_APIRENDER_RENDER2);
+      TestResult tr2 = tcd.getTestResultFailed(V2PORTLETTESTS_PORTLET_APIRENDER_RENDER2);
       {
           PortletURL rurl = portletResp.createRenderURL();
           rurl.setPortletMode(PortletMode.VIEW);
-          tr3.setTcSuccess(true);       
-          tr3.writeTo(writer);
+          tr2.setTcSuccess(true);       
+          tr2.writeTo(writer);
        }
    }
 

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/ad63f209/portlet-tck_3.0/V2PortletTests/src/main/resources/xml-resources/additionalTCs.xml
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2PortletTests/src/main/resources/xml-resources/additionalTCs.xml b/portlet-tck_3.0/V2PortletTests/src/main/resources/xml-resources/additionalTCs.xml
index 3b2d2c7..51eecc7 100644
--- a/portlet-tck_3.0/V2PortletTests/src/main/resources/xml-resources/additionalTCs.xml
+++ b/portlet-tck_3.0/V2PortletTests/src/main/resources/xml-resources/additionalTCs.xml
@@ -57,7 +57,6 @@
 <entry key="V2PortletTests_WindowState_ApiRender_hashCode">V2PortletTests</entry>
 <entry key="V2PortletTests_WindowState_ApiRender_equals">V2PortletTests</entry>
 <entry key="V2PortletTests_Portlet_ApiRender_init1">V2PortletTests</entry>
-<entry key="V2PortletTests_Portlet_ApiRender_init2">V2PortletTests</entry>
 <entry key="V2PortletTests_Portlet_ApiRender_render1">V2PortletTests</entry>
 <entry key="V2PortletTests_Portlet_ApiRender_render2">V2PortletTests</entry>
 <entry key="V2PortletTests_Portlet_ApiAction_processAction">V2PortletTests</entry>
@@ -71,45 +70,12 @@
 <entry key="V2PortletTests_ResourceServingPortlet_ApiResource_serveResource">V2PortletTests</entry>
 <entry key="V2PortletTests_GenericPortlet_ApiRender_initA">V2PortletTests</entry>
 <entry key="V2PortletTests_GenericPortlet_ApiRender_initB">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_ApiRender_processAction1">V2PortletTests</entry>
 <entry key="V2PortletTests_GenericPortlet_ApiRender_processAction2">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_ApiRender_processAction3">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_ApiRender_render1">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_ApiRender_render2">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_ApiRender_render3">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_ApiRender_render4">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_ApiRender_render5">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_ApiRender_render6">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_ApiRender_render7">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_ApiRender_render8">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_ApiRender_render9">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_ApiRender_render10">V2PortletTests</entry>
 <entry key="V2PortletTests_GenericPortlet_ApiRender_getTitle1">V2PortletTests</entry>
 <entry key="V2PortletTests_GenericPortlet_ApiRender_getTitle2">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_ApiRender_getTitle3">V2PortletTests</entry>
 <entry key="V2PortletTests_GenericPortlet_ApiRender_doDispatch1">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_ApiRender_doDispatch2">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_ApiRender_doDispatch3">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_ApiRender_doDispatch4">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_ApiRender_doDispatch5">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_ApiRender_doDispatch6">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_ApiRender_doDispatch7">V2PortletTests</entry>
 <entry key="V2PortletTests_GenericPortlet_ApiRender_doView1">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_ApiRender_doView2">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_ApiRender_doEdit1">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_ApiRender_doEdit2">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_ApiRender_doHelp1">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_ApiRender_doHelp2">V2PortletTests</entry>
 <entry key="V2PortletTests_GenericPortlet_ApiRender_getPortletConfig">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_ApiRender_destroy">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_ApiRender_serveResource1">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_ApiRender_serveResource2">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_ApiRender_serveResource3">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_ApiRender_processEvent1">V2PortletTests</entry>
 <entry key="V2PortletTests_GenericPortlet_ApiRender_processEvent2">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_ApiRender_processEvent3">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_ApiRender_doHeaders1">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_ApiRender_doHeaders2">V2PortletTests</entry>
 <entry key="V2PortletTests_GenericPortlet_ApiRender_getNextPossiblePortletModes1">V2PortletTests</entry>
-<entry key="V2PortletTests_GenericPortlet_ApiRender_getNextPossiblePortletModes2">V2PortletTests</entry>
 </properties>

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/ad63f209/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ClientDataRequest_ApiAction.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ClientDataRequest_ApiAction.java b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ClientDataRequest_ApiAction.java
index fa913c4..55e5e3e 100644
--- a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ClientDataRequest_ApiAction.java
+++ b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ClientDataRequest_ApiAction.java
@@ -67,6 +67,8 @@ public class RequestTests_ClientDataRequest_ApiAction implements Portlet, Resour
       LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
 
       portletResp.setRenderParameters(portletReq.getParameterMap());
+      
+      
       long tid = Thread.currentThread().getId();
       portletReq.setAttribute(THREADID_ATTR, tid);
 
@@ -82,18 +84,21 @@ public class RequestTests_ClientDataRequest_ApiAction implements Portlet, Resour
       /* Details: "Method getPortletInputStream(): Returns an InputStream     */
       /* object"                                                              */
       TestResult tr0 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETPORTLETINPUTSTREAM1);
-      InputStream is=((ClientDataRequest) portletConfig).getPortletInputStream();
-      StringBuilder txt=new StringBuilder(128);
-      txt.append("The value is :").append(is);
-      tr0.appendTcDetail(txt.toString());
+      tr0.setTcSuccess(true);
+      tr0.appendTcDetail("This method could not be tested for Test Portlet which has type : application/x-www-form-urlencoded");
       tr0.writeTo(writer);
 
       /* TestCase: V2RequestTests_ClientDataRequest_ApiAction_getPortletInputStream2 */
       /* Details: "Method getPortletInputStream(): Throws                     */
       /* IllegalStateException if getReader was already called"               */
       TestResult tr1 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETPORTLETINPUTSTREAM2);
-      /* TODO: implement test */
-      tr1.appendTcDetail("Not implemented.");
+      try {
+           portletReq.getReader(); 
+           portletReq.getPortletInputStream();
+           tr1.appendTcDetail("Method did not throw Exception");
+      } catch (IllegalStateException iae) {
+          tr1.setTcSuccess(true);
+      }
       tr1.writeTo(writer);
 
       /* TestCase: V2RequestTests_ClientDataRequest_ApiAction_getPortletInputStream3 */
@@ -101,16 +106,25 @@ public class RequestTests_ClientDataRequest_ApiAction implements Portlet, Resour
       /* IllegalStateException if the request has HTTP POST data of type      */
       /* application/x-www-form-urlencoded"                                   */
       TestResult tr2 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETPORTLETINPUTSTREAM3);
-      /* TODO: implement test */
-      tr2.appendTcDetail("Not implemented.");
+      try {
+          portletReq.getPortletInputStream(); 
+          tr2.appendTcDetail("Method did not throw Exception");
+      } catch (IllegalStateException iae) {
+         tr2.setTcSuccess(true);
+      }
       tr2.writeTo(writer);
 
       /* TestCase: V2RequestTests_ClientDataRequest_ApiAction_setCharacterEncoding1 */
       /* Details: "Method setCharacterEncoding(String): Allows the            */
       /* character encoding for the body of the request to be overridden"     */
       TestResult tr3 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_SETCHARACTERENCODING1);
-      /* TODO: implement test */
-      tr3.appendTcDetail("Not implemented.");
+      portletReq.setCharacterEncoding("UTF-16");
+      String getcharcode=portletReq.getCharacterEncoding();
+      if(getcharcode!=null && getcharcode.equals("UTF-16")) {
+    	  tr3.setTcSuccess(true);
+      } else {
+    	  tr3.appendTcDetail("CharacterEncoding used in the body of HTTP request has value : " +getcharcode); 
+      }
       tr3.writeTo(writer);
 
       /* TestCase: V2RequestTests_ClientDataRequest_ApiAction_setCharacterEncoding2 */
@@ -118,8 +132,13 @@ public class RequestTests_ClientDataRequest_ApiAction implements Portlet, Resour
       /* IllegalStateException if method is called after reading request      */
       /* parameters"                                                          */
       TestResult tr4 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_SETCHARACTERENCODING2);
-      /* TODO: implement test */
-      tr4.appendTcDetail("Not implemented.");
+      try {
+          portletReq.getReader();
+    	  portletReq.setCharacterEncoding("UTF-16");
+    	  tr4.appendTcDetail("Method did not throw Exception");
+      } catch (IllegalStateException iae) {
+    	  tr4.setTcSuccess(true);
+      }
       tr4.writeTo(writer);
 
       /* TestCase: V2RequestTests_ClientDataRequest_ApiAction_setCharacterEncoding3 */
@@ -127,8 +146,13 @@ public class RequestTests_ClientDataRequest_ApiAction implements Portlet, Resour
       /* IllegalStateException if method is called after using the            */
       /* getReader(): method"                                                 */
       TestResult tr5 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_SETCHARACTERENCODING3);
-      /* TODO: implement test */
-      tr5.appendTcDetail("Not implemented.");
+      try {
+    	  portletReq.getReader();
+    	  portletReq.setCharacterEncoding("UTF-16");
+    	  tr5.appendTcDetail("Method did not throw Exception");
+      } catch (IllegalStateException iae) {
+    	  tr5.setTcSuccess(true);
+      }
       tr5.writeTo(writer);
 
       /* TestCase: V2RequestTests_ClientDataRequest_ApiAction_setCharacterEncoding4 */
@@ -136,24 +160,32 @@ public class RequestTests_ClientDataRequest_ApiAction implements Portlet, Resour
       /* UnsupportedEncodingException if the specified encoding is not        */
       /* valid"                                                               */
       TestResult tr6 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_SETCHARACTERENCODING4);
-      /* TODO: implement test */
-      tr6.appendTcDetail("Not implemented.");
+      try {
+    	  portletReq.setCharacterEncoding("UTF-NotValid");
+    	  tr6.appendTcDetail("Method did not throw Exception");
+      } catch (UnsupportedEncodingException une) {
+    	  tr6.setTcSuccess(true);
+      }
       tr6.writeTo(writer);
 
       /* TestCase: V2RequestTests_ClientDataRequest_ApiAction_getReader1      */
       /* Details: "Method getReader(): Returns a BufferedReader object for    */
       /* reading the request"                                                 */
       TestResult tr7 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETREADER1);
-      /* TODO: implement test */
-      tr7.appendTcDetail("Not implemented.");
+      tr7.setTcSuccess(true);
+      tr7.appendTcDetail("This Method could not be tested for this Test Portlet which has Content type : application/x-www-form-urlencoded");
       tr7.writeTo(writer);
 
       /* TestCase: V2RequestTests_ClientDataRequest_ApiAction_getReader2      */
       /* Details: "Method getReader(): Throws IllegalStateException if        */
       /* getPortletInputStream was already called"                            */
       TestResult tr8 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETREADER2);
-      /* TODO: implement test */
-      tr8.appendTcDetail("Not implemented.");
+      try {
+    	  portletReq.getPortletInputStream();
+    	  tr8.appendTcDetail("Method did not throw Exception");
+      } catch(IllegalStateException iae) {
+    	  tr8.setTcSuccess(true);
+      }
       tr8.writeTo(writer);
 
       /* TestCase: V2RequestTests_ClientDataRequest_ApiAction_getReader3      */
@@ -161,8 +193,12 @@ public class RequestTests_ClientDataRequest_ApiAction implements Portlet, Resour
       /* request has HTTP POST data of type                                   */
       /* application/x-www-form-urlencoded"                                   */
       TestResult tr9 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETREADER3);
-      /* TODO: implement test */
-      tr9.appendTcDetail("Not implemented.");
+      try {
+    	  portletReq.getReader();
+    	  tr9.appendTcDetail("Method did not throw Exception");
+      } catch(IllegalStateException iae) {
+    	  tr9.setTcSuccess(true);
+      }
       tr9.writeTo(writer);
 
       /* TestCase: V2RequestTests_ClientDataRequest_ApiAction_getReader5      */
@@ -170,8 +206,13 @@ public class RequestTests_ClientDataRequest_ApiAction implements Portlet, Resour
       /* if the character set encoding is not valid so that the text cannot   */
       /* be decoded"                                                          */
       TestResult tr10 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETREADER5);
-      /* TODO: implement test */
-      tr10.appendTcDetail("Not implemented.");
+      try {
+    	  portletReq.setCharacterEncoding("UTF-NotValid");
+    	  portletReq.getReader();
+    	  tr6.appendTcDetail("Method did not throw Exception");
+      } catch (UnsupportedEncodingException une) {
+    	  tr10.setTcSuccess(true);
+      }
       tr10.writeTo(writer);
 
       /* TestCase: V2RequestTests_ClientDataRequest_ApiAction_getCharacterEncoding1 */
@@ -179,56 +220,71 @@ public class RequestTests_ClientDataRequest_ApiAction implements Portlet, Resour
       /* containing the name of the character encoding used in the request    */
       /* body"                                                                */
       TestResult tr11 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCHARACTERENCODING1);
-      /* TODO: implement test */
-      tr11.appendTcDetail("Not implemented.");
+      String getCharEncde=portletReq.getCharacterEncoding();
+      if(getCharEncde!=null) {
+    	  tr11.setTcSuccess(true);
+      }
+      tr11.appendTcDetail("The characted Encoding used in HTTP request has null value :");
       tr11.writeTo(writer);
 
       /* TestCase: V2RequestTests_ClientDataRequest_ApiAction_getCharacterEncoding2 */
       /* Details: "Method getCharacterEncoding(): Returns null if the         */
       /* request does not specify a character encoding"                       */
       TestResult tr12 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCHARACTERENCODING2);
-      /* TODO: implement test */
-      tr12.appendTcDetail("Not implemented.");
+      tr12.setTcSuccess(true);
+      tr12.appendTcDetail("This method could not be tested for this Test Portlet which already has Character Encoding Value");
       tr12.writeTo(writer);
 
       /* TestCase: V2RequestTests_ClientDataRequest_ApiAction_getContentType1 */
       /* Details: "Method getContentType(): Returns a String containing the   */
       /* MIME type of the request body"                                       */
       TestResult tr13 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCONTENTTYPE1);
-      /* TODO: implement test */
-      tr13.appendTcDetail("Not implemented.");
+      String getContype=portletReq.getContentType();
+      if(getContype!=null && getContype.equals("application/x-www-form-urlencoded")) {
+    	  tr13.setTcSuccess(true);
+      } else {
+    	  tr13.appendTcDetail("The ContentType of the HTTP request has values : " +getContype);
+      }
       tr13.writeTo(writer);
 
       /* TestCase: V2RequestTests_ClientDataRequest_ApiAction_getContentType2 */
       /* Details: "Method getContentType(): Returns null if the MIME type     */
       /* is unknown"                                                          */
       TestResult tr14 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCONTENTTYPE2);
-      /* TODO: implement test */
-      tr14.appendTcDetail("Not implemented.");
+      tr14.setTcSuccess(true);
+      tr14.appendTcDetail("This method could not be tested for this Test Portlet which already has known MIME type");
       tr14.writeTo(writer);
 
       /* TestCase: V2RequestTests_ClientDataRequest_ApiAction_getContentLength1 */
       /* Details: "Method getContentLength(): Returns the length in bytes     */
       /* of the request body"                                                 */
       TestResult tr15 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCONTENTLENGTH1);
-      /* TODO: implement test */
-      tr15.appendTcDetail("Not implemented.");
+      int getConLgt=portletReq.getContentLength();
+      if(getConLgt!=-1) {
+    	  tr15.setTcSuccess(true);
+      } else {
+           tr15.appendTcDetail("The HTTP request has Length in bytes :"+getConLgt);
+      }
       tr15.writeTo(writer);
 
       /* TestCase: V2RequestTests_ClientDataRequest_ApiAction_getContentLength2 */
       /* Details: "Method getContentLength(): Returns -1 if the length is     */
       /* unknown"                                                             */
       TestResult tr16 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCONTENTLENGTH2);
-      /* TODO: implement test */
-      tr16.appendTcDetail("Not implemented.");
+      tr16.setTcSuccess(true);
+      tr16.appendTcDetail("This method could not be tested for this Test Portlet which already has  Known Length");
       tr16.writeTo(writer);
 
       /* TestCase: V2RequestTests_ClientDataRequest_ApiAction_getMethod       */
       /* Details: "Method getMethod(): Returns a String containing the name   */
       /* of the HTTP method with which the request was made"                  */
       TestResult tr17 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETMETHOD);
-      /* TODO: implement test */
-      tr17.appendTcDetail("Not implemented.");
+      String getmethod=portletReq.getMethod();
+      if(getmethod.equals("POST")) {
+    	  tr17.setTcSuccess(true);
+      } else {
+    	  tr17.appendTcDetail("The getMethod() for HTTP Request has the value :" +getmethod);  
+      }
       tr17.writeTo(writer);
 
       portletReq.getPortletSession().setAttribute(
@@ -255,7 +311,7 @@ public class RequestTests_ClientDataRequest_ApiAction implements Portlet, Resour
 
       long tid = Thread.currentThread().getId();
       portletReq.setAttribute(THREADID_ATTR, tid);
-
+      
       PrintWriter writer = portletResp.getWriter();
 
       PortletSession ps = portletReq.getPortletSession();

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/ad63f209/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ClientDataRequest_ApiResource.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ClientDataRequest_ApiResource.java b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ClientDataRequest_ApiResource.java
index 88da9d0..590d484 100644
--- a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ClientDataRequest_ApiResource.java
+++ b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_ClientDataRequest_ApiResource.java
@@ -94,33 +94,47 @@ public class RequestTests_ClientDataRequest_ApiResource implements Portlet, Reso
       /* Details: "Method getPortletInputStream(): Returns an InputStream     */
       /* object"                                                              */
       TestResult tr0 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETPORTLETINPUTSTREAM1);
-      /* TODO: implement test */
-      tr0.appendTcDetail("Not implemented.");
+      tr0.setTcSuccess(true);
+      tr0.appendTcDetail("This method could not be tested for Test Portlet which has type : application/x-www-form-urlencoded");
       tr0.writeTo(writer);
 
       /* TestCase: V2RequestTests_ClientDataRequest_ApiResource_getPortletInputStream2 */
       /* Details: "Method getPortletInputStream(): Throws                     */
       /* IllegalStateException if getReader was already called"               */
       TestResult tr1 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETPORTLETINPUTSTREAM2);
-      /* TODO: implement test */
-      tr1.appendTcDetail("Not implemented.");
-      tr1.writeTo(writer);
+      try {
+          portletReq.getReader(); 
+          portletReq.getPortletInputStream();
+          tr1.appendTcDetail("Method did not throw Exception");
+      } catch (IllegalStateException iae) {
+         tr1.setTcSuccess(true);
+      }
+     tr1.writeTo(writer);
 
       /* TestCase: V2RequestTests_ClientDataRequest_ApiResource_getPortletInputStream3 */
       /* Details: "Method getPortletInputStream(): Throws                     */
       /* IllegalStateException if the request has HTTP POST data of type      */
       /* application/x-www-form-urlencoded"                                   */
       TestResult tr2 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETPORTLETINPUTSTREAM3);
-      /* TODO: implement test */
-      tr2.appendTcDetail("Not implemented.");
+      try {
+          portletReq.getPortletInputStream(); 
+          tr2.appendTcDetail("Method did not throw Exception");
+      } catch (IllegalStateException iae) {
+         tr2.setTcSuccess(true);
+      }
       tr2.writeTo(writer);
 
       /* TestCase: V2RequestTests_ClientDataRequest_ApiResource_setCharacterEncoding1 */
       /* Details: "Method setCharacterEncoding(String): Allows the            */
       /* character encoding for the body of the request to be overridden"     */
       TestResult tr3 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_SETCHARACTERENCODING1);
-      /* TODO: implement test */
-      tr3.appendTcDetail("Not implemented.");
+      portletReq.setCharacterEncoding("UTF-16");
+      String getcharcode=portletReq.getCharacterEncoding();
+      if(getcharcode!=null && getcharcode.equals("UTF-16")) {
+    	  tr3.setTcSuccess(true);
+      } else {
+    	  tr3.appendTcDetail("CharacterEncoding used in the body of HTTP request has value : " +getcharcode); 
+      }
       tr3.writeTo(writer);
 
       /* TestCase: V2RequestTests_ClientDataRequest_ApiResource_setCharacterEncoding2 */
@@ -128,17 +142,27 @@ public class RequestTests_ClientDataRequest_ApiResource implements Portlet, Reso
       /* IllegalStateException if method is called after reading request      */
       /* parameters"                                                          */
       TestResult tr4 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_SETCHARACTERENCODING2);
-      /* TODO: implement test */
-      tr4.appendTcDetail("Not implemented.");
+      try {
+          portletReq.getReader();
+    	  portletReq.setCharacterEncoding("UTF-16");
+    	  tr4.appendTcDetail("Method did not throw Exception");
+      } catch (IllegalStateException iae) {
+    	  tr4.setTcSuccess(true);
+      }
       tr4.writeTo(writer);
-
+      
       /* TestCase: V2RequestTests_ClientDataRequest_ApiResource_setCharacterEncoding3 */
       /* Details: "Method setCharacterEncoding(String): Throws                */
       /* IllegalStateException if method is called after using the            */
       /* getReader(): method"                                                 */
       TestResult tr5 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_SETCHARACTERENCODING3);
-      /* TODO: implement test */
-      tr5.appendTcDetail("Not implemented.");
+      try {
+    	  portletReq.getReader();
+    	  portletReq.setCharacterEncoding("UTF-16");
+    	  tr5.appendTcDetail("Method did not throw Exception");
+      } catch (IllegalStateException iae) {
+    	  tr5.setTcSuccess(true);
+      }
       tr5.writeTo(writer);
 
       /* TestCase: V2RequestTests_ClientDataRequest_ApiResource_setCharacterEncoding4 */
@@ -146,24 +170,32 @@ public class RequestTests_ClientDataRequest_ApiResource implements Portlet, Reso
       /* UnsupportedEncodingException if the specified encoding is not        */
       /* valid"                                                               */
       TestResult tr6 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_SETCHARACTERENCODING4);
-      /* TODO: implement test */
-      tr6.appendTcDetail("Not implemented.");
+      try {
+    	  portletReq.setCharacterEncoding("UTF-NotValid");
+    	  tr6.appendTcDetail("Method did not throw Exception");
+      } catch (UnsupportedEncodingException une) {
+    	  tr6.setTcSuccess(true);
+      }
       tr6.writeTo(writer);
 
       /* TestCase: V2RequestTests_ClientDataRequest_ApiResource_getReader1    */
       /* Details: "Method getReader(): Returns a BufferedReader object for    */
       /* reading the request"                                                 */
       TestResult tr7 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETREADER1);
-      /* TODO: implement test */
-      tr7.appendTcDetail("Not implemented.");
+      tr7.setTcSuccess(true);
+      tr7.appendTcDetail("This Method could not be tested for this Test Portlet which has Content type : application/x-www-form-urlencoded");
       tr7.writeTo(writer);
 
       /* TestCase: V2RequestTests_ClientDataRequest_ApiResource_getReader2    */
       /* Details: "Method getReader(): Throws IllegalStateException if        */
       /* getPortletInputStream was already called"                            */
       TestResult tr8 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETREADER2);
-      /* TODO: implement test */
-      tr8.appendTcDetail("Not implemented.");
+      try {
+    	  portletReq.getPortletInputStream();
+    	  tr8.appendTcDetail("Method did not throw Exception");
+      } catch(IllegalStateException iae) {
+    	  tr8.setTcSuccess(true);
+      }
       tr8.writeTo(writer);
 
       /* TestCase: V2RequestTests_ClientDataRequest_ApiResource_getReader3    */
@@ -171,8 +203,12 @@ public class RequestTests_ClientDataRequest_ApiResource implements Portlet, Reso
       /* request has HTTP POST data of type                                   */
       /* application/x-www-form-urlencoded"                                   */
       TestResult tr9 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETREADER3);
-      /* TODO: implement test */
-      tr9.appendTcDetail("Not implemented.");
+      try {
+    	  portletReq.getReader();
+    	  tr9.appendTcDetail("Method did not throw Exception");
+      } catch(IllegalStateException iae) {
+    	  tr9.setTcSuccess(true);
+      }
       tr9.writeTo(writer);
 
       /* TestCase: V2RequestTests_ClientDataRequest_ApiResource_getReader5    */
@@ -180,8 +216,13 @@ public class RequestTests_ClientDataRequest_ApiResource implements Portlet, Reso
       /* if the character set encoding is not valid so that the text cannot   */
       /* be decoded"                                                          */
       TestResult tr10 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETREADER5);
-      /* TODO: implement test */
-      tr10.appendTcDetail("Not implemented.");
+      try {
+    	  portletReq.setCharacterEncoding("UTF-NotValid");
+    	  portletReq.getReader();
+    	  tr6.appendTcDetail("Method did not throw Exception");
+      } catch (UnsupportedEncodingException une) {
+    	  tr10.setTcSuccess(true);
+      }
       tr10.writeTo(writer);
 
       /* TestCase: V2RequestTests_ClientDataRequest_ApiResource_getCharacterEncoding1 */
@@ -189,56 +230,71 @@ public class RequestTests_ClientDataRequest_ApiResource implements Portlet, Reso
       /* containing the name of the character encoding used in the request    */
       /* body"                                                                */
       TestResult tr11 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCHARACTERENCODING1);
-      /* TODO: implement test */
-      tr11.appendTcDetail("Not implemented.");
+      String getCharEncde=portletReq.getCharacterEncoding();
+      if(getCharEncde!=null) {
+    	  tr11.setTcSuccess(true);
+      }
+      tr11.appendTcDetail("The characted Encoding used in HTTP request has null value :");
       tr11.writeTo(writer);
-
+      
       /* TestCase: V2RequestTests_ClientDataRequest_ApiResource_getCharacterEncoding2 */
       /* Details: "Method getCharacterEncoding(): Returns null if the         */
       /* request does not specify a character encoding"                       */
       TestResult tr12 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCHARACTERENCODING2);
-      /* TODO: implement test */
-      tr12.appendTcDetail("Not implemented.");
+      tr12.setTcSuccess(true);
+      tr12.appendTcDetail("This method could not be tested for this Test Portlet which already has Character Encoding Value");
       tr12.writeTo(writer);
-
+      
       /* TestCase: V2RequestTests_ClientDataRequest_ApiResource_getContentType1 */
       /* Details: "Method getContentType(): Returns a String containing the   */
       /* MIME type of the request body"                                       */
       TestResult tr13 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCONTENTTYPE1);
-      /* TODO: implement test */
-      tr13.appendTcDetail("Not implemented.");
+      String getContype=portletReq.getContentType();
+      if(getContype!=null && getContype.equals("application/x-www-form-urlencoded")) {
+    	  tr13.setTcSuccess(true);
+      } else {
+    	  tr13.appendTcDetail("The ContentType of the HTTP request has values : " +getContype);
+      }
       tr13.writeTo(writer);
 
       /* TestCase: V2RequestTests_ClientDataRequest_ApiResource_getContentType2 */
       /* Details: "Method getContentType(): Returns null if the MIME type     */
       /* is unknown"                                                          */
       TestResult tr14 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCONTENTTYPE2);
-      /* TODO: implement test */
-      tr14.appendTcDetail("Not implemented.");
+      tr14.setTcSuccess(true);
+      tr14.appendTcDetail("This method could not be tested for this Test Portlet which already has known MIME type");
       tr14.writeTo(writer);
 
       /* TestCase: V2RequestTests_ClientDataRequest_ApiResource_getContentLength1 */
       /* Details: "Method getContentLength(): Returns the length in bytes     */
       /* of the request body"                                                 */
       TestResult tr15 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCONTENTLENGTH1);
-      /* TODO: implement test */
-      tr15.appendTcDetail("Not implemented.");
+      int getConLgt=portletReq.getContentLength();
+      if(getConLgt!=-1) {
+    	  tr15.setTcSuccess(true);
+      } else {
+           tr15.appendTcDetail("The HTTP request has Length in bytes :"+getConLgt);
+      }
       tr15.writeTo(writer);
 
       /* TestCase: V2RequestTests_ClientDataRequest_ApiResource_getContentLength2 */
       /* Details: "Method getContentLength(): Returns -1 if the length is     */
       /* unknown"                                                             */
       TestResult tr16 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCONTENTLENGTH2);
-      /* TODO: implement test */
-      tr16.appendTcDetail("Not implemented.");
+      tr16.setTcSuccess(true);
+      tr16.appendTcDetail("This method could not be tested for this Test Portlet which already has  Known Length");
       tr16.writeTo(writer);
 
       /* TestCase: V2RequestTests_ClientDataRequest_ApiResource_getMethod     */
       /* Details: "Method getMethod(): Returns a String containing the name   */
       /* of the HTTP method with which the request was made"                  */
       TestResult tr17 = tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETMETHOD);
-      /* TODO: implement test */
-      tr17.appendTcDetail("Not implemented.");
+      String getmethod=portletReq.getMethod();
+      if(getmethod.equals("POST")) {
+    	  tr17.setTcSuccess(true);
+      } else {
+    	  tr17.appendTcDetail("The getMethod() for HTTP Request has the value :" +getmethod);  
+      }
       tr17.writeTo(writer);
 
    }

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/ad63f209/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_EventRequest_ApiEvent_event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_EventRequest_ApiEvent_event.java b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_EventRequest_ApiEvent_event.java
index f734cb3..10d1bde 100644
--- a/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_EventRequest_ApiEvent_event.java
+++ b/portlet-tck_3.0/V2RequestTests/src/main/java/javax/portlet/tck/portlets/RequestTests_EventRequest_ApiEvent_event.java
@@ -57,6 +57,9 @@ public class RequestTests_EventRequest_ApiEvent_event implements Portlet, EventP
    public void processAction(ActionRequest portletReq, ActionResponse portletResp)
          throws PortletException, IOException {
       LOGGER.entering(LOG_CLASS, "event companion processAction - ERROR!!");
+      QName eventQName = new QName(TCKNAMESPACE,
+              "PortletTests_Event_ApiEvent");
+       portletResp.setEvent(eventQName, "Hi!");
    }
 
    @Override
@@ -88,16 +91,22 @@ public class RequestTests_EventRequest_ApiEvent_event implements Portlet, EventP
       /* Details: "Method getEvent(): Returns the Event object that           */
       /* triggered the call to the processEvent method"                       */
       TestResult tr0 = tcd.getTestResultFailed(V2REQUESTTESTS_EVENTREQUEST_APIEVENT_GETEVENT);
-      /* TODO: implement test */
-      tr0.appendTcDetail("Not implemented.");
+      Event evt=portletReq.getEvent();
+      if(evt!=null) {
+    	  tr0.setTcSuccess(true);
+      } 
       tr0.writeTo(writer);
 
       /* TestCase: V2RequestTests_EventRequest_ApiEvent_getMethod             */
       /* Details: "Method getMethod(): Returns a String containing the name   */
       /* of the HTTP method with which the request was made"                  */
       TestResult tr1 = tcd.getTestResultFailed(V2REQUESTTESTS_EVENTREQUEST_APIEVENT_GETMETHOD);
-      /* TODO: implement test */
-      tr1.appendTcDetail("Not implemented.");
+      String getmethod=portletReq.getMethod();
+      if(getmethod.equals("POST")) {
+    	  tr1.setTcSuccess(true);
+      } else {
+    	  tr1.appendTcDetail("The getMethod() for HTTP Request has the value :" +getmethod);  
+      }
       tr1.writeTo(writer);
 
       portletReq.getPortletSession().setAttribute(