Simplify configuration of FilterInvocationDefinitionMap

This commit is contained in:
Carlos Sanchez 2006-07-05 22:00:21 +00:00
parent 9560636380
commit aa52124d72
1 changed files with 3 additions and 1 deletions

View File

@ -241,7 +241,9 @@ public class FilterSecurityInterceptorTests extends TestCase {
PathBasedFilterInvocationDefinitionMap filterInvocationDefinitionSource = new PathBasedFilterInvocationDefinitionMap();
filterInvocationDefinitionSource
.setConvertUrlToLowercaseBeforeComparison(true);
filterInvocationDefinitionSource.setMappings(mappings);
FilterInvocationDefinitionMapDecorator decorator = new FilterInvocationDefinitionMapDecorator(
filterInvocationDefinitionSource);
decorator.setMappings(mappings);
FilterSecurityInterceptor filter = new FilterSecurityInterceptor();
filter.setObjectDefinitionSource(filterInvocationDefinitionSource);