use of org.springframework.security.access.expression.method.MethodSecurityExpressionHandler in project spring-security by spring-projects.
the class PostFilterAuthorizationMethodInterceptorTests method setExpressionHandlerWhenNotNullThenSetsExpressionHandler.
@Test
public void setExpressionHandlerWhenNotNullThenSetsExpressionHandler() {
MethodSecurityExpressionHandler expressionHandler = new DefaultMethodSecurityExpressionHandler();
PostFilterAuthorizationMethodInterceptor advice = new PostFilterAuthorizationMethodInterceptor();
advice.setExpressionHandler(expressionHandler);
assertThat(advice).extracting("expressionHandler").isEqualTo(expressionHandler);
}
Aggregations