public class AdminPagePortletJspBeanTest
extends fr.paris.lutece.test.LuteceTestCase
Modifier and Type | Class and Description |
---|---|
static class |
AdminPagePortletJspBeanTest.TestPortletHome
The test portlet home
|
Constructor and Description |
---|
AdminPagePortletJspBeanTest() |
Modifier and Type | Method and Description |
---|---|
void |
testDoModifyPortletStatus()
Test when all conditions are met
|
void |
testDoModifyPortletStatusInexistantPortletID()
Test when the portlet does not exist
|
void |
testDoModifyPortletStatusInvalidCSRFToken()
Test when invalid token
|
void |
testDoModifyPortletStatusInvalidPortletID()
Test when the portlet_id is invalid
|
void |
testDoModifyPortletStatusInvalidStatus()
Test when the status is invalid
|
void |
testDoModifyPortletStatusNoCSRFToken()
Test when no token
|
void |
testDoModifyPortletStatusNoParam()
Test when no parameter given
|
void |
testDoModifyPortletStatusNoPortletParam()
Test when no portlet_id parameter given
|
void |
testDoModifyPortletStatusNoRight()
Test when the user does not have the right ro manage portlets
|
void |
testDoModifyPortletStatusNoStatusParam()
Test when no status parameter given
|
void |
testDoRemovePortlet()
Test when all conditions are met
|
void |
testDoRemovePortletInexistantPortletID()
Test when the portlet does not exist
|
void |
testDoRemovePortletInvalidCSRFToken()
Test when invalid CSRF token
|
void |
testDoRemovePortletInvalidPortletID()
Test when the portlet_id is invalid
|
void |
testDoRemovePortletNoCSRFToken()
Test when no CSRF token
|
void |
testDoRemovePortletNoParam()
Test when no parameter given
|
void |
testDoRemovePortletNoRight()
Test when the user does not have the right ro manage portlets
|
void |
testGetModifyPortletStatus()
Test when all conditions are met
|
void |
testGetModifyPortletStatusInexistantPortletID()
Test when the portlet does not exist
|
void |
testGetModifyPortletStatusInvalidPortletID()
Test when the portlet_id is invalid
|
void |
testGetModifyPortletStatusInvalidStatus()
Test when the status is invalid
|
void |
testGetModifyPortletStatusNoParam()
Test when no parameter given
|
void |
testGetModifyPortletStatusNoPortletParam()
Test when no portlet_id parameter given
|
void |
testGetModifyPortletStatusNoRight()
Test when the user does not have the right ro manage portlets
|
void |
testGetModifyPortletStatusNoStatusParam()
Test when no status parameter given
|
void |
testGetRemovePortlet()
Test when all conditions are met
|
void |
testGetRemovePortletInexistantPortletID()
Test when the portlet does not exist
|
void |
testGetRemovePortletInvalidPortletID()
Test when the portlet_id is invalid
|
void |
testGetRemovePortletNoParam()
Test when no parameter given
|
void |
testGetRemovePortletNoRight()
Test when the user does not have the right ro manage portlets
|
void |
testGetRemovePortletWithAlias()
Test when all conditions are met
|
void |
testGetRemovePortletWithPortletRemovalListener()
Test when all conditions are met
|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, setName, toString
public void testGetModifyPortletStatusNoParam() throws fr.paris.lutece.portal.service.admin.AccessDeniedException
fr.paris.lutece.portal.service.admin.AccessDeniedException
- should not happenpublic void testGetModifyPortletStatusNoStatusParam() throws fr.paris.lutece.portal.service.admin.AccessDeniedException
fr.paris.lutece.portal.service.admin.AccessDeniedException
- should not happenpublic void testGetModifyPortletStatusNoPortletParam() throws fr.paris.lutece.portal.service.admin.AccessDeniedException
fr.paris.lutece.portal.service.admin.AccessDeniedException
- should not happenpublic void testGetModifyPortletStatusInvalidStatus() throws fr.paris.lutece.portal.service.admin.AccessDeniedException
fr.paris.lutece.portal.service.admin.AccessDeniedException
- should not happenpublic void testGetModifyPortletStatusInvalidPortletID() throws fr.paris.lutece.portal.service.admin.AccessDeniedException
fr.paris.lutece.portal.service.admin.AccessDeniedException
- should not happenpublic void testGetModifyPortletStatusInexistantPortletID() throws fr.paris.lutece.portal.service.admin.AccessDeniedException
fr.paris.lutece.portal.service.admin.AccessDeniedException
- should not happenpublic void testGetModifyPortletStatusNoRight()
public void testGetModifyPortletStatus() throws fr.paris.lutece.portal.service.admin.AccessDeniedException
fr.paris.lutece.portal.service.admin.AccessDeniedException
- should not happenpublic void testDoModifyPortletStatusNoParam() throws fr.paris.lutece.portal.service.admin.AccessDeniedException
fr.paris.lutece.portal.service.admin.AccessDeniedException
- should not happenpublic void testDoModifyPortletStatusNoStatusParam() throws fr.paris.lutece.portal.service.admin.AccessDeniedException
fr.paris.lutece.portal.service.admin.AccessDeniedException
- should not happenpublic void testDoModifyPortletStatusNoPortletParam() throws fr.paris.lutece.portal.service.admin.AccessDeniedException
fr.paris.lutece.portal.service.admin.AccessDeniedException
- should not happenpublic void testDoModifyPortletStatusInvalidStatus() throws fr.paris.lutece.portal.service.admin.AccessDeniedException
fr.paris.lutece.portal.service.admin.AccessDeniedException
- should not happenpublic void testDoModifyPortletStatusInvalidPortletID() throws fr.paris.lutece.portal.service.admin.AccessDeniedException
fr.paris.lutece.portal.service.admin.AccessDeniedException
- should not happenpublic void testDoModifyPortletStatusInexistantPortletID() throws fr.paris.lutece.portal.service.admin.AccessDeniedException
fr.paris.lutece.portal.service.admin.AccessDeniedException
- should not happenpublic void testDoModifyPortletStatusNoRight()
public void testDoModifyPortletStatus() throws fr.paris.lutece.portal.service.admin.AccessDeniedException
fr.paris.lutece.portal.service.admin.AccessDeniedException
- should not happenpublic void testDoModifyPortletStatusNoCSRFToken() throws fr.paris.lutece.portal.service.admin.AccessDeniedException
fr.paris.lutece.portal.service.admin.AccessDeniedException
- should not happenpublic void testDoModifyPortletStatusInvalidCSRFToken() throws fr.paris.lutece.portal.service.admin.AccessDeniedException
fr.paris.lutece.portal.service.admin.AccessDeniedException
- should not happenpublic void testGetRemovePortletNoParam() throws fr.paris.lutece.portal.service.admin.AccessDeniedException
fr.paris.lutece.portal.service.admin.AccessDeniedException
- should not happenpublic void testGetRemovePortletInvalidPortletID() throws fr.paris.lutece.portal.service.admin.AccessDeniedException
fr.paris.lutece.portal.service.admin.AccessDeniedException
- should not happenpublic void testGetRemovePortletInexistantPortletID() throws fr.paris.lutece.portal.service.admin.AccessDeniedException
fr.paris.lutece.portal.service.admin.AccessDeniedException
- should not happenpublic void testGetRemovePortletNoRight()
public void testGetRemovePortlet() throws fr.paris.lutece.portal.service.admin.AccessDeniedException
fr.paris.lutece.portal.service.admin.AccessDeniedException
- should not happenpublic void testGetRemovePortletWithAlias() throws fr.paris.lutece.portal.service.admin.AccessDeniedException
fr.paris.lutece.portal.service.admin.AccessDeniedException
- should not happenpublic void testGetRemovePortletWithPortletRemovalListener() throws fr.paris.lutece.portal.service.admin.AccessDeniedException
fr.paris.lutece.portal.service.admin.AccessDeniedException
- should not happenpublic void testDoRemovePortletNoParam() throws fr.paris.lutece.portal.service.admin.AccessDeniedException
fr.paris.lutece.portal.service.admin.AccessDeniedException
- should not happenpublic void testDoRemovePortletInvalidPortletID() throws fr.paris.lutece.portal.service.admin.AccessDeniedException
fr.paris.lutece.portal.service.admin.AccessDeniedException
- should not happenpublic void testDoRemovePortletInexistantPortletID() throws fr.paris.lutece.portal.service.admin.AccessDeniedException
fr.paris.lutece.portal.service.admin.AccessDeniedException
- should not happenpublic void testDoRemovePortletNoRight()
public void testDoRemovePortlet() throws fr.paris.lutece.portal.service.admin.AccessDeniedException
fr.paris.lutece.portal.service.admin.AccessDeniedException
- should not happenpublic void testDoRemovePortletNoCSRFToken() throws fr.paris.lutece.portal.service.admin.AccessDeniedException
fr.paris.lutece.portal.service.admin.AccessDeniedException
- should not happenpublic void testDoRemovePortletInvalidCSRFToken() throws fr.paris.lutece.portal.service.admin.AccessDeniedException
fr.paris.lutece.portal.service.admin.AccessDeniedException
- should not happenCopyright © 2020 City of Paris. All rights reserved.