WW-4380 Adds additional use case to proof that the problem is solved

This commit is contained in:
Lukasz Lenart
2014-08-04 21:54:59 +02:00
parent 1143462048
commit aa4d5b3cf4
@@ -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());
}
}
}