Search in sources :

Example 6 with DelegationActionResponse

use of org.apereo.portal.api.portlet.DelegationActionResponse in project uPortal by Jasig.

the class DelegationActionResponseTest method testGetRedirectLocationNull.

@Test
public void testGetRedirectLocationNull() {
    delegationActionResponse = new DelegationActionResponse(null, null, null, null);
    Assert.assertNull(delegationActionResponse.getRedirectLocation());
}
Also used : DelegationActionResponse(org.apereo.portal.api.portlet.DelegationActionResponse) Test(org.junit.Test)

Example 7 with DelegationActionResponse

use of org.apereo.portal.api.portlet.DelegationActionResponse in project uPortal by Jasig.

the class DelegationActionResponseTest method testGetRedirectLocation.

@Test
public void testGetRedirectLocation() {
    delegationActionResponse = new DelegationActionResponse(null, "redirect:/index.html", "renderparam");
    Assert.assertEquals("redirect:/index.html", delegationActionResponse.getRedirectLocation());
}
Also used : DelegationActionResponse(org.apereo.portal.api.portlet.DelegationActionResponse) Test(org.junit.Test)

Aggregations

DelegationActionResponse (org.apereo.portal.api.portlet.DelegationActionResponse)7 Test (org.junit.Test)5 IPortletWindowId (org.apereo.portal.portlet.om.IPortletWindowId)2 ActionRequest (javax.portlet.ActionRequest)1 ActionResponse (javax.portlet.ActionResponse)1 PortletMode (javax.portlet.PortletMode)1 WindowState (javax.portlet.WindowState)1 HttpServletRequest (javax.servlet.http.HttpServletRequest)1 HttpServletResponse (javax.servlet.http.HttpServletResponse)1 DelegateState (org.apereo.portal.api.portlet.DelegateState)1 PortletDelegationDispatcher (org.apereo.portal.api.portlet.PortletDelegationDispatcher)1 IPerson (org.apereo.portal.security.IPerson)1 IPortalActionUrlBuilder (org.apereo.portal.url.IPortalActionUrlBuilder)1 IPortletUrlBuilder (org.apereo.portal.url.IPortletUrlBuilder)1