use of jodd.madvoc.ActionConfig in project jodd by oblac.
the class ActionsManagerTest method testActionPathMacros1.
@Test
public void testActionPathMacros1() {
WebApplication webapp = new WebApplication(true);
webapp.registerMadvocComponents();
ActionsManager actionsManager = webapp.getComponent(ActionsManager.class);
actionsManager.register(FooAction.class, "one", new ActionDef("/${one}"));
ActionConfig actionConfig = actionsManager.lookup("/foo", null);
assertNotNull(actionConfig);
actionConfig = actionsManager.lookup("/foo/boo", null);
assertNull(actionConfig);
actionConfig = actionsManager.lookup("/foo/boo/zoo", null);
assertNull(actionConfig);
}
Aggregations