Package org.springframework.springfaces.mvc.navigation

Examples of org.springframework.springfaces.mvc.navigation.NavigationOutcomeResolverChain


  @Test
  public void shouldRegisterCustomNavigationViewResolverWithDefaults() throws Exception {
    StaticWebApplicationContext applicationContext = loadMvcApplicationContext("<faces:mvc-support><faces:navigation-outcome-resolvers>"
        + bean("navigationOutcomeResolverBean", CustomNavigationOutcomeResolver.class)
        + "</faces:navigation-outcome-resolvers></faces:mvc-support>");
    NavigationOutcomeResolverChain chain = applicationContext.getBean(NavigationOutcomeResolverChain.class);
    assertThat(chain.getResolvers().size(), is(3));
    assertThat(chain.getResolvers().get(0), is(CustomNavigationOutcomeResolver.class));
  }
View Full Code Here


  public void shouldRegisterCustomNavigationViewResolverWithoutDefaults() throws Exception {
    StaticWebApplicationContext applicationContext = loadMvcApplicationContext(bean(
        "navigationOutcomeResolverBean", CustomNavigationOutcomeResolver.class)
        + "<faces:mvc-support><faces:navigation-outcome-resolvers register-defaults=\"false\"><ref bean=\"navigationOutcomeResolverBean\"/>"
        + "</faces:navigation-outcome-resolvers></faces:mvc-support>");
    NavigationOutcomeResolverChain chain = applicationContext.getBean(NavigationOutcomeResolverChain.class);
    assertThat(chain.getResolvers().size(), is(1));
    assertThat(chain.getResolvers().get(0), is(CustomNavigationOutcomeResolver.class));
  }
View Full Code Here

TOP

Related Classes of org.springframework.springfaces.mvc.navigation.NavigationOutcomeResolverChain

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.