mirror of
https://github.com/apache/struts.git
synced 2026-08-06 15:17:00 +00:00
WW-4380 Adds additional use case to proof that the problem is solved
This commit is contained in:
+17
@@ -57,4 +57,21 @@ public class DefaultExcludedPatternsCheckerTest extends XWorkTestCase {
|
||||
}
|
||||
}
|
||||
|
||||
public void testParamWithClassInName() throws Exception {
|
||||
// given
|
||||
List<String> properParams = new ArrayList<String>();
|
||||
properParams.add("eventClass");
|
||||
properParams.add("form.eventClass");
|
||||
|
||||
ExcludedPatternsChecker checker = new DefaultExcludedPatternsChecker();
|
||||
|
||||
for (String properParam : properParams) {
|
||||
// when
|
||||
ExcludedPatternsChecker.IsExcluded actual = checker.isExcluded(properParam);
|
||||
|
||||
// then
|
||||
assertFalse("Param 'eventClass' is excluded!", actual.isExcluded());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user