portals-pluto-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From msnickl...@apache.org
Subject [29/30] portals-pluto git commit: Cleaned up V2ExceptionTests from extraneous logging and imports
Date Wed, 22 Jun 2016 13:14:13 GMT
Cleaned up V2ExceptionTests from extraneous logging and imports


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

Branch: refs/heads/master
Commit: c1582c22692ae1aef18d51e2e88d762966521e27
Parents: df603f6
Author: ahmed <mahmedk91@gmail.com>
Authored: Tue Jun 21 15:04:49 2016 +0200
Committer: ahmed <mahmedk91@gmail.com>
Committed: Tue Jun 21 15:04:49 2016 +0200

----------------------------------------------------------------------
 ...Tests_PortletContext_ApiRender_servlets.java |   3 +-
 ...ionTests_PortletModeException_ApiRender.java | 159 +++++------
 ...ionTests_UnavailableException_ApiRender.java | 261 ++++++++---------
 ...ptionTests_ValidatorException_ApiRender.java | 284 +++++++++----------
 ...ionTests_WindowStateException_ApiRender.java | 160 +++++------
 5 files changed, 389 insertions(+), 478 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/c1582c22/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/servlets/EnvironmentTests_PortletContext_ApiRender_servlets.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/servlets/EnvironmentTests_PortletContext_ApiRender_servlets.java
b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/servlets/EnvironmentTests_PortletContext_ApiRender_servlets.java
index 6978fc4..de3ad44 100644
--- a/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/servlets/EnvironmentTests_PortletContext_ApiRender_servlets.java
+++ b/portlet-tck_3.0/V2EnvironmentTests/src/main/java/javax/portlet/tck/servlets/EnvironmentTests_PortletContext_ApiRender_servlets.java
@@ -9,7 +9,8 @@ import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
 
 public class EnvironmentTests_PortletContext_ApiRender_servlets extends HttpServlet {
-	private static final String LOG_CLASS = 
+  private static final long serialVersionUID = 1L;
+  private static final String LOG_CLASS = 
 			   EnvironmentTests_PortletContext_ApiRender_servlets.class.getName();
 		   private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
 

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/c1582c22/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_PortletModeException_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_PortletModeException_ApiRender.java
b/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_PortletModeException_ApiRender.java
index 7678f42..2be8ae1 100644
--- a/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_PortletModeException_ApiRender.java
+++ b/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_PortletModeException_ApiRender.java
@@ -1,118 +1,91 @@
-/*  Licensed to the Apache Software Foundation (ASF) under one
- *  or more contributor license agreements.  See the NOTICE file
- *  distributed with this work for additional information
- *  regarding copyright ownership.  The ASF licenses this file
- *  to you under the Apache License, Version 2.0 (the
- *  "License"); you may not use this file except in compliance
- *  with the License.  You may obtain a copy of the License at
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more contributor license
+ * agreements. See the NOTICE file distributed with this work for additional information
regarding
+ * copyright ownership. The ASF licenses this file to you under the Apache License, Version
2.0 (the
+ * "License"); you may not use this file except in compliance with the License. You may obtain
a
+ * copy of the License at
  *
- *    http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
  *
- *  Unless required by applicable law or agreed to in writing,
- *  software distributed under the License is distributed on an
- *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- *  KIND, either express or implied.  See the License for the
- *  specific language governing permissions and limitations
- *  under the License.
+ * Unless required by applicable law or agreed to in writing, software distributed under
the License
+ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
express
+ * or implied. See the License for the specific language governing permissions and limitations
under
+ * the License.
  */
 
 package javax.portlet.tck.portlets;
 
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
+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.PortletMode;
+import javax.portlet.PortletModeException;
+import javax.portlet.RenderRequest;
+import javax.portlet.RenderResponse;
+import javax.portlet.tck.beans.JSR286ApiTestCaseDetails;
+import javax.portlet.tck.beans.TestResult;
+
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2EXCEPTIONTESTS_PORTLETMODEEXCEPTION_APIRENDER_HASGETMODE2;
+import static javax.portlet.tck.constants.Constants.THREADID_ATTR;
 
 /**
- * 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 ExceptionTests_PortletModeException_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
+ * ExceptionTests_PortletModeException_ApiRender_event
  *
  */
-public class ExceptionTests_PortletModeException_ApiRender implements Portlet, ResourceServingPortlet
{
-   private static final String LOG_CLASS = 
-         ExceptionTests_PortletModeException_ApiRender.class.getName();
-   private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-   
-   private PortletConfig portletConfig = null;
-
-   @Override
-   public void init(PortletConfig config) throws PortletException {
-      this.portletConfig = config;
-   }
-
-   @Override
-   public void destroy() {
-   }
-
-   @Override
-   public void processAction(ActionRequest portletReq, ActionResponse portletResp)
-         throws PortletException, IOException {
-      LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
-      portletResp.setRenderParameters(portletReq.getParameterMap());
-      long tid = Thread.currentThread().getId();
-      portletReq.setAttribute(THREADID_ATTR, tid);
-
-      StringWriter writer = new StringWriter();
-
-   }
+public class ExceptionTests_PortletModeException_ApiRender implements Portlet {
 
-   @Override
-   public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
-         throws PortletException, IOException {
-      LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+  @Override
+  public void init(PortletConfig config) throws PortletException {}
 
-      long tid = Thread.currentThread().getId();
-      portletReq.setAttribute(THREADID_ATTR, tid);
+  @Override
+  public void destroy() {}
 
-      PrintWriter writer = portletResp.getWriter();
+  @Override
+  public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+      throws PortletException, IOException {
 
-   }
+    portletResp.setRenderParameters(portletReq.getParameterMap());
+    long tid = Thread.currentThread().getId();
+    portletReq.setAttribute(THREADID_ATTR, tid);
 
-   @Override
-   public void render(RenderRequest portletReq, RenderResponse portletResp)
-         throws PortletException, IOException {
-      LOGGER.entering(LOG_CLASS, "main portlet render entry");
+  }
 
-      long tid = Thread.currentThread().getId();
-      portletReq.setAttribute(THREADID_ATTR, tid);
+  @Override
+  public void render(RenderRequest portletReq, RenderResponse portletResp)
+      throws PortletException, IOException {
 
-      PrintWriter writer = portletResp.getWriter();
+    long tid = Thread.currentThread().getId();
+    portletReq.setAttribute(THREADID_ATTR, tid);
 
-      JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+    PrintWriter writer = portletResp.getWriter();
 
-      // Create result objects for the tests
+    JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
 
-      ClassChecker cc = new ClassChecker(javax.portlet.PortletModeException.class);
-      
+    // Create result objects for the tests
 
-      /* TestCase: V2ExceptionTests_PortletModeException_ApiRender_hasGetMode2 */
-      /* Details: "Returns the PortletMode object causing this exception"     */
-      TestResult tr0 = tcd.getTestResultFailed(V2EXCEPTIONTESTS_PORTLETMODEEXCEPTION_APIRENDER_HASGETMODE2);
-      PortletMode pm=new PortletMode("testmode");
-      PortletModeException pme=new PortletModeException("Unsupported Mode Causing Exception"
,pm);
-      if(pme.getMode().toString().equals("testmode")) {
-    	  tr0.setTcSuccess(true);
-      }
-      tr0.writeTo(writer);
+    /* TestCase: V2ExceptionTests_PortletModeException_ApiRender_hasGetMode2 */
+    /* Details: "Returns the PortletMode object causing this exception" */
+    TestResult tr0 =
+        tcd.getTestResultFailed(V2EXCEPTIONTESTS_PORTLETMODEEXCEPTION_APIRENDER_HASGETMODE2);
+    PortletMode pm = new PortletMode("testmode");
+    PortletModeException pme = new PortletModeException("Unsupported Mode Causing Exception",
pm);
+    if (pme.getMode().toString().equals("testmode")) {
+      tr0.setTcSuccess(true);
+    }
+    tr0.writeTo(writer);
 
-   }
+  }
 
 }

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/c1582c22/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_UnavailableException_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_UnavailableException_ApiRender.java
b/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_UnavailableException_ApiRender.java
index d5db41c..7da7f96 100644
--- a/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_UnavailableException_ApiRender.java
+++ b/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_UnavailableException_ApiRender.java
@@ -1,154 +1,135 @@
-/*  Licensed to the Apache Software Foundation (ASF) under one
- *  or more contributor license agreements.  See the NOTICE file
- *  distributed with this work for additional information
- *  regarding copyright ownership.  The ASF licenses this file
- *  to you under the Apache License, Version 2.0 (the
- *  "License"); you may not use this file except in compliance
- *  with the License.  You may obtain a copy of the License at
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more contributor license
+ * agreements. See the NOTICE file distributed with this work for additional information
regarding
+ * copyright ownership. The ASF licenses this file to you under the Apache License, Version
2.0 (the
+ * "License"); you may not use this file except in compliance with the License. You may obtain
a
+ * copy of the License at
  *
- *    http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
  *
- *  Unless required by applicable law or agreed to in writing,
- *  software distributed under the License is distributed on an
- *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- *  KIND, either express or implied.  See the License for the
- *  specific language governing permissions and limitations
- *  under the License.
+ * Unless required by applicable law or agreed to in writing, software distributed under
the License
+ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
express
+ * or implied. See the License for the specific language governing permissions and limitations
under
+ * the License.
  */
 
 package javax.portlet.tck.portlets;
 
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
+import 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.RenderRequest;
+import javax.portlet.RenderResponse;
 import javax.portlet.UnavailableException;
-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 javax.portlet.tck.beans.JSR286ApiTestCaseDetails;
+import javax.portlet.tck.beans.TestResult;
+
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2EXCEPTIONTESTS_UNAVAILABLEEXCEPTION_APIRENDER_ISPERMANENT1;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2EXCEPTIONTESTS_UNAVAILABLEEXCEPTION_APIRENDER_ISPERMANENT2;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2EXCEPTIONTESTS_UNAVAILABLEEXCEPTION_APIRENDER_ISPERMANENT3;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2EXCEPTIONTESTS_UNAVAILABLEEXCEPTION_APIRENDER_GETUNAVAILABLESECONDS1;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2EXCEPTIONTESTS_UNAVAILABLEEXCEPTION_APIRENDER_GETUNAVAILABLESECONDS2;
+import static javax.portlet.tck.constants.Constants.THREADID_ATTR;
 
 /**
- * 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 ExceptionTests_UnavailableException_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
+ * ExceptionTests_UnavailableException_ApiRender_event
  *
  */
-public class ExceptionTests_UnavailableException_ApiRender implements Portlet, ResourceServingPortlet
{
-   private static final String LOG_CLASS = 
-         ExceptionTests_UnavailableException_ApiRender.class.getName();
-   private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-   
-   private PortletConfig portletConfig = null;
-
-   @Override
-   public void init(PortletConfig config) throws PortletException {
-      this.portletConfig = config;
-   }
-
-   @Override
-   public void destroy() {
-   }
-
-   @Override
-   public void processAction(ActionRequest portletReq, ActionResponse portletResp)
-         throws PortletException, IOException {
-      LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
-      portletResp.setRenderParameters(portletReq.getParameterMap());
-      long tid = Thread.currentThread().getId();
-      portletReq.setAttribute(THREADID_ATTR, tid);
-
-      StringWriter writer = new StringWriter();
-
-   }
-
-   @Override
-   public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
-         throws PortletException, IOException {
-      LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
-      long tid = Thread.currentThread().getId();
-      portletReq.setAttribute(THREADID_ATTR, tid);
-
-      PrintWriter writer = portletResp.getWriter();
-
-   }
-
-   @Override
-   public void render(RenderRequest portletReq, RenderResponse portletResp)
-         throws PortletException, IOException {
-      LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
-      long tid = Thread.currentThread().getId();
-      portletReq.setAttribute(THREADID_ATTR, tid);
-
-      PrintWriter writer = portletResp.getWriter();
-
-      JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
-      // Create result objects for the tests
-
-      ClassChecker cc = new ClassChecker(javax.portlet.UnavailableException.class);
-      
-      UnavailableException uae=new UnavailableException("Testing unavailable Exception",10);
-
-      /* TestCase: V2ExceptionTests_UnavailableException_ApiRender_isPermanent1 */
-      /* Details: "Method isPermanent(): Returns a boolean"                   */
-      TestResult tr0 = tcd.getTestResultFailed(V2EXCEPTIONTESTS_UNAVAILABLEEXCEPTION_APIRENDER_ISPERMANENT1);
-      boolean bpt=uae.isPermanent();
-      if(bpt==false) {
-    	  tr0.setTcSuccess(true);
-      }
-      tr0.writeTo(writer);
-
-      /* TestCase: V2ExceptionTests_UnavailableException_ApiRender_isPermanent2 */
-      /* Details: "Method isPermanent(): Returns true if the portlet is       */
-      /* permanently unavailable "                                            */
-      TestResult tr1 = tcd.getTestResultFailed(V2EXCEPTIONTESTS_UNAVAILABLEEXCEPTION_APIRENDER_ISPERMANENT2);
-      tr1.setTcSuccess(true);
-      tr1.appendTcDetail("This Method could not be tested if the portlet is available");
-      tr1.writeTo(writer);
-
-      /* TestCase: V2ExceptionTests_UnavailableException_ApiRender_isPermanent3 */
-      /* Details: "Method isPermanent(): Returns false if the portlet is      */
-      /* temporarily unavailable "                                            */
-      TestResult tr2 = tcd.getTestResultFailed(V2EXCEPTIONTESTS_UNAVAILABLEEXCEPTION_APIRENDER_ISPERMANENT3);
-      boolean bpf=uae.isPermanent();
-      if(bpf==false) {
-    	  tr2.setTcSuccess(true);
-      }
-      tr2.writeTo(writer);
-
-      /* TestCase: V2ExceptionTests_UnavailableException_ApiRender_getUnavailableSeconds1
*/
-      /* Details: "Method getUnavailableSeconds(): Returns an integer "       */
-      TestResult tr3 = tcd.getTestResultFailed(V2EXCEPTIONTESTS_UNAVAILABLEEXCEPTION_APIRENDER_GETUNAVAILABLESECONDS1);
-      int getsec= uae.getUnavailableSeconds();
-      if(getsec==10) {
-    	  tr3.setTcSuccess(true);  
-      }  
-      tr3.writeTo(writer);
-
-      /* TestCase: V2ExceptionTests_UnavailableException_ApiRender_getUnavailableSeconds2
*/
-      /* Details: "Method getUnavailableSeconds(): Returns a number &lt;= 0   */
-      /* if the portlet is permanently unavailable"                           */
-      TestResult tr4 = tcd.getTestResultFailed(V2EXCEPTIONTESTS_UNAVAILABLEEXCEPTION_APIRENDER_GETUNAVAILABLESECONDS2);
-      tr4.setTcSuccess(true);
-      tr4.appendTcDetail("This Method could not be tested for this Test Portlets which cannot
be unavailable permanently");
-      tr4.writeTo(writer);
-
-   }
+public class ExceptionTests_UnavailableException_ApiRender implements Portlet {
+
+  @Override
+  public void init(PortletConfig config) throws PortletException {}
+
+  @Override
+  public void destroy() {}
+
+  @Override
+  public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+      throws PortletException, IOException {
+
+    portletResp.setRenderParameters(portletReq.getParameterMap());
+    long tid = Thread.currentThread().getId();
+    portletReq.setAttribute(THREADID_ATTR, tid);
+
+  }
+
+  @Override
+  public void render(RenderRequest portletReq, RenderResponse portletResp)
+      throws PortletException, IOException {
+
+    long tid = Thread.currentThread().getId();
+    portletReq.setAttribute(THREADID_ATTR, tid);
+
+    PrintWriter writer = portletResp.getWriter();
+
+    JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+    // Create result objects for the tests
+
+    UnavailableException uae = new UnavailableException("Testing unavailable Exception",
10);
+
+    /* TestCase: V2ExceptionTests_UnavailableException_ApiRender_isPermanent1 */
+    /* Details: "Method isPermanent(): Returns a boolean" */
+    TestResult tr0 =
+        tcd.getTestResultFailed(V2EXCEPTIONTESTS_UNAVAILABLEEXCEPTION_APIRENDER_ISPERMANENT1);
+    boolean bpt = uae.isPermanent();
+    if (bpt == false) {
+      tr0.setTcSuccess(true);
+    }
+    tr0.writeTo(writer);
+
+    /* TestCase: V2ExceptionTests_UnavailableException_ApiRender_isPermanent2 */
+    /* Details: "Method isPermanent(): Returns true if the portlet is */
+    /* permanently unavailable " */
+    TestResult tr1 =
+        tcd.getTestResultFailed(V2EXCEPTIONTESTS_UNAVAILABLEEXCEPTION_APIRENDER_ISPERMANENT2);
+    tr1.setTcSuccess(true);
+    tr1.appendTcDetail("This Method could not be tested if the portlet is available");
+    tr1.writeTo(writer);
+
+    /* TestCase: V2ExceptionTests_UnavailableException_ApiRender_isPermanent3 */
+    /* Details: "Method isPermanent(): Returns false if the portlet is */
+    /* temporarily unavailable " */
+    TestResult tr2 =
+        tcd.getTestResultFailed(V2EXCEPTIONTESTS_UNAVAILABLEEXCEPTION_APIRENDER_ISPERMANENT3);
+    boolean bpf = uae.isPermanent();
+    if (bpf == false) {
+      tr2.setTcSuccess(true);
+    }
+    tr2.writeTo(writer);
+
+    /* TestCase: V2ExceptionTests_UnavailableException_ApiRender_getUnavailableSeconds1 */
+    /* Details: "Method getUnavailableSeconds(): Returns an integer " */
+    TestResult tr3 = tcd.getTestResultFailed(
+        V2EXCEPTIONTESTS_UNAVAILABLEEXCEPTION_APIRENDER_GETUNAVAILABLESECONDS1);
+    int getsec = uae.getUnavailableSeconds();
+    if (getsec == 10) {
+      tr3.setTcSuccess(true);
+    }
+    tr3.writeTo(writer);
+
+    /* TestCase: V2ExceptionTests_UnavailableException_ApiRender_getUnavailableSeconds2 */
+    /* Details: "Method getUnavailableSeconds(): Returns a number &lt;= 0 */
+    /* if the portlet is permanently unavailable" */
+    TestResult tr4 = tcd.getTestResultFailed(
+        V2EXCEPTIONTESTS_UNAVAILABLEEXCEPTION_APIRENDER_GETUNAVAILABLESECONDS2);
+    tr4.setTcSuccess(true);
+    tr4.appendTcDetail(
+        "This Method could not be tested for this Test Portlets which cannot be unavailable
permanently");
+    tr4.writeTo(writer);
+
+  }
 
 }

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/c1582c22/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_ValidatorException_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_ValidatorException_ApiRender.java
b/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_ValidatorException_ApiRender.java
index b25f6fc..96e252c 100644
--- a/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_ValidatorException_ApiRender.java
+++ b/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_ValidatorException_ApiRender.java
@@ -1,165 +1,147 @@
-/*  Licensed to the Apache Software Foundation (ASF) under one
- *  or more contributor license agreements.  See the NOTICE file
- *  distributed with this work for additional information
- *  regarding copyright ownership.  The ASF licenses this file
- *  to you under the Apache License, Version 2.0 (the
- *  "License"); you may not use this file except in compliance
- *  with the License.  You may obtain a copy of the License at
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more contributor license
+ * agreements. See the NOTICE file distributed with this work for additional information
regarding
+ * copyright ownership. The ASF licenses this file to you under the Apache License, Version
2.0 (the
+ * "License"); you may not use this file except in compliance with the License. You may obtain
a
+ * copy of the License at
  *
- *    http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
  *
- *  Unless required by applicable law or agreed to in writing,
- *  software distributed under the License is distributed on an
- *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- *  KIND, either express or implied.  See the License for the
- *  specific language governing permissions and limitations
- *  under the License.
+ * Unless required by applicable law or agreed to in writing, software distributed under
the License
+ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
express
+ * or implied. See the License for the specific language governing permissions and limitations
under
+ * the License.
  */
 
 package javax.portlet.tck.portlets;
 
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
+import java.io.IOException;
+import java.io.PrintWriter;
+import java.util.Collections;
+import java.util.Enumeration;
+import java.util.List;
+
+import javax.portlet.ActionRequest;
+import javax.portlet.ActionResponse;
+import javax.portlet.Portlet;
+import javax.portlet.PortletConfig;
+import javax.portlet.PortletException;
+import javax.portlet.RenderRequest;
+import javax.portlet.RenderResponse;
+import javax.portlet.ValidatorException;
+import javax.portlet.tck.beans.JSR286ApiTestCaseDetails;
+import javax.portlet.tck.beans.TestResult;
+
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2EXCEPTIONTESTS_VALIDATOREXCEPTION_APIRENDER_CONSTRUCTOR2;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2EXCEPTIONTESTS_VALIDATOREXCEPTION_APIRENDER_CONSTRUCTOR4;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2EXCEPTIONTESTS_VALIDATOREXCEPTION_APIRENDER_CONSTRUCTOR6;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2EXCEPTIONTESTS_VALIDATOREXCEPTION_APIRENDER_GETFAILEDKEYS1;
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2EXCEPTIONTESTS_VALIDATOREXCEPTION_APIRENDER_GETFAILEDKEYS2;
+import static javax.portlet.tck.constants.Constants.THREADID_ATTR;
 
 
 /**
- * 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 ExceptionTests_ValidatorException_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
+ * ExceptionTests_ValidatorException_ApiRender_event
  *
  */
-public class ExceptionTests_ValidatorException_ApiRender implements Portlet, ResourceServingPortlet
{
-   private static final String LOG_CLASS = 
-         ExceptionTests_ValidatorException_ApiRender.class.getName();
-   private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-   
-   private PortletConfig portletConfig = null;
-
-   @Override
-   public void init(PortletConfig config) throws PortletException {
-      this.portletConfig = config;
-   }
-
-   @Override
-   public void destroy() {
-   }
-
-   @Override
-   public void processAction(ActionRequest portletReq, ActionResponse portletResp)
-         throws PortletException, IOException {
-      LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
-      portletResp.setRenderParameters(portletReq.getParameterMap());
-      long tid = Thread.currentThread().getId();
-      portletReq.setAttribute(THREADID_ATTR, tid);
-
-      StringWriter writer = new StringWriter();
-
-   }
-
-   @Override
-   public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
-         throws PortletException, IOException {
-      LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
-
-      long tid = Thread.currentThread().getId();
-      portletReq.setAttribute(THREADID_ATTR, tid);
-
-      PrintWriter writer = portletResp.getWriter();
-
-   }
-
-   @Override
-   public void render(RenderRequest portletReq, RenderResponse portletResp)
-         throws PortletException, IOException {
-      LOGGER.entering(LOG_CLASS, "main portlet render entry");
-
-      long tid = Thread.currentThread().getId();
-      portletReq.setAttribute(THREADID_ATTR, tid);
-
-      PrintWriter writer = portletResp.getWriter();
-
-      JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
-
-      // Create result objects for the tests
-
-      ClassChecker cc = new ClassChecker(javax.portlet.ValidatorException.class);
-      
-      
-
-      /* TestCase: V2ExceptionTests_ValidatorException_ApiRender_constructor2 */
-      /* Details: "For ValidatorException(java.lang.String,                   */
-      /* java.util.Collection&lt;java.lang.String&gt;), the failedKeys        */
-      /* parameter may be null"                                               */
-      TestResult tr0 = tcd.getTestResultFailed(V2EXCEPTIONTESTS_VALIDATOREXCEPTION_APIRENDER_CONSTRUCTOR2);
-      ValidatorException ve=new ValidatorException("TestException",null);
-      if(ve.getMessage().equals("TestException")) {
-    	  tr0.setTcSuccess(true);
-      }
-      tr0.writeTo(writer);
-
-      /* TestCase: V2ExceptionTests_ValidatorException_ApiRender_constructor4 */
-      /* Details: "For ValidatorException(java.lang.String,                   */
-      /* java.lang.Throwable,                                                 */
-      /* java.util.Collection&lt;java.lang.String&gt;), the failedKeys        */
-      /* parameter may be null"                                               */
-      TestResult tr1 = tcd.getTestResultFailed(V2EXCEPTIONTESTS_VALIDATOREXCEPTION_APIRENDER_CONSTRUCTOR4);
-      Throwable tw=new Throwable("TestThrow");
-      ValidatorException ve1=new ValidatorException("TestException1",tw,null);
-      if(ve1.getMessage().equals("TestException1")) {
-    	  tr1.setTcSuccess(true);
-      }
-      tr1.writeTo(writer);
-
-      /* TestCase: V2ExceptionTests_ValidatorException_ApiRender_constructor6 */
-      /* Details: "For ValidatorException(java.lang.Throwable,                */
-      /* java.util.Collection&lt;java.lang.String&gt;), the failedKeys        */
-      /* parameter may be null"                                               */
-      TestResult tr2 = tcd.getTestResultFailed(V2EXCEPTIONTESTS_VALIDATOREXCEPTION_APIRENDER_CONSTRUCTOR6);
-      Throwable tw1=new Throwable("TestThrow1");
-      ValidatorException ve2=new ValidatorException(tw1,null);
-      if(ve2.getMessage().contains("TestThrow1")) {
-    	  tr2.setTcSuccess(true);
-      }
-      tr2.writeTo(writer);
-
-      /* TestCase: V2ExceptionTests_ValidatorException_ApiRender_getFailedKeys1 */
-      /* Details: "Method getFailedKeys(): Returns a                          */
-      /* java.util.Enumeration&lt;java.lang.String&gt; object containing      */
-      /* the preference keys that failed validation"                          */
-      TestResult tr3 = tcd.getTestResultFailed(V2EXCEPTIONTESTS_VALIDATOREXCEPTION_APIRENDER_GETFAILEDKEYS1);
-      tr3.setTcSuccess(true);
-      tr3.appendTcDetail("There are no Preference Keys that Failed Validation in this Test
Portlet." );
-      tr3.writeTo(writer);
-
-      /* TestCase: V2ExceptionTests_ValidatorException_ApiRender_getFailedKeys2 */
-      /* Details: "Method getFailedKeys(): Returns an empty enmueration if    */
-      /* no failed keys are available"                                        */
-      TestResult tr4 = tcd.getTestResultFailed(V2EXCEPTIONTESTS_VALIDATOREXCEPTION_APIRENDER_GETFAILEDKEYS2);
-      Enumeration eu=ve1.getFailedKeys();
-      List li=Collections.list(eu);
-      if(li.isEmpty()) {
-    	  tr4.setTcSuccess(true);
-      }
-      tr4.writeTo(writer);
-   }
+public class ExceptionTests_ValidatorException_ApiRender implements Portlet {
+
+  @Override
+  public void init(PortletConfig config) throws PortletException {}
+
+  @Override
+  public void destroy() {}
+
+  @Override
+  public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+      throws PortletException, IOException {
+
+    portletResp.setRenderParameters(portletReq.getParameterMap());
+    long tid = Thread.currentThread().getId();
+    portletReq.setAttribute(THREADID_ATTR, tid);
+
+  }
+
+  @Override
+  public void render(RenderRequest portletReq, RenderResponse portletResp)
+      throws PortletException, IOException {
+
+    long tid = Thread.currentThread().getId();
+    portletReq.setAttribute(THREADID_ATTR, tid);
+
+    PrintWriter writer = portletResp.getWriter();
+
+    JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+
+    // Create result objects for the tests
+
+    /* TestCase: V2ExceptionTests_ValidatorException_ApiRender_constructor2 */
+    /* Details: "For ValidatorException(java.lang.String, */
+    /* java.util.Collection&lt;java.lang.String&gt;), the failedKeys */
+    /* parameter may be null" */
+    TestResult tr0 =
+        tcd.getTestResultFailed(V2EXCEPTIONTESTS_VALIDATOREXCEPTION_APIRENDER_CONSTRUCTOR2);
+    ValidatorException ve = new ValidatorException("TestException", null);
+    if (ve.getMessage().equals("TestException")) {
+      tr0.setTcSuccess(true);
+    }
+    tr0.writeTo(writer);
+
+    /* TestCase: V2ExceptionTests_ValidatorException_ApiRender_constructor4 */
+    /* Details: "For ValidatorException(java.lang.String, */
+    /* java.lang.Throwable, */
+    /* java.util.Collection&lt;java.lang.String&gt;), the failedKeys */
+    /* parameter may be null" */
+    TestResult tr1 =
+        tcd.getTestResultFailed(V2EXCEPTIONTESTS_VALIDATOREXCEPTION_APIRENDER_CONSTRUCTOR4);
+    Throwable tw = new Throwable("TestThrow");
+    ValidatorException ve1 = new ValidatorException("TestException1", tw, null);
+    if (ve1.getMessage().equals("TestException1")) {
+      tr1.setTcSuccess(true);
+    }
+    tr1.writeTo(writer);
+
+    /* TestCase: V2ExceptionTests_ValidatorException_ApiRender_constructor6 */
+    /* Details: "For ValidatorException(java.lang.Throwable, */
+    /* java.util.Collection&lt;java.lang.String&gt;), the failedKeys */
+    /* parameter may be null" */
+    TestResult tr2 =
+        tcd.getTestResultFailed(V2EXCEPTIONTESTS_VALIDATOREXCEPTION_APIRENDER_CONSTRUCTOR6);
+    Throwable tw1 = new Throwable("TestThrow1");
+    ValidatorException ve2 = new ValidatorException(tw1, null);
+    if (ve2.getMessage().contains("TestThrow1")) {
+      tr2.setTcSuccess(true);
+    }
+    tr2.writeTo(writer);
+
+    /* TestCase: V2ExceptionTests_ValidatorException_ApiRender_getFailedKeys1 */
+    /* Details: "Method getFailedKeys(): Returns a */
+    /* java.util.Enumeration&lt;java.lang.String&gt; object containing */
+    /* the preference keys that failed validation" */
+    TestResult tr3 =
+        tcd.getTestResultFailed(V2EXCEPTIONTESTS_VALIDATOREXCEPTION_APIRENDER_GETFAILEDKEYS1);
+    tr3.setTcSuccess(true);
+    tr3.appendTcDetail("There are no Preference Keys that Failed Validation in this Test
Portlet.");
+    tr3.writeTo(writer);
+
+    /* TestCase: V2ExceptionTests_ValidatorException_ApiRender_getFailedKeys2 */
+    /* Details: "Method getFailedKeys(): Returns an empty enmueration if */
+    /* no failed keys are available" */
+    TestResult tr4 =
+        tcd.getTestResultFailed(V2EXCEPTIONTESTS_VALIDATOREXCEPTION_APIRENDER_GETFAILEDKEYS2);
+    Enumeration<?> eu = ve1.getFailedKeys();
+    List<?> li = Collections.list(eu);
+    if (li.isEmpty()) {
+      tr4.setTcSuccess(true);
+    }
+    tr4.writeTo(writer);
+  }
 
 }

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/c1582c22/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_WindowStateException_ApiRender.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_WindowStateException_ApiRender.java
b/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_WindowStateException_ApiRender.java
index 99a9a46..fae3531 100644
--- a/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_WindowStateException_ApiRender.java
+++ b/portlet-tck_3.0/V2ExceptionTests/src/main/java/javax/portlet/tck/portlets/ExceptionTests_WindowStateException_ApiRender.java
@@ -1,118 +1,92 @@
-/*  Licensed to the Apache Software Foundation (ASF) under one
- *  or more contributor license agreements.  See the NOTICE file
- *  distributed with this work for additional information
- *  regarding copyright ownership.  The ASF licenses this file
- *  to you under the Apache License, Version 2.0 (the
- *  "License"); you may not use this file except in compliance
- *  with the License.  You may obtain a copy of the License at
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more contributor license
+ * agreements. See the NOTICE file distributed with this work for additional information
regarding
+ * copyright ownership. The ASF licenses this file to you under the Apache License, Version
2.0 (the
+ * "License"); you may not use this file except in compliance with the License. You may obtain
a
+ * copy of the License at
  *
- *    http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
  *
- *  Unless required by applicable law or agreed to in writing,
- *  software distributed under the License is distributed on an
- *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- *  KIND, either express or implied.  See the License for the
- *  specific language governing permissions and limitations
- *  under the License.
+ * Unless required by applicable law or agreed to in writing, software distributed under
the License
+ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
express
+ * or implied. See the License for the specific language governing permissions and limitations
under
+ * the License.
  */
 
 package javax.portlet.tck.portlets;
 
-import java.io.*;
-import java.util.*;
-import java.util.logging.*;
-import static java.util.logging.Logger.*;
-import javax.xml.namespace.QName;
-import javax.portlet.*;
-import javax.portlet.filter.*;
-import javax.servlet.*;
-import javax.servlet.http.*;
-import javax.portlet.tck.beans.*;
-import javax.portlet.tck.constants.*;
-import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.*;
-import static javax.portlet.tck.constants.Constants.*;
-import static javax.portlet.PortletSession.*;
-import static javax.portlet.ResourceURL.*;
+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.RenderRequest;
+import javax.portlet.RenderResponse;
+import javax.portlet.WindowState;
+import javax.portlet.WindowStateException;
+import javax.portlet.tck.beans.JSR286ApiTestCaseDetails;
+import javax.portlet.tck.beans.TestResult;
+
+import static javax.portlet.tck.beans.JSR286ApiTestCaseDetails.V2EXCEPTIONTESTS_WINDOWSTATEEXCEPTION_APIRENDER_GETSTATE;
+import static javax.portlet.tck.constants.Constants.THREADID_ATTR;
 
 /**
- * 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 ExceptionTests_WindowStateException_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
+ * ExceptionTests_WindowStateException_ApiRender_event
  *
  */
-public class ExceptionTests_WindowStateException_ApiRender implements Portlet, ResourceServingPortlet
{
-   private static final String LOG_CLASS = 
-         ExceptionTests_WindowStateException_ApiRender.class.getName();
-   private final Logger LOGGER = Logger.getLogger(LOG_CLASS);
-   
-   private PortletConfig portletConfig = null;
-
-   @Override
-   public void init(PortletConfig config) throws PortletException {
-      this.portletConfig = config;
-   }
-
-   @Override
-   public void destroy() {
-   }
-
-   @Override
-   public void processAction(ActionRequest portletReq, ActionResponse portletResp)
-         throws PortletException, IOException {
-      LOGGER.entering(LOG_CLASS, "main portlet processAction entry");
-
-      portletResp.setRenderParameters(portletReq.getParameterMap());
-      long tid = Thread.currentThread().getId();
-      portletReq.setAttribute(THREADID_ATTR, tid);
-
-      StringWriter writer = new StringWriter();
-
-   }
+public class ExceptionTests_WindowStateException_ApiRender implements Portlet {
 
-   @Override
-   public void serveResource(ResourceRequest portletReq, ResourceResponse portletResp)
-         throws PortletException, IOException {
-      LOGGER.entering(LOG_CLASS, "main portlet serveResource entry");
+  @Override
+  public void init(PortletConfig config) throws PortletException {}
 
-      long tid = Thread.currentThread().getId();
-      portletReq.setAttribute(THREADID_ATTR, tid);
+  @Override
+  public void destroy() {}
 
-      PrintWriter writer = portletResp.getWriter();
+  @Override
+  public void processAction(ActionRequest portletReq, ActionResponse portletResp)
+      throws PortletException, IOException {
 
-   }
+    portletResp.setRenderParameters(portletReq.getParameterMap());
+    long tid = Thread.currentThread().getId();
+    portletReq.setAttribute(THREADID_ATTR, tid);
 
-   @Override
-   public void render(RenderRequest portletReq, RenderResponse portletResp)
-         throws PortletException, IOException {
-      LOGGER.entering(LOG_CLASS, "main portlet render entry");
+  }
 
-      long tid = Thread.currentThread().getId();
-      portletReq.setAttribute(THREADID_ATTR, tid);
+  @Override
+  public void render(RenderRequest portletReq, RenderResponse portletResp)
+      throws PortletException, IOException {
 
-      PrintWriter writer = portletResp.getWriter();
+    long tid = Thread.currentThread().getId();
+    portletReq.setAttribute(THREADID_ATTR, tid);
 
-      JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
+    PrintWriter writer = portletResp.getWriter();
 
-      // Create result objects for the tests
+    JSR286ApiTestCaseDetails tcd = new JSR286ApiTestCaseDetails();
 
-      ClassChecker cc = new ClassChecker(javax.portlet.WindowStateException.class);
+    // Create result objects for the tests
 
-      /* TestCase: V2ExceptionTests_WindowStateException_ApiRender_getState   */
-      /* Details: "Method getState(): Returns the WindowState object          */
-      /* causing this exception"                                              */
-      TestResult tr0 = tcd.getTestResultFailed(V2EXCEPTIONTESTS_WINDOWSTATEEXCEPTION_APIRENDER_GETSTATE);
-      WindowState ws=new WindowState("teststate");
-      WindowStateException wse=new WindowStateException("Unsupported State Causing Exception"
,ws);
-      if(wse.getState().toString().equals("teststate")) {
-    	  tr0.setTcSuccess(true);
-      }
-      tr0.writeTo(writer);
+    /* TestCase: V2ExceptionTests_WindowStateException_ApiRender_getState */
+    /* Details: "Method getState(): Returns the WindowState object */
+    /* causing this exception" */
+    TestResult tr0 =
+        tcd.getTestResultFailed(V2EXCEPTIONTESTS_WINDOWSTATEEXCEPTION_APIRENDER_GETSTATE);
+    WindowState ws = new WindowState("teststate");
+    WindowStateException wse = new WindowStateException("Unsupported State Causing Exception",
ws);
+    if (wse.getState().toString().equals("teststate")) {
+      tr0.setTcSuccess(true);
+    }
+    tr0.writeTo(writer);
 
-   }
+  }
 
 }


Mime
View raw message