org.kuali.rice.krad.web.controller
Class UifControllerHandlerInterceptorTest

java.lang.Object
  extended by org.kuali.rice.krad.web.controller.UifControllerHandlerInterceptorTest

public class UifControllerHandlerInterceptorTest
extends Object

Test cases for UifControllerHandlerInterceptor.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
UifControllerHandlerInterceptorTest()
           
 
Method Summary
protected  void assertMethodAccess(String failureMessage, String methodToCall, boolean access)
          Helper method for testing UifControllerHandlerInterceptor.checkHandlerMethodAccess(javax.servlet.http.HttpServletRequest, java.lang.Object).
protected  org.springframework.web.method.HandlerMethod getHandlerMethod(String methodToCall)
          Builds instance of a handler method (using the controller) for the given method to call.
 void setUp()
           
 void testCheckHandlerMethodAccess()
          Tests method access is being granted where annotations are present and the method is within the view configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UifControllerHandlerInterceptorTest

public UifControllerHandlerInterceptorTest()
Method Detail

setUp

public void setUp()
           throws Exception
Throws:
Exception

testCheckHandlerMethodAccess

public void testCheckHandlerMethodAccess()
                                  throws Exception
Tests method access is being granted where annotations are present and the method is within the view configuration.

Throws:
Exception

assertMethodAccess

protected void assertMethodAccess(String failureMessage,
                                  String methodToCall,
                                  boolean access)
                           throws Exception
Helper method for testing UifControllerHandlerInterceptor.checkHandlerMethodAccess(javax.servlet.http.HttpServletRequest, java.lang.Object).

Parameters:
failureMessage - message to show if assert fails
methodToCall - controller method to check access for
access - expected access result
Throws:
Exception

getHandlerMethod

protected org.springframework.web.method.HandlerMethod getHandlerMethod(String methodToCall)
Builds instance of a handler method (using the controller) for the given method to call.

Parameters:
methodToCall - method on controller to build handler for
Returns:
handler method instance


Copyright © 2005–2014 The Kuali Foundation. All rights reserved.