|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.rice.krad.web.controller.UifControllerHandlerInterceptorTest
public class UifControllerHandlerInterceptorTest
Test cases for UifControllerHandlerInterceptor
.
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 |
---|
public UifControllerHandlerInterceptorTest()
Method Detail |
---|
public void setUp() throws Exception
Exception
public void testCheckHandlerMethodAccess() throws Exception
Exception
protected 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 result
Exception
protected org.springframework.web.method.HandlerMethod getHandlerMethod(String methodToCall)
methodToCall
- method on controller to build handler for
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |