[jboss-cvs] jboss-portal/portlet/src/main/org/jboss/portal/test/portlet/jsr168/tck/portletinterface/spec ...
Julien Viet
julien at jboss.com
Sun Aug 20 18:53:51 EDT 2006
User: julien
Date: 06/08/20 18:53:51
Modified: portlet/src/main/org/jboss/portal/test/portlet/jsr168/tck/portletinterface/spec
Tag: JBoss_Portal_Branch_2_4
ExceptionsDuringRequestHandlingControllerPortlet.java
MinimizedStateDontRenderPortlet.java
Log:
backport of JBPORTAL-984 to 2.4.1 : Provice access to HTTP headers in request dispatch to a servlet from a portlet.
Revision Changes Path
No revision
No revision
1.2.2.1 +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.2.2.1
diff -u -b -r1.2 -r1.2.2.1
--- ExceptionsDuringRequestHandlingControllerPortlet.java 22 Apr 2006 17:43:09 -0000 1.2
+++ ExceptionsDuringRequestHandlingControllerPortlet.java 20 Aug 2006 22:53:51 -0000 1.2.2.1
@@ -55,7 +55,7 @@
*
*
* @author <a href="mailto:boleslaw.dawidowicz at jboss.org">Boleslaw Dawidowicz</a>
- * @version $Revision: 1.2 $
+ * @version $Revision: 1.2.2.1 $
*/
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.2.2.1 +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.2.2.1
diff -u -b -r1.2 -r1.2.2.1
--- MinimizedStateDontRenderPortlet.java 22 Apr 2006 17:43:09 -0000 1.2
+++ MinimizedStateDontRenderPortlet.java 20 Aug 2006 22:53:51 -0000 1.2.2.1
@@ -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.2.2.1 $
*/
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