WW-4903 Extends test of empty prefix

This commit is contained in:
Lukasz Lenart
2017-12-31 15:36:59 +01:00
parent 7116ac8801
commit 7cdc319b41
@@ -42,6 +42,16 @@ public class PrefixBasedActionProxyFactoryTest extends StrutsInternalTestCase {
assertTrue(proxy2 instanceof StrutsActionProxy);
}
public void testEmptyPrefix() throws Exception {
initFactory(":prefix1");
ActionProxy proxy1 = factory.createActionProxy("/ns1", "", "", Collections.<String, Object>emptyMap(), false, true);
assertTrue(proxy1 instanceof Prefix1ActionProxy);
ActionProxy proxy2 = factory.createActionProxy("/ns2", "", "", Collections.<String, Object>emptyMap(), false, true);
assertTrue(proxy2 instanceof Prefix1ActionProxy);
}
@Override
public void setUp() throws Exception {
ConfigurationProvider[] providers = new ConfigurationProvider[]{