File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
main/java/org/springframework/test/web/servlet/setup
test/java/org/springframework/test/web/servlet/setup Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -49,9 +49,9 @@ final class MockMvcFilterDecorator implements Filter {
49
49
50
50
private static final String ALL_MAPPING_PATTERN = "*" ;
51
51
52
- private static final String EXTENSION_MAPPING_PATTERN = ALL_MAPPING_PATTERN + " ." ;
52
+ private static final String EXTENSION_MAPPING_PATTERN = "* ." ;
53
53
54
- private static final String PATH_MAPPING_PATTERN = "/" + ALL_MAPPING_PATTERN ;
54
+ private static final String PATH_MAPPING_PATTERN = "/*" ;
55
55
56
56
private final Filter delegate ;
57
57
Original file line number Diff line number Diff line change @@ -90,21 +90,25 @@ public void matchExactEmpty() throws Exception {
90
90
91
91
@ Test
92
92
public void matchPathMappingAllFolder () throws Exception {
93
+ assertFilterInvoked ("/test/this" , "*" );
93
94
assertFilterInvoked ("/test/this" , "/*" );
94
95
}
95
96
96
97
@ Test
97
98
public void matchPathMappingAll () throws Exception {
98
99
assertFilterInvoked ("/test" , "*" );
100
+ assertFilterInvoked ("/test" , "/*" );
99
101
}
100
102
101
103
@ Test
102
104
public void matchPathMappingAllContextRoot () throws Exception {
105
+ assertFilterInvoked ("" , "*" );
103
106
assertFilterInvoked ("" , "/*" );
104
107
}
105
108
106
109
@ Test
107
110
public void matchPathMappingContextRootAndSlash () throws Exception {
111
+ assertFilterInvoked ("/" , "*" );
108
112
assertFilterInvoked ("/" , "/*" );
109
113
}
110
114
You can’t perform that action at this time.
0 commit comments