Simplify configuration of FilterInvocationDefinitionMap
This commit is contained in:
parent
9560636380
commit
aa52124d72
|
@ -241,7 +241,9 @@ public class FilterSecurityInterceptorTests extends TestCase {
|
||||||
PathBasedFilterInvocationDefinitionMap filterInvocationDefinitionSource = new PathBasedFilterInvocationDefinitionMap();
|
PathBasedFilterInvocationDefinitionMap filterInvocationDefinitionSource = new PathBasedFilterInvocationDefinitionMap();
|
||||||
filterInvocationDefinitionSource
|
filterInvocationDefinitionSource
|
||||||
.setConvertUrlToLowercaseBeforeComparison(true);
|
.setConvertUrlToLowercaseBeforeComparison(true);
|
||||||
filterInvocationDefinitionSource.setMappings(mappings);
|
FilterInvocationDefinitionMapDecorator decorator = new FilterInvocationDefinitionMapDecorator(
|
||||||
|
filterInvocationDefinitionSource);
|
||||||
|
decorator.setMappings(mappings);
|
||||||
|
|
||||||
FilterSecurityInterceptor filter = new FilterSecurityInterceptor();
|
FilterSecurityInterceptor filter = new FilterSecurityInterceptor();
|
||||||
filter.setObjectDefinitionSource(filterInvocationDefinitionSource);
|
filter.setObjectDefinitionSource(filterInvocationDefinitionSource);
|
||||||
|
|
Loading…
Reference in New Issue