[jboss-cvs] jboss-portal/portlet/src/main/org/jboss/portal/test/portlet/jsr168/tck/portletinterface/spec ...

Julien Viet julien at jboss.com
Fri Aug 18 14:01:47 EDT 2006


  User: julien  
  Date: 06/08/18 14:01:47

  Modified:    portlet/src/main/org/jboss/portal/test/portlet/jsr168/tck/portletinterface/spec  
                        ExceptionsDuringRequestHandlingControllerPortlet.java
                        MinimizedStateDontRenderPortlet.java
  Log:
  fix for JBPORTAL-984 : Provice access to HTTP headers in request dispatch to a servlet from a portlet
  
  Revision  Changes    Path
  1.3       +6 -11     jboss-portal/portlet/src/main/org/jboss/portal/test/portlet/jsr168/tck/portletinterface/spec/ExceptionsDuringRequestHandlingControllerPortlet.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ExceptionsDuringRequestHandlingControllerPortlet.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-portal/portlet/src/main/org/jboss/portal/test/portlet/jsr168/tck/portletinterface/spec/ExceptionsDuringRequestHandlingControllerPortlet.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- ExceptionsDuringRequestHandlingControllerPortlet.java	22 Apr 2006 17:43:09 -0000	1.2
  +++ ExceptionsDuringRequestHandlingControllerPortlet.java	18 Aug 2006 18:01:47 -0000	1.3
  @@ -55,7 +55,7 @@
    *
    *
    * @author <a href="mailto:boleslaw.dawidowicz at jboss.org">Boleslaw Dawidowicz</a>
  - * @version $Revision: 1.2 $
  + * @version $Revision: 1.3 $
    */
   public class ExceptionsDuringRequestHandlingControllerPortlet extends AbstractTestPortlet
   {
  @@ -71,37 +71,32 @@
         {
            //Just repaint
            PortletURL url = resp.createRenderURL();
  -         InvokeGetResult result = new InvokeGetResult();
  -         result.setURL(url.toString());
  +         InvokeGetResult result = new InvokeGetResult(url.toString());
            marshall(result);
         }
         if (TestCaseContext.getCurrentRequestCount() == 1)
         {
            //Invoke PortletExceptionDuringRequestHandlingPortlet action
  -         InvokeGetResult result = new InvokeGetResult();
  -         result.setURL(PortletExceptionDuringRequestHandlingPortlet.actionURL);
  +         InvokeGetResult result = new InvokeGetResult(PortletExceptionDuringRequestHandlingPortlet.actionURL);
            marshall(result);
         }
         if (TestCaseContext.getCurrentRequestCount() == 2)
         {
            //Invoke RuntimeExceptionDuringRequestHandlingPortlet action
  -         InvokeGetResult result = new InvokeGetResult();
  -         result.setURL(RuntimeExceptionDuringRequestHandlingPortlet.actionURL);
  +         InvokeGetResult result = new InvokeGetResult(RuntimeExceptionDuringRequestHandlingPortlet.actionURL);
            marshall(result);
         }
         if (TestCaseContext.getCurrentRequestCount() == 3)
         {
            //Invoke UnavailableExceptionDuringProcessActionPortlet action
  -         InvokeGetResult result = new InvokeGetResult();
  -         result.setURL(UnavailableExceptionDuringProcessActionPortlet.actionURL);
  +         InvokeGetResult result = new InvokeGetResult(UnavailableExceptionDuringProcessActionPortlet.actionURL);
            marshall(result);
         }
         if (TestCaseContext.getCurrentRequestCount() == 4)
         {
            //Just repaint
            PortletURL url = resp.createRenderURL();
  -         InvokeGetResult result = new InvokeGetResult();
  -         result.setURL(url.toString());
  +         InvokeGetResult result = new InvokeGetResult(url.toString());
            marshall(result);
         }
         else if (TestCaseContext.isCurrentRequestCount(5))
  
  
  
  1.3       +4 -7      jboss-portal/portlet/src/main/org/jboss/portal/test/portlet/jsr168/tck/portletinterface/spec/MinimizedStateDontRenderPortlet.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: MinimizedStateDontRenderPortlet.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-portal/portlet/src/main/org/jboss/portal/test/portlet/jsr168/tck/portletinterface/spec/MinimizedStateDontRenderPortlet.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- MinimizedStateDontRenderPortlet.java	22 Apr 2006 17:43:09 -0000	1.2
  +++ MinimizedStateDontRenderPortlet.java	18 Aug 2006 18:01:47 -0000	1.3
  @@ -44,7 +44,7 @@
    *            of the portlet mode rendering methods"
    *
    * @author <a href="mailto:boleslaw.dawidowicz at jboss.org">Boleslaw Dawidowicz</a>
  - * @version $Revision: 1.2 $
  + * @version $Revision: 1.3 $
    */
   public class MinimizedStateDontRenderPortlet extends AbstractTestGenericPortlet
   {
  @@ -111,8 +111,7 @@
               //invoking VIEW mode
               url.setPortletMode(PortletMode.VIEW);
               url.setWindowState(WindowState.MINIMIZED);
  -            InvokeGetResult result = new InvokeGetResult();
  -            result.setURL(url.toString());
  +            InvokeGetResult result = new InvokeGetResult(url.toString());
               AbstractTestPortlet.marshall(result);
   
               //set not null ares - becouse doRenderInit is invoked for every render request
  @@ -146,8 +145,7 @@
               //invoking EDIT mode
               url.setPortletMode(PortletMode.EDIT);
               url.setWindowState(WindowState.MINIMIZED);
  -            InvokeGetResult result = new InvokeGetResult();
  -            result.setURL(url.toString());
  +            InvokeGetResult result = new InvokeGetResult(url.toString());
               AbstractTestPortlet.marshall(result);
            }
            else if (TestCaseContext.isCurrentRequestCount(2))
  @@ -156,8 +154,7 @@
               //invoking HELP mode
               url.setPortletMode(PortletMode.HELP);
               url.setWindowState(WindowState.MINIMIZED);
  -            InvokeGetResult result = new InvokeGetResult();
  -            result.setURL(url.toString());
  +            InvokeGetResult result = new InvokeGetResult(url.toString());
               AbstractTestPortlet.marshall(result);
            }
         }
  
  
  



More information about the jboss-cvs-commits mailing list