org.jasig.portlet.test.mvc.tests
Class PortletPrefrencesTest

java.lang.Object
  extended by org.jasig.portlet.test.mvc.tests.BasePortletTest
      extended by org.jasig.portlet.test.mvc.tests.PortletPrefrencesTest
All Implemented Interfaces:
PortletTest, org.springframework.beans.factory.BeanNameAware

@Controller(value="preferencesTest")
@RequestMapping(value={"VIEW","EDIT","HELP","ABOUT"},
                params="currentTest=preferencesTest")
public class PortletPrefrencesTest
extends BasePortletTest

Version:
$Revision$
Author:
Eric Dalquist

Field Summary
 
Fields inherited from class org.jasig.portlet.test.mvc.tests.BasePortletTest
logger
 
Constructor Summary
PortletPrefrencesTest()
           
 
Method Summary
 String getTestName()
           
protected  org.springframework.web.portlet.ModelAndView handleRenderRequestInternal(javax.portlet.RenderRequest request)
           
 void noopAction()
           
 void setEmptyAndNullPrefernces(javax.portlet.PortletRequest request)
           
protected  void testPreference(javax.portlet.PortletPreferences preferences, Map<String,Object> model, String pref, String expectedValue, String[] expectedValues)
           
 
Methods inherited from class org.jasig.portlet.test.mvc.tests.BasePortletTest
getTestKey, setBeanName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortletPrefrencesTest

public PortletPrefrencesTest()
Method Detail

getTestName

public String getTestName()

noopAction

@ActionMapping
public void noopAction()

setEmptyAndNullPrefernces

@ActionMapping(value="setEmptyAndNull")
public void setEmptyAndNullPrefernces(javax.portlet.PortletRequest request)
                               throws javax.portlet.ReadOnlyException,
                                      javax.portlet.ValidatorException,
                                      IOException
Throws:
javax.portlet.ReadOnlyException
javax.portlet.ValidatorException
IOException

handleRenderRequestInternal

@RenderMapping
protected org.springframework.web.portlet.ModelAndView handleRenderRequestInternal(javax.portlet.RenderRequest request)
                                                                            throws Exception
Throws:
Exception

testPreference

protected void testPreference(javax.portlet.PortletPreferences preferences,
                              Map<String,Object> model,
                              String pref,
                              String expectedValue,
                              String[] expectedValues)


Copyright © 2012 Jasig. All Rights Reserved.