* @throws DuplicateResourceNameException
* @throws NoPermissionException
*/
@SuppressWarnings("unchecked")
public void testViewAsIcons() throws DuplicateResourceNameException, NoPermissionException {
StrutsExecutionStep executionStep = new StrutsExecutionStep(getRequestPath(), "display", getForwardPath());
executionStep.addRequestParameter("actionTarget", "viewIcons");
executeStep(executionStep);
AbstractResourcesForm<R> resourcesForm = (AbstractResourcesForm<R>) getActionForm();
assertEquals("Selected view should be list", AbstractResourcesForm.ICONS_VIEW, resourcesForm.getSelectedView());
}