mirror of
https://github.com/apache/struts.git
synced 2026-08-31 19:35:40 +00:00
WW-4903 Extends test of empty prefix
This commit is contained in:
@@ -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[]{
|
||||
|
||||
Reference in New Issue
Block a user