Examples of registerMadvocComponents()


Examples of jodd.madvoc.WebApplication.registerMadvocComponents()

public class MadvocParamsInjectorTest {

  @Test
  public void testInjection() {
    WebApplication webapp = new WebApplication(true);
    webapp.registerMadvocComponents();

    PetiteContainer madpc = (PetiteContainer) webapp.getComponent(WebApplication.MADVOC_CONTAINER_NAME);
    MadvocConfig madvocConfig = new MadvocConfig();

    String baseName = FooBean.class.getName();
View Full Code Here

Examples of jodd.madvoc.WebApplication.registerMadvocComponents()

public class ServletDispatcherResultTest {

  @Test
  public void testServletDispatcherLookup() throws Exception {
    WebApplication webapp = new WebApplication(true);
    webapp.registerMadvocComponents();

    final List<String> targets = new ArrayList<String>();

    ServletDispatcherResult sdr = new ServletDispatcherResult() {
      @Override
View Full Code Here

Examples of jodd.madvoc.WebApplication.registerMadvocComponents()

  }

  @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);
View Full Code Here

Examples of jodd.madvoc.WebApplication.registerMadvocComponents()

  }

  @Test
  public void testActionPathMacros2() {
    WebApplication webapp = new WebApplication(true);
    webapp.registerMadvocComponents();
    ActionsManager actionsManager = webapp.getComponent(ActionsManager.class);

    actionsManager.register(FooAction.class, "one", new ActionDef("/${one}"));
    actionsManager.register(FooAction.class, "two", new ActionDef("/xxx-${two}"));
View Full Code Here

Examples of jodd.madvoc.WebApplication.registerMadvocComponents()

  }

  @Test
  public void testActionPathMacros3() {
    WebApplication webapp = new WebApplication(true);
    webapp.registerMadvocComponents();
    ActionsManager actionsManager = webapp.getComponent(ActionsManager.class);

    actionsManager.register(FooAction.class, "one", new ActionDef("/yyy-${one}"));
    actionsManager.register(FooAction.class, "two", new ActionDef("/xxx-${two}"));
View Full Code Here

Examples of jodd.madvoc.WebApplication.registerMadvocComponents()

  }

  @Test
  public void testActionPathMacros4() {
    WebApplication webapp = new WebApplication(true);
    webapp.registerMadvocComponents();
    ActionsManager actionsManager = webapp.getComponent(ActionsManager.class);

    actionsManager.register(FooAction.class, "one", new ActionDef("/${one}"));
    actionsManager.register(FooAction.class, "one", new ActionDef("/dummy"));    // no macro
    actionsManager.register(FooAction.class, "two", new ActionDef("/${two}/${three}"));
View Full Code Here

Examples of jodd.madvoc.WebApplication.registerMadvocComponents()

  }

  @Test
  public void testActionPathMacrosRegexp() {
    WebApplication webapp = new WebApplication(true);
    webapp.registerMadvocComponents();
    ActionsManager actionsManager = webapp.getComponent(ActionsManager.class);

    MadvocConfig madvocConfig = webapp.getComponent(MadvocConfig.class);
    madvocConfig.setPathMacroClass(RegExpPathMacros.class);
View Full Code Here

Examples of jodd.madvoc.WebApplication.registerMadvocComponents()

  }

  @Test
  public void testActionPathMacrosWildcard() {
    WebApplication webapp = new WebApplication(true);
    webapp.registerMadvocComponents();
    ActionsManager actionsManager = webapp.getComponent(ActionsManager.class);

    MadvocConfig madvocConfig = webapp.getComponent(MadvocConfig.class);
    madvocConfig.setPathMacroClass(WildcardPathMacros.class);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.