portals-pluto-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From msnickl...@apache.org
Subject [35/36] portals-pluto git commit: Cleaned up V2ResponseTests from extraneous logging and imports. Also, replaced TestButton, TestSetupLink, TestSetup strings with Constants from tck beans.
Date Tue, 28 Jun 2016 15:31:39 GMT
Cleaned up V2ResponseTests from extraneous logging and imports. Also, replaced TestButton, TestSetupLink, TestSetup strings with Constants from tck beans.


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

Branch: refs/heads/master
Commit: 353464235d90ee5345cd5e3abd39b2311087937a
Parents: c29a0ea
Author: ahmed <mahmedk91@gmail.com>
Authored: Tue Jun 28 13:24:10 2016 +0200
Committer: ahmed <mahmedk91@gmail.com>
Committed: Tue Jun 28 13:24:10 2016 +0200

----------------------------------------------------------------------
 .../ResponseTests_ActionResponse_ApiAction.java |   56 +-
 .../ResponseTests_EventResponse_ApiEvent.java   |  103 +-
 ...ponseTests_EventResponse_ApiEvent_event.java |  128 +-
 .../ResponseTests_MimeResponse_ApiRender.java   |  547 ++---
 .../ResponseTests_MimeResponse_ApiResource.java |   81 +-
 ...ResponseTests_PortletResponse_ApiAction.java |  579 +++---
 .../ResponseTests_PortletResponse_ApiEvent.java |  258 +--
 ...nseTests_PortletResponse_ApiEvent_event.java |  395 ++--
 ...ResponseTests_PortletResponse_ApiRender.java |  395 ++--
 ...sponseTests_PortletResponse_ApiResource.java |  418 ++--
 .../ResponseTests_RenderResponse_ApiRender.java |  125 +-
 ...ponseTests_ResourceResponse_ApiResource.java |  202 +-
 ...ponseTests_StateAwareResponse_ApiAction.java | 1924 +++++++++++-------
 ...sponseTests_StateAwareResponse_ApiEvent.java |  203 +-
 ...Tests_StateAwareResponse_ApiEvent_event.java | 1190 ++++++-----
 15 files changed, 3854 insertions(+), 2750 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/35346423/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_ActionResponse_ApiAction.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_ActionResponse_ApiAction.java b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_ActionResponse_ApiAction.java
index 2711142..d88f93a 100644
--- a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_ActionResponse_ApiAction.java
+++ b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_ActionResponse_ApiAction.java
@@ -43,7 +43,6 @@ import static javax.portlet.tck.constants.Constants.THREADID_ATTR;
 import java.io.IOException;
 import java.io.PrintWriter;
 import java.io.StringWriter;
-import java.util.logging.Logger;
 
 import javax.portlet.ActionRequest;
 import javax.portlet.ActionResponse;
@@ -55,9 +54,6 @@ import javax.portlet.PortletSession;
 import javax.portlet.PortletURL;
 import javax.portlet.RenderRequest;
 import javax.portlet.RenderResponse;
-import javax.portlet.ResourceRequest;
-import javax.portlet.ResourceResponse;
-import javax.portlet.ResourceServingPortlet;
 import javax.portlet.WindowState;
 import javax.portlet.tck.beans.ClassChecker;
 import javax.portlet.tck.beans.JSR286ApiTestCaseDetails;
@@ -76,10 +72,7 @@ import javax.portlet.tck.constants.Constants;
  * portlet ResponseTests_ActionResponse_ApiAction_event
  *
  */
-public class ResponseTests_ActionResponse_ApiAction implements Portlet, ResourceServingPortlet {
-   private static final String LOG_CLASS = 
-         ResponseTests_ActionResponse_ApiAction.class.getName();
-   private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
+public class ResponseTests_ActionResponse_ApiAction implements Portlet {
    
    @SuppressWarnings("unused")
    private PortletConfig portletConfig = null;
@@ -335,17 +328,6 @@ public class ResponseTests_ActionResponse_ApiAction implements Portlet, Resource
    }
 
    @Override
-   public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
-         throws PortletException, IOException {
-
-      long tid = Thread.currentThread().getId();
-      portletReq.setAttribute(THREADID_ATTR, tid);
-
-      
-
-   }
-
-   @Override
    public void render(RenderRequest portletReq, RenderResponse portletResp)
          throws PortletException, IOException {
 
@@ -367,7 +349,7 @@ public class ResponseTests_ActionResponse_ApiAction implements Portlet, Resource
       {
          PortletURL aurl = portletResp.createActionURL();
          aurl.setParameters(portletReq.getPrivateParameterMap());
-         TestButton tb = new TestButton("V2ResponseTests_ActionResponse_ApiAction_sendRedirectA1", aurl);
+         TestButton tb = new TestButton(V2RESPONSETESTS_ACTIONRESPONSE_APIACTION_SENDREDIRECTA1, aurl);
          tb.writeTo(writer);
       }
 
@@ -377,7 +359,7 @@ public class ResponseTests_ActionResponse_ApiAction implements Portlet, Resource
       {
          PortletURL aurl = portletResp.createActionURL();
          aurl.setParameters(portletReq.getPrivateParameterMap());
-         TestButton tb = new TestButton("V2ResponseTests_ActionResponse_ApiAction_sendRedirectA2", aurl);
+         TestButton tb = new TestButton(V2RESPONSETESTS_ACTIONRESPONSE_APIACTION_SENDREDIRECTA2, aurl);
          tb.writeTo(writer);
       }
 
@@ -388,7 +370,7 @@ public class ResponseTests_ActionResponse_ApiAction implements Portlet, Resource
       {
          PortletURL aurl = portletResp.createActionURL();
          aurl.setParameters(portletReq.getPrivateParameterMap());
-         TestButton tb = new TestButton("V2ResponseTests_ActionResponse_ApiAction_sendRedirectA3", aurl);
+         TestButton tb = new TestButton(V2RESPONSETESTS_ACTIONRESPONSE_APIACTION_SENDREDIRECTA3, aurl);
          tb.writeTo(writer);
       }
 
@@ -399,7 +381,7 @@ public class ResponseTests_ActionResponse_ApiAction implements Portlet, Resource
       {
          PortletURL aurl = portletResp.createActionURL();
          aurl.setParameters(portletReq.getPrivateParameterMap());
-         TestButton tb = new TestButton("V2ResponseTests_ActionResponse_ApiAction_sendRedirectA4", aurl);
+         TestButton tb = new TestButton(V2RESPONSETESTS_ACTIONRESPONSE_APIACTION_SENDREDIRECTA4, aurl);
          tb.writeTo(writer);
       }
 
@@ -410,7 +392,7 @@ public class ResponseTests_ActionResponse_ApiAction implements Portlet, Resource
       {
          PortletURL aurl = portletResp.createActionURL();
          aurl.setParameters(portletReq.getPrivateParameterMap());
-         TestButton tb = new TestButton("V2ResponseTests_ActionResponse_ApiAction_sendRedirectA5", aurl);
+         TestButton tb = new TestButton(V2RESPONSETESTS_ACTIONRESPONSE_APIACTION_SENDREDIRECTA5, aurl);
          tb.writeTo(writer);
       }
 
@@ -421,7 +403,7 @@ public class ResponseTests_ActionResponse_ApiAction implements Portlet, Resource
       {
          PortletURL aurl = portletResp.createActionURL();
          aurl.setParameters(portletReq.getPrivateParameterMap());
-         TestButton tb = new TestButton("V2ResponseTests_ActionResponse_ApiAction_sendRedirectA6", aurl);
+         TestButton tb = new TestButton(V2RESPONSETESTS_ACTIONRESPONSE_APIACTION_SENDREDIRECTA6, aurl);
          tb.writeTo(writer);
       }
 
@@ -432,7 +414,7 @@ public class ResponseTests_ActionResponse_ApiAction implements Portlet, Resource
       {
          PortletURL aurl = portletResp.createActionURL();
          aurl.setParameters(portletReq.getPrivateParameterMap());
-         TestButton tb = new TestButton("V2ResponseTests_ActionResponse_ApiAction_sendRedirectA7", aurl);
+         TestButton tb = new TestButton(V2RESPONSETESTS_ACTIONRESPONSE_APIACTION_SENDREDIRECTA7, aurl);
          tb.writeTo(writer);
       }
 
@@ -442,7 +424,7 @@ public class ResponseTests_ActionResponse_ApiAction implements Portlet, Resource
       {
          PortletURL aurl = portletResp.createActionURL();
          aurl.setParameters(portletReq.getPrivateParameterMap());
-         TestButton tb = new TestButton("V2ResponseTests_ActionResponse_ApiAction_sendRedirectB1", aurl);
+         TestButton tb = new TestButton(V2RESPONSETESTS_ACTIONRESPONSE_APIACTION_SENDREDIRECTB1, aurl);
          tb.writeTo(writer);
       }
 
@@ -452,7 +434,7 @@ public class ResponseTests_ActionResponse_ApiAction implements Portlet, Resource
       {
          PortletURL aurl = portletResp.createActionURL();
          aurl.setParameters(portletReq.getPrivateParameterMap());
-         TestButton tb = new TestButton("V2ResponseTests_ActionResponse_ApiAction_sendRedirectB2", aurl);
+         TestButton tb = new TestButton(V2RESPONSETESTS_ACTIONRESPONSE_APIACTION_SENDREDIRECTB2, aurl);
          tb.writeTo(writer);
       }
 
@@ -462,7 +444,7 @@ public class ResponseTests_ActionResponse_ApiAction implements Portlet, Resource
       {
          PortletURL aurl = portletResp.createActionURL();
          aurl.setParameters(portletReq.getPrivateParameterMap());
-         TestButton tb = new TestButton("V2ResponseTests_ActionResponse_ApiAction_sendRedirectB3", aurl);
+         TestButton tb = new TestButton(V2RESPONSETESTS_ACTIONRESPONSE_APIACTION_SENDREDIRECTB3, aurl);
          tb.writeTo(writer);
       }
 
@@ -472,7 +454,7 @@ public class ResponseTests_ActionResponse_ApiAction implements Portlet, Resource
       {
          PortletURL aurl = portletResp.createActionURL();
          aurl.setParameters(portletReq.getPrivateParameterMap());
-         TestButton tb = new TestButton("V2ResponseTests_ActionResponse_ApiAction_sendRedirectB4", aurl);
+         TestButton tb = new TestButton(V2RESPONSETESTS_ACTIONRESPONSE_APIACTION_SENDREDIRECTB4, aurl);
          tb.writeTo(writer);
       }
 
@@ -482,7 +464,7 @@ public class ResponseTests_ActionResponse_ApiAction implements Portlet, Resource
       {
          PortletURL aurl = portletResp.createActionURL();
          aurl.setParameters(portletReq.getPrivateParameterMap());
-         TestButton tb = new TestButton("V2ResponseTests_ActionResponse_ApiAction_sendRedirectB5", aurl);
+         TestButton tb = new TestButton(V2RESPONSETESTS_ACTIONRESPONSE_APIACTION_SENDREDIRECTB5, aurl);
          tb.writeTo(writer);
       }
 
@@ -492,7 +474,7 @@ public class ResponseTests_ActionResponse_ApiAction implements Portlet, Resource
       {
          PortletURL aurl = portletResp.createActionURL();
          aurl.setParameters(portletReq.getPrivateParameterMap());
-         TestButton tb = new TestButton("V2ResponseTests_ActionResponse_ApiAction_sendRedirectB6", aurl);
+         TestButton tb = new TestButton(V2RESPONSETESTS_ACTIONRESPONSE_APIACTION_SENDREDIRECTB6, aurl);
          tb.writeTo(writer);
       }
 
@@ -503,7 +485,7 @@ public class ResponseTests_ActionResponse_ApiAction implements Portlet, Resource
       {
          PortletURL aurl = portletResp.createActionURL();
          aurl.setParameters(portletReq.getPrivateParameterMap());
-         TestButton tb = new TestButton("V2ResponseTests_ActionResponse_ApiAction_sendRedirectB7", aurl);
+         TestButton tb = new TestButton(V2RESPONSETESTS_ACTIONRESPONSE_APIACTION_SENDREDIRECTB7, aurl);
          tb.writeTo(writer);
       }
 
@@ -514,7 +496,7 @@ public class ResponseTests_ActionResponse_ApiAction implements Portlet, Resource
       {
          PortletURL aurl = portletResp.createActionURL();
          aurl.setParameters(portletReq.getPrivateParameterMap());
-         TestButton tb = new TestButton("V2ResponseTests_ActionResponse_ApiAction_sendRedirectB8", aurl);
+         TestButton tb = new TestButton(V2RESPONSETESTS_ACTIONRESPONSE_APIACTION_SENDREDIRECTB8, aurl);
          tb.writeTo(writer);
       }
 
@@ -525,7 +507,7 @@ public class ResponseTests_ActionResponse_ApiAction implements Portlet, Resource
       {
          PortletURL aurl = portletResp.createActionURL();
          aurl.setParameters(portletReq.getPrivateParameterMap());
-         TestButton tb = new TestButton("V2ResponseTests_ActionResponse_ApiAction_sendRedirectB9", aurl);
+         TestButton tb = new TestButton(V2RESPONSETESTS_ACTIONRESPONSE_APIACTION_SENDREDIRECTB9, aurl);
          tb.writeTo(writer);
       }
 
@@ -536,7 +518,7 @@ public class ResponseTests_ActionResponse_ApiAction implements Portlet, Resource
       {
          PortletURL aurl = portletResp.createActionURL();
          aurl.setParameters(portletReq.getPrivateParameterMap());
-         TestButton tb = new TestButton("V2ResponseTests_ActionResponse_ApiAction_sendRedirectB10", aurl);
+         TestButton tb = new TestButton(V2RESPONSETESTS_ACTIONRESPONSE_APIACTION_SENDREDIRECTB10, aurl);
          tb.writeTo(writer);
       }
 
@@ -547,7 +529,7 @@ public class ResponseTests_ActionResponse_ApiAction implements Portlet, Resource
       {
          PortletURL aurl = portletResp.createActionURL();
          aurl.setParameters(portletReq.getPrivateParameterMap());
-         TestButton tb = new TestButton("V2ResponseTests_ActionResponse_ApiAction_sendRedirectB11", aurl);
+         TestButton tb = new TestButton(V2RESPONSETESTS_ACTIONRESPONSE_APIACTION_SENDREDIRECTB11, aurl);
          tb.writeTo(writer);
       }
 

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/35346423/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_EventResponse_ApiEvent.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_EventResponse_ApiEvent.java b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_EventResponse_ApiEvent.java
index 55452e0..411d4d6 100644
--- a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_EventResponse_ApiEvent.java
+++ b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_EventResponse_ApiEvent.java
@@ -18,43 +18,42 @@
 
 package javax.portlet.tck.portlets;
 
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
+import static javax.portlet.tck.constants.Constants.THREADID_ATTR;
+import static javax.portlet.tck.constants.Constants.TCKNAMESPACE;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_EVENTRESPONSE_APIEVENT_SETRENDERPARAMETERS1;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_EVENTRESPONSE_APIEVENT_SETRENDERPARAMETERS2;
+
+import java.io.IOException;
+import java.io.PrintWriter;
+
+import javax.portlet.ActionRequest;
+import javax.portlet.ActionResponse;
+import javax.portlet.Portlet;
+import javax.portlet.PortletConfig;
+import javax.portlet.PortletException;
+import javax.portlet.PortletURL;
+import javax.portlet.RenderRequest;
+import javax.portlet.RenderResponse;
+import javax.portlet.tck.beans.TestButton;
 import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
 
 /**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the 
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ * This portlet implements several test cases for the JSR 362 TCK. The test case
+ * names are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for
+ * execution by the driver.
  *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion 
- * portlet ResponseTests_EventResponse_ApiEvent_event
+ * This is the main portlet for the test cases. If the test cases call for
+ * events, this portlet will initiate the events, but not process them. The
+ * processing is done in the companion portlet
+ * ResponseTests_EventResponse_ApiEvent_event
  *
  */
-public class ResponseTests_EventResponse_ApiEvent implements Portlet, ResourceServingPortlet {
-   private static final String LOG_CLASS = 
-         ResponseTests_EventResponse_ApiEvent.class.getName();
-   private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-   
-   private PortletConfig portletConfig = null;
+public class ResponseTests_EventResponse_ApiEvent implements Portlet {
 
    @Override
    public void init(PortletConfig config) throws PortletException {
-      this.portletConfig = config;
    }
 
    @Override
@@ -62,34 +61,20 @@ public class ResponseTests_EventResponse_ApiEvent implements Portlet, ResourceSe
    }
 
    @Override
-   public void processAction(ActionRequest portletReq, ActionResponse portletResp)
-         throws PortletException, IOException {
+   public void processAction(ActionRequest portletReq,
+         ActionResponse portletResp) throws PortletException, IOException {
 
       portletResp.setRenderParameters(portletReq.getParameterMap());
-      
-      
+
       long tid = Thread.currentThread().getId();
       portletReq.setAttribute(THREADID_ATTR, tid);
 
-      StringWriter writer = new StringWriter();
-
       QName eventQName = new QName(TCKNAMESPACE,
-             "ResponseTests_EventResponse_ApiEvent");
+            "ResponseTests_EventResponse_ApiEvent");
       portletResp.setEvent(eventQName, "Hi!");
    }
 
    @Override
-   public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
-         throws PortletException, IOException {
-
-      long tid = Thread.currentThread().getId();
-      portletReq.setAttribute(THREADID_ATTR, tid);
-
-      PrintWriter writer = portletResp.getWriter();
-
-   }
-
-   @Override
    public void render(RenderRequest portletReq, RenderResponse portletResp)
          throws PortletException, IOException {
 
@@ -98,24 +83,32 @@ public class ResponseTests_EventResponse_ApiEvent implements Portlet, ResourceSe
 
       PrintWriter writer = portletResp.getWriter();
 
-      /* TestCase: V2ResponseTests_EventResponse_ApiEvent_setRenderParameters1 */
-      /* Details: "Method setRenderParameters(EventRequest): Copies all       */
-      /* render parameters set on the EventRequest to the EventResponse"      */
+      /*
+       * TestCase: V2ResponseTests_EventResponse_ApiEvent_setRenderParameters1
+       */
+      /* Details: "Method setRenderParameters(EventRequest): Copies all */
+      /* render parameters set on the EventRequest to the EventResponse" */
       {
          PortletURL aurl = portletResp.createActionURL();
          aurl.setParameters(portletReq.getPrivateParameterMap());
-         TestButton tb = new TestButton("V2ResponseTests_EventResponse_ApiEvent_setRenderParameters1", aurl);
+         TestButton tb = new TestButton(
+               V2RESPONSETESTS_EVENTRESPONSE_APIEVENT_SETRENDERPARAMETERS1,
+               aurl);
          tb.writeTo(writer);
       }
 
-      /* TestCase: V2ResponseTests_EventResponse_ApiEvent_setRenderParameters2 */
-      /* Details: "Method setRenderParameters(EventRequest): Throws           */
-      /* IllegalArgumentException if the input EventRequest parameter is      */
-      /* null"                                                                */
+      /*
+       * TestCase: V2ResponseTests_EventResponse_ApiEvent_setRenderParameters2
+       */
+      /* Details: "Method setRenderParameters(EventRequest): Throws */
+      /* IllegalArgumentException if the input EventRequest parameter is */
+      /* null" */
       {
          PortletURL aurl = portletResp.createActionURL();
          aurl.setParameters(portletReq.getPrivateParameterMap());
-         TestButton tb = new TestButton("V2ResponseTests_EventResponse_ApiEvent_setRenderParameters2", aurl);
+         TestButton tb = new TestButton(
+               V2RESPONSETESTS_EVENTRESPONSE_APIEVENT_SETRENDERPARAMETERS2,
+               aurl);
          tb.writeTo(writer);
       }
 

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/35346423/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_EventResponse_ApiEvent_event.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_EventResponse_ApiEvent_event.java b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_EventResponse_ApiEvent_event.java
index e469660..f6183ad 100644
--- a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_EventResponse_ApiEvent_event.java
+++ b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_EventResponse_ApiEvent_event.java
@@ -18,35 +18,40 @@
 
 package javax.portlet.tck.portlets;
 
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.PortletSession.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_EVENTRESPONSE_APIEVENT_SETRENDERPARAMETERS1;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_EVENTRESPONSE_APIEVENT_SETRENDERPARAMETERS2;
+import static javax.portlet.PortletSession.APPLICATION_SCOPE;
+import static javax.portlet.tck.constants.Constants.RESULT_ATTR_PREFIX;
+import static javax.portlet.tck.constants.Constants.THREADID_ATTR;
+
+import java.io.IOException;
+import java.io.PrintWriter;
+import java.io.StringWriter;
+
+import javax.portlet.ActionRequest;
+import javax.portlet.ActionResponse;
+import javax.portlet.EventPortlet;
+import javax.portlet.EventRequest;
+import javax.portlet.EventResponse;
+import javax.portlet.Portlet;
+import javax.portlet.PortletConfig;
+import javax.portlet.PortletException;
+import javax.portlet.RenderRequest;
+import javax.portlet.RenderResponse;
+import javax.portlet.tck.beans.JSR286ApiTestCaseDetails;
+import javax.portlet.tck.beans.TestResult;
+import javax.portlet.tck.constants.Constants;
 
 /**
- * This is the event processing portlet for the test cases. This portlet processes events, 
- * but does not publish them. Events are published in the main portlet for the test cases. 
+ * This is the event processing portlet for the test cases. This portlet
+ * processes events, but does not publish them. Events are published in the main
+ * portlet for the test cases.
  */
-public class ResponseTests_EventResponse_ApiEvent_event implements Portlet, EventPortlet, ResourceServingPortlet {
-   private static final String LOG_CLASS = 
-         ResponseTests_EventResponse_ApiEvent_event.class.getName();
-   private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-   
-   private PortletConfig portletConfig = null;
+public class ResponseTests_EventResponse_ApiEvent_event
+      implements Portlet, EventPortlet {
 
    @Override
    public void init(PortletConfig config) throws PortletException {
-      this.portletConfig = config;
    }
 
    @Override
@@ -54,22 +59,14 @@ public class ResponseTests_EventResponse_ApiEvent_event implements Portlet, Even
    }
 
    @Override
-   public void processAction(ActionRequest portletReq, ActionResponse portletResp)
-         throws PortletException, IOException {
-   }
-
-   @Override
-   public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
-         throws PortletException, IOException {
+   public void processAction(ActionRequest portletReq,
+         ActionResponse portletResp) throws PortletException, IOException {
    }
 
    @Override
    public void processEvent(EventRequest portletReq, EventResponse portletResp)
          throws PortletException, IOException {
 
-
-      
-
       long tid = Thread.currentThread().getId();
       portletReq.setAttribute(THREADID_ATTR, tid);
 
@@ -79,60 +76,69 @@ public class ResponseTests_EventResponse_ApiEvent_event implements Portlet, Even
 
       // Create result objects for the tests
 
-      ClassChecker cc = new ClassChecker(portletResp.getClass());
-
-      /* TestCase: V2ResponseTests_EventResponse_ApiEvent_setRenderParameters1 */
-      /* Details: "Method setRenderParameters(EventRequest): Copies all       */
-      /* render parameters set on the EventRequest to the EventResponse"      */
-      TestResult tr0 = tcd.getTestResultFailed(V2RESPONSETESTS_EVENTRESPONSE_APIEVENT_SETRENDERPARAMETERS1);
+      /*
+       * TestCase: V2ResponseTests_EventResponse_ApiEvent_setRenderParameters1
+       */
+      /* Details: "Method setRenderParameters(EventRequest): Copies all */
+      /* render parameters set on the EventRequest to the EventResponse" */
+      TestResult tr0 = tcd.getTestResultFailed(
+            V2RESPONSETESTS_EVENTRESPONSE_APIEVENT_SETRENDERPARAMETERS1);
       try {
-          try {
-             portletResp.setRenderParameters(portletReq);
-             tr0.setTcSuccess(true);
-          } catch (IllegalArgumentException iae) {
-             tr0.appendTcDetail(iae.toString());
-          } catch (Exception e) {
-             tr0.appendTcDetail(e.toString());
-          }
-       } catch(Exception e) {tr0.appendTcDetail(e.toString());}
+         try {
+            portletResp.setRenderParameters(portletReq);
+            tr0.setTcSuccess(true);
+         } catch (IllegalArgumentException iae) {
+            tr0.appendTcDetail(iae.toString());
+         } catch (Exception e) {
+            tr0.appendTcDetail(e.toString());
+         }
+      } catch (Exception e) {
+         tr0.appendTcDetail(e.toString());
+      }
       tr0.writeTo(writer);
 
-      /* TestCase: V2ResponseTests_EventResponse_ApiEvent_setRenderParameters2 */
-      /* Details: "Method setRenderParameters(EventRequest): Throws           */
-      /* IllegalArgumentException if the input EventRequest parameter is      */
-      /* null"                                                                */
-      TestResult tr1 = tcd.getTestResultFailed(V2RESPONSETESTS_EVENTRESPONSE_APIEVENT_SETRENDERPARAMETERS2);
+      /*
+       * TestCase: V2ResponseTests_EventResponse_ApiEvent_setRenderParameters2
+       */
+      /* Details: "Method setRenderParameters(EventRequest): Throws */
+      /* IllegalArgumentException if the input EventRequest parameter is */
+      /* null" */
+      TestResult tr1 = tcd.getTestResultFailed(
+            V2RESPONSETESTS_EVENTRESPONSE_APIEVENT_SETRENDERPARAMETERS2);
       try {
          try {
-            portletResp.setRenderParameters((EventRequest)null);
+            portletResp.setRenderParameters((EventRequest) null);
             tr1.appendTcDetail("Method did not throw an exception.");
          } catch (IllegalArgumentException iae) {
             tr1.setTcSuccess(true);
          } catch (Exception e) {
             tr1.appendTcDetail(e.toString());
          }
-      } catch(Exception e) {tr1.appendTcDetail(e.toString());}
+      } catch (Exception e) {
+         tr1.appendTcDetail(e.toString());
+      }
       tr1.writeTo(writer);
 
       portletReq.getPortletSession().setAttribute(
-                   Constants.RESULT_ATTR_PREFIX + "ResponseTests_EventResponse_ApiEvent",
-                   writer.toString(), APPLICATION_SCOPE);
+            Constants.RESULT_ATTR_PREFIX
+                  + "ResponseTests_EventResponse_ApiEvent",
+            writer.toString(), APPLICATION_SCOPE);
 
    }
 
    @Override
    public void render(RenderRequest portletReq, RenderResponse portletResp)
          throws PortletException, IOException {
-      
 
       portletResp.setContentType("text/html");
       PrintWriter writer = portletResp.getWriter();
       writer.write("<h3>Event Companion Portlet </h3>\n");
       writer.write("<p>ResponseTests_EventResponse_ApiEvent_event</p>\n");
 
-      String msg = (String) portletReq.getPortletSession()
-            .getAttribute(RESULT_ATTR_PREFIX + "ResponseTests_EventResponse_ApiEvent", APPLICATION_SCOPE);
-      msg = (msg==null) ? "Not ready. click test case link." : msg;
+      String msg = (String) portletReq.getPortletSession().getAttribute(
+            RESULT_ATTR_PREFIX + "ResponseTests_EventResponse_ApiEvent",
+            APPLICATION_SCOPE);
+      msg = (msg == null) ? "Not ready. click test case link." : msg;
       writer.write("<p>" + msg + "</p>\n");
 
    }

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/35346423/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_MimeResponse_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_MimeResponse_ApiRender.java b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_MimeResponse_ApiRender.java
index 4222e40..721b700 100644
--- a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_MimeResponse_ApiRender.java
+++ b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_MimeResponse_ApiRender.java
@@ -18,43 +18,74 @@
 
 package javax.portlet.tck.portlets;
 
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRENDER_FIELDEXPIRATION_CACHE;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRENDER_FIELDCACHE_SCOPE;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRENDER_FIELDPUBLIC_SCOPE;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRENDER_FIELDPRIVATE_SCOPE;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRENDER_FIELDETAG;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRENDER_FIELDUSE_CACHED_CONTENT;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRENDER_FIELDNAMESPACED_RESPONSE;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRENDER_FIELDMARKUP_HEAD_ELEMENT;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRENDER_GETCONTENTTYPE1;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRENDER_GETCONTENTTYPE2;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRENDER_SETCONTENTTYPE1;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRENDER_SETCONTENTTYPE4;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRENDER_GETCHARACTERENCODING;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRENDER_GETWRITER1;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRENDER_GETWRITER2;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRENDER_GETLOCALE;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRENDER_SETBUFFERSIZE1;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRENDER_SETBUFFERSIZE2;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRENDER_GETBUFFERSIZE1;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRENDER_GETBUFFERSIZE2;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRENDER_FLUSHBUFFER1;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRENDER_RESETBUFFER1;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRENDER_RESETBUFFER2;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRENDER_ISCOMMITTED1;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRENDER_ISCOMMITTED2;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRENDER_RESET1;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRENDER_RESET2;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRENDER_GETPORTLETOUTPUTSTREAM1;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRENDER_GETPORTLETOUTPUTSTREAM2;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRENDER_CREATERENDERURL;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRENDER_CREATEACTIONURL;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRENDER_CREATERESOURCEURL;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRENDER_GETCACHECONTROL;
+import static javax.portlet.tck.constants.Constants.THREADID_ATTR;
+
+import java.io.IOException;
+import java.io.PrintWriter;
+import java.util.Locale;
+
+import javax.portlet.ActionRequest;
+import javax.portlet.ActionResponse;
+import javax.portlet.CacheControl;
+import javax.portlet.Portlet;
+import javax.portlet.PortletConfig;
+import javax.portlet.PortletException;
+import javax.portlet.RenderRequest;
+import javax.portlet.RenderResponse;
+import javax.portlet.tck.beans.ClassChecker;
+import javax.portlet.tck.beans.JSR286ApiTestCaseDetails;
+import javax.portlet.tck.beans.TestResult;
 
 /**
- * This portlet implements several test cases for the JSR 362 TCK. The test case names
- * are defined in the /src/main/resources/xml-resources/additionalTCs.xml
- * file. The build process will integrate the test case names defined in the 
- * additionalTCs.xml file into the complete list of test case names for execution by the driver.
+ * This portlet implements several test cases for the JSR 362 TCK. The test case
+ * names are defined in the /src/main/resources/xml-resources/additionalTCs.xml
+ * file. The build process will integrate the test case names defined in the
+ * additionalTCs.xml file into the complete list of test case names for
+ * execution by the driver.
  *
- * This is the main portlet for the test cases. If the test cases call for events, this portlet
- * will initiate the events, but not process them. The processing is done in the companion 
- * portlet ResponseTests_MimeResponse_ApiRender_event
+ * This is the main portlet for the test cases. If the test cases call for
+ * events, this portlet will initiate the events, but not process them. The
+ * processing is done in the companion portlet
+ * ResponseTests_MimeResponse_ApiRender_event
  *
  */
-public class ResponseTests_MimeResponse_ApiRender implements Portlet, ResourceServingPortlet {
-   private static final String LOG_CLASS = 
-         ResponseTests_MimeResponse_ApiRender.class.getName();
-   private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-   
-   private PortletConfig portletConfig = null;
+public class ResponseTests_MimeResponse_ApiRender implements Portlet {
 
    @Override
    public void init(PortletConfig config) throws PortletException {
-      this.portletConfig = config;
    }
 
    @Override
@@ -62,26 +93,13 @@ public class ResponseTests_MimeResponse_ApiRender implements Portlet, ResourceSe
    }
 
    @Override
-   public void processAction(ActionRequest portletReq, ActionResponse portletResp)
-         throws PortletException, IOException {
+   public void processAction(ActionRequest portletReq,
+         ActionResponse portletResp) throws PortletException, IOException {
 
       portletResp.setRenderParameters(portletReq.getParameterMap());
       long tid = Thread.currentThread().getId();
       portletReq.setAttribute(THREADID_ATTR, tid);
 
-      StringWriter writer = new StringWriter();
-
-   }
-
-   @Override
-   public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
-         throws PortletException, IOException {
-
-      long tid = Thread.currentThread().getId();
-      portletReq.setAttribute(THREADID_ATTR, tid);
-
-      PrintWriter writer = portletResp.getWriter();
-
    }
 
    @Override
@@ -99,298 +117,371 @@ public class ResponseTests_MimeResponse_ApiRender implements Portlet, ResourceSe
 
       ClassChecker cc = new ClassChecker(portletResp.getClass());
 
-      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_fieldEXPIRATION_CACHE  */
-      /* Details: "Has String field EXPIRATION_CACHE with value of            */
-      /* \"portlet.expiration-cache\""                                        */
-      TestResult tr0 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_FIELDEXPIRATION_CACHE );
+      /*
+       * TestCase: V2ResponseTests_MimeResponse_ApiRender_fieldEXPIRATION_CACHE
+       */
+      /* Details: "Has String field EXPIRATION_CACHE with value of */
+      /* \"portlet.expiration-cache\"" */
+      TestResult tr0 = tcd.getTestResultFailed(
+            V2RESPONSETESTS_MIMERESPONSE_APIRENDER_FIELDEXPIRATION_CACHE);
       try {
-         tr0.setTcSuccess(cc.hasField("EXPIRATION_CACHE", "portlet.expiration-cache"));
-      } catch(Exception e) {tr0.appendTcDetail(e.toString());}
+         tr0.setTcSuccess(
+               cc.hasField("EXPIRATION_CACHE", "portlet.expiration-cache"));
+      } catch (Exception e) {
+         tr0.appendTcDetail(e.toString());
+      }
       tr0.writeTo(writer);
 
-      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_fieldCACHE_SCOPE    */
-      /* Details: "Has String field CACHE_SCOPE with value of                 */
-      /* \"portlet.cache-scope\""                                             */
-      TestResult tr1 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_FIELDCACHE_SCOPE );
+      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_fieldCACHE_SCOPE */
+      /* Details: "Has String field CACHE_SCOPE with value of */
+      /* \"portlet.cache-scope\"" */
+      TestResult tr1 = tcd.getTestResultFailed(
+            V2RESPONSETESTS_MIMERESPONSE_APIRENDER_FIELDCACHE_SCOPE);
       try {
          tr1.setTcSuccess(cc.hasField("CACHE_SCOPE", "portlet.cache-scope"));
-      } catch(Exception e) {tr1.appendTcDetail(e.toString());}
+      } catch (Exception e) {
+         tr1.appendTcDetail(e.toString());
+      }
       tr1.writeTo(writer);
 
-      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_fieldPUBLIC_SCOPE   */
-      /* Details: "Has String field PUBLIC_SCOPE with value of                */
-      /* \"portlet.public-scope\""                                            */
-      TestResult tr2 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_FIELDPUBLIC_SCOPE );
+      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_fieldPUBLIC_SCOPE */
+      /* Details: "Has String field PUBLIC_SCOPE with value of */
+      /* \"portlet.public-scope\"" */
+      TestResult tr2 = tcd.getTestResultFailed(
+            V2RESPONSETESTS_MIMERESPONSE_APIRENDER_FIELDPUBLIC_SCOPE);
       try {
          tr2.setTcSuccess(cc.hasField("PUBLIC_SCOPE", "portlet.public-scope"));
-      } catch(Exception e) {tr2.appendTcDetail(e.toString());}
+      } catch (Exception e) {
+         tr2.appendTcDetail(e.toString());
+      }
       tr2.writeTo(writer);
 
-      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_fieldPRIVATE_SCOPE  */
-      /* Details: "Has String field PRIVATE_SCOPE with value of               */
-      /* \"portlet.private-scope\""                                           */
-      TestResult tr3 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_FIELDPRIVATE_SCOPE );
+      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_fieldPRIVATE_SCOPE */
+      /* Details: "Has String field PRIVATE_SCOPE with value of */
+      /* \"portlet.private-scope\"" */
+      TestResult tr3 = tcd.getTestResultFailed(
+            V2RESPONSETESTS_MIMERESPONSE_APIRENDER_FIELDPRIVATE_SCOPE);
       try {
-         tr3.setTcSuccess(cc.hasField("PRIVATE_SCOPE", "portlet.private-scope"));
-      } catch(Exception e) {tr3.appendTcDetail(e.toString());}
+         tr3.setTcSuccess(
+               cc.hasField("PRIVATE_SCOPE", "portlet.private-scope"));
+      } catch (Exception e) {
+         tr3.appendTcDetail(e.toString());
+      }
       tr3.writeTo(writer);
 
-      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_fieldETAG           */
-      /* Details: "Has String field ETAG with value of \"portlet.ETag\""      */
-      TestResult tr4 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_FIELDETAG );
+      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_fieldETAG */
+      /* Details: "Has String field ETAG with value of \"portlet.ETag\"" */
+      TestResult tr4 = tcd.getTestResultFailed(
+            V2RESPONSETESTS_MIMERESPONSE_APIRENDER_FIELDETAG);
       try {
          tr4.setTcSuccess(cc.hasField("ETAG", "portlet.ETag"));
-      } catch(Exception e) {tr4.appendTcDetail(e.toString());}
+      } catch (Exception e) {
+         tr4.appendTcDetail(e.toString());
+      }
       tr4.writeTo(writer);
 
-      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_fieldUSE_CACHED_CONTENT  */
-      /* Details: "Has String field USE_CACHED_CONTENT with value of          */
-      /* \"portlet.use-cached-content\""                                      */
-      TestResult tr5 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_FIELDUSE_CACHED_CONTENT );
+      /*
+       * TestCase:
+       * V2ResponseTests_MimeResponse_ApiRender_fieldUSE_CACHED_CONTENT
+       */
+      /* Details: "Has String field USE_CACHED_CONTENT with value of */
+      /* \"portlet.use-cached-content\"" */
+      TestResult tr5 = tcd.getTestResultFailed(
+            V2RESPONSETESTS_MIMERESPONSE_APIRENDER_FIELDUSE_CACHED_CONTENT);
       try {
-         tr5.setTcSuccess(cc.hasField("USE_CACHED_CONTENT", "portlet.use-cached-content"));
-      } catch(Exception e) {tr5.appendTcDetail(e.toString());}
+         tr5.setTcSuccess(
+               cc.hasField("USE_CACHED_CONTENT", "portlet.use-cached-content"));
+      } catch (Exception e) {
+         tr5.appendTcDetail(e.toString());
+      }
       tr5.writeTo(writer);
 
-      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_fieldNAMESPACED_RESPONSE */
-      /* Details: "Has String field NAMESPACED_RESPONSE with value of         */
-      /* \"X-JAVAX-PORTLET-NAMESPACED-RESPONSE\""                             */
-      TestResult tr6 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_FIELDNAMESPACED_RESPONSE);
+      /*
+       * TestCase:
+       * V2ResponseTests_MimeResponse_ApiRender_fieldNAMESPACED_RESPONSE
+       */
+      /* Details: "Has String field NAMESPACED_RESPONSE with value of */
+      /* \"X-JAVAX-PORTLET-NAMESPACED-RESPONSE\"" */
+      TestResult tr6 = tcd.getTestResultFailed(
+            V2RESPONSETESTS_MIMERESPONSE_APIRENDER_FIELDNAMESPACED_RESPONSE);
       try {
-         tr6.setTcSuccess(cc.hasField("NAMESPACED_RESPONSE", "X-JAVAX-PORTLET-NAMESPACED-RESPONSE"));
-      } catch(Exception e) {tr6.appendTcDetail(e.toString());}
+         tr6.setTcSuccess(cc.hasField("NAMESPACED_RESPONSE",
+               "X-JAVAX-PORTLET-NAMESPACED-RESPONSE"));
+      } catch (Exception e) {
+         tr6.appendTcDetail(e.toString());
+      }
       tr6.writeTo(writer);
 
-      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_fieldMARKUP_HEAD_ELEMENT */
-      /* Details: "Has String field MARKUP_HEAD_ELEMENT with value of         */
-      /* \"javax.portlet.markup.head.element\""                               */
-      TestResult tr7 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_FIELDMARKUP_HEAD_ELEMENT);
+      /*
+       * TestCase:
+       * V2ResponseTests_MimeResponse_ApiRender_fieldMARKUP_HEAD_ELEMENT
+       */
+      /* Details: "Has String field MARKUP_HEAD_ELEMENT with value of */
+      /* \"javax.portlet.markup.head.element\"" */
+      TestResult tr7 = tcd.getTestResultFailed(
+            V2RESPONSETESTS_MIMERESPONSE_APIRENDER_FIELDMARKUP_HEAD_ELEMENT);
       try {
-         tr7.setTcSuccess(cc.hasField("MARKUP_HEAD_ELEMENT", "javax.portlet.markup.head.element"));
-      } catch(Exception e) {tr7.appendTcDetail(e.toString());}
+         tr7.setTcSuccess(cc.hasField("MARKUP_HEAD_ELEMENT",
+               "javax.portlet.markup.head.element"));
+      } catch (Exception e) {
+         tr7.appendTcDetail(e.toString());
+      }
       tr7.writeTo(writer);
 
-      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_getContentType1     */
-      /* Details: "Method getContentType(): Returns a String containing the   */
-      /* MIME type that can be used with the response"                        */
-      TestResult tr8 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_GETCONTENTTYPE1);
-      String getType1=portletResp.getContentType();
-      if(getType1!=null) {
-    	  tr8.setTcSuccess(true);
+      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_getContentType1 */
+      /* Details: "Method getContentType(): Returns a String containing the */
+      /* MIME type that can be used with the response" */
+      TestResult tr8 = tcd.getTestResultFailed(
+            V2RESPONSETESTS_MIMERESPONSE_APIRENDER_GETCONTENTTYPE1);
+      String getType1 = portletResp.getContentType();
+      if (getType1 != null) {
+         tr8.setTcSuccess(true);
       }
       tr8.writeTo(writer);
 
-      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_getContentType2     */
-      /* Details: "Method getContentType(): Returns null if no content type   */
-      /* is set"                                                              */
-      TestResult tr9 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_GETCONTENTTYPE2);
+      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_getContentType2 */
+      /* Details: "Method getContentType(): Returns null if no content type */
+      /* is set" */
+      TestResult tr9 = tcd.getTestResultFailed(
+            V2RESPONSETESTS_MIMERESPONSE_APIRENDER_GETCONTENTTYPE2);
       tr9.setTcSuccess(true);
-      tr9.appendTcDetail("This Method could not be tested which already has content type");
+      tr9.appendTcDetail(
+            "This Method could not be tested which already has content type");
       tr9.writeTo(writer);
 
-      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_setContentType1     */
-      /* Details: "Method setContentType(String): Sets the MIME type for      */
-      /* the response"                                                        */
-      TestResult tr10 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_SETCONTENTTYPE1);
+      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_setContentType1 */
+      /* Details: "Method setContentType(String): Sets the MIME type for */
+      /* the response" */
+      TestResult tr10 = tcd.getTestResultFailed(
+            V2RESPONSETESTS_MIMERESPONSE_APIRENDER_SETCONTENTTYPE1);
       try {
-    	  portletResp.setContentType("text/html");
-    	  String type=portletReq.getResponseContentType();
-    	  if(type.equals("text/html")) {
-    		  tr10.setTcSuccess(true);
-    	  }
+         portletResp.setContentType("text/html");
+         String type = portletReq.getResponseContentType();
+         if (type.equals("text/html")) {
+            tr10.setTcSuccess(true);
+         }
       } catch (IllegalArgumentException iae) {
-    	  tr10.appendTcDetail(iae.toString());
+         tr10.appendTcDetail(iae.toString());
       }
       tr10.writeTo(writer);
 
-      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_setContentType4     */
-      /* Details: "Method setContentType(String): Throws                      */
-      /* IllegalArgumentException if the specified MIME type is invalid"      */
-      TestResult tr11 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_SETCONTENTTYPE4);
+      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_setContentType4 */
+      /* Details: "Method setContentType(String): Throws */
+      /* IllegalArgumentException if the specified MIME type is invalid" */
+      TestResult tr11 = tcd.getTestResultFailed(
+            V2RESPONSETESTS_MIMERESPONSE_APIRENDER_SETCONTENTTYPE4);
       try {
-    	  portletResp.setContentType("Invalid");
-    	  tr11.appendTcDetail("Method did not throw Exception");
+         portletResp.setContentType("Invalid");
+         tr11.appendTcDetail("Method did not throw Exception");
       } catch (IllegalArgumentException iae) {
-    	  tr11.setTcSuccess(true);
+         tr11.setTcSuccess(true);
       }
       tr11.writeTo(writer);
 
-      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_getCharacterEncoding */
-      /* Details: "Method getCharacterEncoding(): Returns a String            */
-      /* containing the name of the charset used for the response body"       */
-      TestResult tr12 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_GETCHARACTERENCODING);
-      String getChar=portletResp.getCharacterEncoding();
-      if(getChar!=null) {
-    	  tr12.setTcSuccess(true);
+      /*
+       * TestCase: V2ResponseTests_MimeResponse_ApiRender_getCharacterEncoding
+       */
+      /* Details: "Method getCharacterEncoding(): Returns a String */
+      /* containing the name of the charset used for the response body" */
+      TestResult tr12 = tcd.getTestResultFailed(
+            V2RESPONSETESTS_MIMERESPONSE_APIRENDER_GETCHARACTERENCODING);
+      String getChar = portletResp.getCharacterEncoding();
+      if (getChar != null) {
+         tr12.setTcSuccess(true);
       }
       tr12.writeTo(writer);
 
-      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_getWriter1          */
-      /* Details: "Method getWriter(): Returns a PrintWriter object"          */
-      TestResult tr13 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_GETWRITER1);
+      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_getWriter1 */
+      /* Details: "Method getWriter(): Returns a PrintWriter object" */
+      TestResult tr13 = tcd.getTestResultFailed(
+            V2RESPONSETESTS_MIMERESPONSE_APIRENDER_GETWRITER1);
       try {
-          PrintWriter pw=portletResp.getWriter();
-          if(pw!=null) {
-        	  tr13.setTcSuccess(true);
-          }
-      }catch (IOException ie) {
-    	  tr13.appendTcDetail(ie.toString());
+         PrintWriter pw = portletResp.getWriter();
+         if (pw != null) {
+            tr13.setTcSuccess(true);
+         }
+      } catch (IOException ie) {
+         tr13.appendTcDetail(ie.toString());
       }
       tr13.writeTo(writer);
 
-      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_getWriter2          */
-      /* Details: "Method getWriter(): Throws IllegalStateException if        */
-      /* called after the getPortletOutputStream method has been called"      */
-      TestResult tr14 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_GETWRITER2);
+      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_getWriter2 */
+      /* Details: "Method getWriter(): Throws IllegalStateException if */
+      /* called after the getPortletOutputStream method has been called" */
+      TestResult tr14 = tcd.getTestResultFailed(
+            V2RESPONSETESTS_MIMERESPONSE_APIRENDER_GETWRITER2);
       try {
-          portletResp.getPortletOutputStream();
-    	  PrintWriter pw=portletResp.getWriter();
-          
-      }catch (IllegalStateException ise) {
-    	  tr14.setTcSuccess(true);
+         portletResp.getPortletOutputStream();
+         portletResp.getWriter();
+      } catch (IllegalStateException ise) {
+         tr14.setTcSuccess(true);
       }
       tr14.writeTo(writer);
 
-      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_getLocale           */
-      /* Details: "Method getLocale(): Returns an java.util.Locale            */
-      /* representing the locale assigned to the response"                    */
-      TestResult tr15 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_GETLOCALE);
-      Locale lc=portletResp.getLocale();
-      if(lc!=null) {
-    	  tr15.setTcSuccess(true);
+      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_getLocale */
+      /* Details: "Method getLocale(): Returns an java.util.Locale */
+      /* representing the locale assigned to the response" */
+      TestResult tr15 = tcd.getTestResultFailed(
+            V2RESPONSETESTS_MIMERESPONSE_APIRENDER_GETLOCALE);
+      Locale lc = portletResp.getLocale();
+      if (lc != null) {
+         tr15.setTcSuccess(true);
       }
       tr15.writeTo(writer);
 
-      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_setBufferSize1      */
-      /* Details: "Method setBufferSize(int): Sets the preferred buffer       */
-      /* size for the response body"                                          */
-      TestResult tr16 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_SETBUFFERSIZE1);
+      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_setBufferSize1 */
+      /* Details: "Method setBufferSize(int): Sets the preferred buffer */
+      /* size for the response body" */
+      TestResult tr16 = tcd.getTestResultFailed(
+            V2RESPONSETESTS_MIMERESPONSE_APIRENDER_SETBUFFERSIZE1);
       tr16.setTcSuccess(true);
       tr16.writeTo(writer);
 
-      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_setBufferSize2      */
-      /* Details: "Method setBufferSize(int): Throws IllegalStateException    */
-      /* if called after content has been written"                            */
-      TestResult tr17 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_SETBUFFERSIZE2);
+      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_setBufferSize2 */
+      /* Details: "Method setBufferSize(int): Throws IllegalStateException */
+      /* if called after content has been written" */
+      TestResult tr17 = tcd.getTestResultFailed(
+            V2RESPONSETESTS_MIMERESPONSE_APIRENDER_SETBUFFERSIZE2);
       tr17.setTcSuccess(true);
       tr17.writeTo(writer);
 
-      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_getBufferSize1      */
-      /* Details: "Method getBufferSize(): Returns an int designating the     */
-      /* actual buffer size used for the response"                            */
-      TestResult tr18 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_GETBUFFERSIZE1);
-      int size=portletResp.getBufferSize();
-      if(size!=0) {
-    	  tr18.setTcSuccess(true);
+      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_getBufferSize1 */
+      /* Details: "Method getBufferSize(): Returns an int designating the */
+      /* actual buffer size used for the response" */
+      TestResult tr18 = tcd.getTestResultFailed(
+            V2RESPONSETESTS_MIMERESPONSE_APIRENDER_GETBUFFERSIZE1);
+      int size = portletResp.getBufferSize();
+      if (size != 0) {
+         tr18.setTcSuccess(true);
       }
       tr18.writeTo(writer);
 
-      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_getBufferSize2      */
-      /* Details: "Method getBufferSize(): Returns null if buffering is not   */
-      /* used"                                                                */
-      TestResult tr19 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_GETBUFFERSIZE2);
+      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_getBufferSize2 */
+      /* Details: "Method getBufferSize(): Returns null if buffering is not */
+      /* used" */
+      TestResult tr19 = tcd.getTestResultFailed(
+            V2RESPONSETESTS_MIMERESPONSE_APIRENDER_GETBUFFERSIZE2);
       tr19.setTcSuccess(true);
       tr19.writeTo(writer);
 
-      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_flushBuffer1        */
-      /* Details: "Method flushBuffer(): Returns void and flushes buffer to   */
-      /* OutputStream"                                                        */
-      TestResult tr20 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_FLUSHBUFFER1);
+      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_flushBuffer1 */
+      /* Details: "Method flushBuffer(): Returns void and flushes buffer to */
+      /* OutputStream" */
+      TestResult tr20 = tcd.getTestResultFailed(
+            V2RESPONSETESTS_MIMERESPONSE_APIRENDER_FLUSHBUFFER1);
       tr20.setTcSuccess(true);
       tr20.writeTo(writer);
 
-      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_resetBuffer1        */
-      /* Details: "Method resetBuffer(): Returns void and clears and data     */
-      /* and properties from the buffer"                                      */
-      TestResult tr21 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_RESETBUFFER1);
+      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_resetBuffer1 */
+      /* Details: "Method resetBuffer(): Returns void and clears and data */
+      /* and properties from the buffer" */
+      TestResult tr21 = tcd.getTestResultFailed(
+            V2RESPONSETESTS_MIMERESPONSE_APIRENDER_RESETBUFFER1);
       tr21.setTcSuccess(true);
       tr21.writeTo(writer);
 
-      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_resetBuffer2        */
-      /* Details: "Method resetBuffer(): Throws IllegalStateException if      */
-      /* called after the response has been committed"                        */
-      TestResult tr22 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_RESETBUFFER2);
+      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_resetBuffer2 */
+      /* Details: "Method resetBuffer(): Throws IllegalStateException if */
+      /* called after the response has been committed" */
+      TestResult tr22 = tcd.getTestResultFailed(
+            V2RESPONSETESTS_MIMERESPONSE_APIRENDER_RESETBUFFER2);
       tr22.setTcSuccess(true);
       tr22.writeTo(writer);
 
-      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_isCommitted1        */
-      /* Details: "Method isCommitted(): Returns true if the response has     */
-      /* been committed"                                                      */
-      TestResult tr23 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_ISCOMMITTED1);
+      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_isCommitted1 */
+      /* Details: "Method isCommitted(): Returns true if the response has */
+      /* been committed" */
+      TestResult tr23 = tcd.getTestResultFailed(
+            V2RESPONSETESTS_MIMERESPONSE_APIRENDER_ISCOMMITTED1);
       tr23.setTcSuccess(true);
       tr23.writeTo(writer);
 
-      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_isCommitted2        */
-      /* Details: "Method isCommitted(): Returns false if the response has    */
-      /* not been committed"                                                  */
-      TestResult tr24 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_ISCOMMITTED2);
+      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_isCommitted2 */
+      /* Details: "Method isCommitted(): Returns false if the response has */
+      /* not been committed" */
+      TestResult tr24 = tcd.getTestResultFailed(
+            V2RESPONSETESTS_MIMERESPONSE_APIRENDER_ISCOMMITTED2);
       tr24.setTcSuccess(true);
       tr24.writeTo(writer);
 
-      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_reset1              */
-      /* Details: "Method reset(): Returns void and clears and data and       */
-      /* properties from the buffer"                                          */
-      TestResult tr25 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_RESET1);
+      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_reset1 */
+      /* Details: "Method reset(): Returns void and clears and data and */
+      /* properties from the buffer" */
+      TestResult tr25 = tcd
+            .getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_RESET1);
       tr25.setTcSuccess(true);
       tr25.writeTo(writer);
 
-      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_reset2              */
-      /* Details: "Method reset(): Throws IllegalStateException if called     */
-      /* after the response has been committed"                               */
-      TestResult tr26 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_RESET2);
+      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_reset2 */
+      /* Details: "Method reset(): Throws IllegalStateException if called */
+      /* after the response has been committed" */
+      TestResult tr26 = tcd
+            .getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_RESET2);
       tr26.setTcSuccess(true);
       tr26.writeTo(writer);
 
-      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_getPortletOutputStream1 */
-      /* Details: "Method getPortletOutputStream(): Returns a                 */
-      /* PortletOutputStream object"                                          */
-      TestResult tr27 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_GETPORTLETOUTPUTSTREAM1);
+      /*
+       * TestCase:
+       * V2ResponseTests_MimeResponse_ApiRender_getPortletOutputStream1
+       */
+      /* Details: "Method getPortletOutputStream(): Returns a */
+      /* PortletOutputStream object" */
+      TestResult tr27 = tcd.getTestResultFailed(
+            V2RESPONSETESTS_MIMERESPONSE_APIRENDER_GETPORTLETOUTPUTSTREAM1);
       tr27.setTcSuccess(true);
       tr27.writeTo(writer);
 
-      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_getPortletOutputStream2 */
-      /* Details: "Method getPortletOutputStream(): Throws                    */
-      /* IllegalStateException if called after the getWriter method has       */
-      /* been called"                                                         */
-      TestResult tr28 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_GETPORTLETOUTPUTSTREAM2);
+      /*
+       * TestCase:
+       * V2ResponseTests_MimeResponse_ApiRender_getPortletOutputStream2
+       */
+      /* Details: "Method getPortletOutputStream(): Throws */
+      /* IllegalStateException if called after the getWriter method has */
+      /* been called" */
+      TestResult tr28 = tcd.getTestResultFailed(
+            V2RESPONSETESTS_MIMERESPONSE_APIRENDER_GETPORTLETOUTPUTSTREAM2);
       try {
-    	  portletResp.getWriter();
-    	  portletResp.getPortletOutputStream();
-    	  tr28.appendTcDetail("Method did not throw Exception");
+         portletResp.getWriter();
+         portletResp.getPortletOutputStream();
+         tr28.appendTcDetail("Method did not throw Exception");
       } catch (IllegalStateException ise) {
-    	  tr28.setTcSuccess(true);
+         tr28.setTcSuccess(true);
       }
       tr28.writeTo(writer);
 
-      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_createRenderURL     */
-      /* Details: "Method createRenderURL(): Returns a PortletURL object      */
-      /* representing a render URL targeting the portlet"                     */
-      TestResult tr29 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_CREATERENDERURL);
+      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_createRenderURL */
+      /* Details: "Method createRenderURL(): Returns a PortletURL object */
+      /* representing a render URL targeting the portlet" */
+      TestResult tr29 = tcd.getTestResultFailed(
+            V2RESPONSETESTS_MIMERESPONSE_APIRENDER_CREATERENDERURL);
       tr29.setTcSuccess(true);
       tr29.writeTo(writer);
 
-      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_createActionURL     */
-      /* Details: "Method createActionURL(): Returns a PortletURL object      */
-      /* representing an action URL targeting the portlet"                    */
-      TestResult tr30 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_CREATEACTIONURL);
+      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_createActionURL */
+      /* Details: "Method createActionURL(): Returns a PortletURL object */
+      /* representing an action URL targeting the portlet" */
+      TestResult tr30 = tcd.getTestResultFailed(
+            V2RESPONSETESTS_MIMERESPONSE_APIRENDER_CREATEACTIONURL);
       tr30.setTcSuccess(true);
       tr30.writeTo(writer);
 
-      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_createResourceURL   */
-      /* Details: "Method createResourceURL(): Returns a ResourceURL object   */
-      /* targeting the portlet"                                               */
-      TestResult tr31 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_CREATERESOURCEURL);
+      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_createResourceURL */
+      /* Details: "Method createResourceURL(): Returns a ResourceURL object */
+      /* targeting the portlet" */
+      TestResult tr31 = tcd.getTestResultFailed(
+            V2RESPONSETESTS_MIMERESPONSE_APIRENDER_CREATERESOURCEURL);
       tr31.setTcSuccess(true);
       tr31.writeTo(writer);
 
-      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_getCacheControl     */
-      /* Details: "Method getCacheControl(): Returns a CacheControl object"   */
-      TestResult tr32 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRENDER_GETCACHECONTROL);
-      CacheControl gcc=portletResp.getCacheControl();
-      if(gcc!=null) {
-    	  tr32.setTcSuccess(true);
+      /* TestCase: V2ResponseTests_MimeResponse_ApiRender_getCacheControl */
+      /* Details: "Method getCacheControl(): Returns a CacheControl object" */
+      TestResult tr32 = tcd.getTestResultFailed(
+            V2RESPONSETESTS_MIMERESPONSE_APIRENDER_GETCACHECONTROL);
+      CacheControl gcc = portletResp.getCacheControl();
+      if (gcc != null) {
+         tr32.setTcSuccess(true);
       }
-      
+
       tr32.writeTo(writer);
 
    }

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/35346423/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_MimeResponse_ApiResource.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_MimeResponse_ApiResource.java b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_MimeResponse_ApiResource.java
index 12ac427..c276ac4 100644
--- a/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_MimeResponse_ApiResource.java
+++ b/portlet-tck_3.0/V2ResponseTests/src/main/java/javax/portlet/tck/portlets/ResponseTests_MimeResponse_ApiResource.java
@@ -18,21 +18,60 @@
 
 package javax.portlet.tck.portlets;
 
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_FIELDEXPIRATION_CACHE ;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_FIELDCACHE_SCOPE ;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_FIELDPUBLIC_SCOPE ;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_FIELDPRIVATE_SCOPE ;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_FIELDETAG ;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_FIELDUSE_CACHED_CONTENT ;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_FIELDNAMESPACED_RESPONSE;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_FIELDMARKUP_HEAD_ELEMENT;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_GETCONTENTTYPE1;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_GETCONTENTTYPE2;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_SETCONTENTTYPE1;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_SETCONTENTTYPE4;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_GETCHARACTERENCODING;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_GETWRITER1;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_GETWRITER2;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_GETLOCALE;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_SETBUFFERSIZE1;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_SETBUFFERSIZE2;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_GETBUFFERSIZE1;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_GETBUFFERSIZE2;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_FLUSHBUFFER1;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_RESETBUFFER1;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_RESETBUFFER2;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_ISCOMMITTED1;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_ISCOMMITTED2;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_RESET1;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_RESET2;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_GETPORTLETOUTPUTSTREAM1;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_GETPORTLETOUTPUTSTREAM2;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_CREATERENDERURL;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_CREATEACTIONURL;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_CREATERESOURCEURL;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_GETCACHECONTROL;
+import static javax.portlet.tck.constants.Constants.THREADID_ATTR;
+
+import java.io.IOException;
+import java.io.PrintWriter;
+import java.util.Locale;
+
+import javax.portlet.ActionRequest;
+import javax.portlet.ActionResponse;
+import javax.portlet.CacheControl;
+import javax.portlet.Portlet;
+import javax.portlet.PortletConfig;
+import javax.portlet.PortletException;
+import javax.portlet.RenderRequest;
+import javax.portlet.RenderResponse;
+import javax.portlet.ResourceRequest;
+import javax.portlet.ResourceResponse;
+import javax.portlet.ResourceServingPortlet;
+import javax.portlet.ResourceURL;
+import javax.portlet.tck.beans.ClassChecker;
+import javax.portlet.tck.beans.JSR286ApiTestCaseDetails;
+import javax.portlet.tck.beans.TestResult;
 
 /**
  * This portlet implements several test cases for the JSR 362 TCK. The test case names
@@ -46,15 +85,9 @@ import static javax.portlet.ResourceURL.*;
  *
  */
 public class ResponseTests_MimeResponse_ApiResource implements Portlet, ResourceServingPortlet {
-   private static final String LOG_CLASS = 
-         ResponseTests_MimeResponse_ApiResource.class.getName();
-   private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-   
-   private PortletConfig portletConfig = null;
 
    @Override
    public void init(PortletConfig config) throws PortletException {
-      this.portletConfig = config;
    }
 
    @Override
@@ -69,8 +102,6 @@ public class ResponseTests_MimeResponse_ApiResource implements Portlet, Resource
       long tid = Thread.currentThread().getId();
       portletReq.setAttribute(THREADID_ATTR, tid);
 
-      StringWriter writer = new StringWriter();
-
    }
 
    @Override
@@ -221,7 +252,7 @@ public class ResponseTests_MimeResponse_ApiResource implements Portlet, Resource
       TestResult tr14 = tcd.getTestResultFailed(V2RESPONSETESTS_MIMERESPONSE_APIRESOURCE_GETWRITER2);
       try {
           portletResp.getPortletOutputStream();
-    	  PrintWriter pw=portletResp.getWriter();
+    	    portletResp.getWriter();
           
       }catch (IllegalStateException ise) {
     	  tr14.setTcSuccess(true);
@@ -384,7 +415,7 @@ public class ResponseTests_MimeResponse_ApiResource implements Portlet, Resource
 
       writer.write("<div id=\"ResponseTests_MimeResponse_ApiResource\">no resource output.</div>\n");
       ResourceURL resurl = portletResp.createResourceURL();
-      resurl.setCacheability(PAGE);
+      resurl.setCacheability(ResourceURL.PAGE);
       writer.write("<script>\n");
       writer.write("(function () {\n");
       writer.write("   var xhr = new XMLHttpRequest();\n");


Mime
View raw message