Package org.strecks.navigate.factory

Examples of org.strecks.navigate.factory.DefaultNavigationHandlerFactory


  }

  @Test
  public void testGetNavigationHandler() throws SecurityException, NoSuchMethodException
  {
    NavigationHandlerInfo info = new NavigationHandlerInfo(new DefaultNavigationHandlerFactory(),
        ActionWithNavigate.class.getMethod("nextPage"));

    NavigationHandler navigationHandler = navigationReader.getNavigationHandler(ActionWithNavigate.class, info);
    assert navigationHandler instanceof PageNavigationHandler;
  }
View Full Code Here


    SimpleControllerAction action = new SimpleControllerAction();
    ActionWithNavigate bean = new ActionWithNavigate();

    NavigationHolder navigationHolder = new NavigationHolder(new PageNavigationHandler(),
        new DefaultNavigationHandlerFactory(), bean.getClass().getMethod("nextPage"));

    action.setNavigationHolder(navigationHolder);

    ViewAdapter viewAdapter = action.findActionForward(bean, new TestContextImpl(request));
View Full Code Here

    SimpleControllerAction action = new SimpleControllerAction();
    ActionWithNullReturningNavigate bean = new ActionWithNullReturningNavigate();

    NavigationHolder navigationHolder = new NavigationHolder(new PageNavigationHandler(),
        new DefaultNavigationHandlerFactory(), bean.getClass().getMethod("nextPage"));

    action.setNavigationHolder(navigationHolder);

    assert null == action.findActionForward(bean, new TestContextImpl(request));
View Full Code Here

TOP

Related Classes of org.strecks.navigate.factory.DefaultNavigationHandlerFactory

Copyright © 2018 www.massapicom. 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.