public class UifControllerHandlerInterceptorTest extends Object
UifControllerHandlerInterceptor.| Constructor and Description |
|---|
UifControllerHandlerInterceptorTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assertMethodAccess(String failureMessage,
String methodToCall,
boolean access)
|
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.
|
public UifControllerHandlerInterceptorTest()
public void testCheckHandlerMethodAccess() throws Exception
Exceptionprotected void assertMethodAccess(String failureMessage, String methodToCall, boolean access) throws Exception
UifControllerHandlerInterceptor.checkHandlerMethodAccess(javax.servlet.http.HttpServletRequest, java.lang.Object).failureMessage - message to show if assert failsmethodToCall - controller method to check access foraccess - expected access resultExceptionprotected org.springframework.web.method.HandlerMethod getHandlerMethod(String methodToCall)
methodToCall - method on controller to build handler forCopyright © 2005–2015 The Kuali Foundation. All rights reserved.