Examples of NavigationOutcomeResolverChain


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

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

  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
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.