Examples of DestinationViewResolverChain


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

  @Test
  public void shouldRegisterCustomViewResolverWithDefaults() throws Exception {
    StaticWebApplicationContext applicationContext = loadMvcApplicationContext("<faces:mvc-support><faces:destination-view-resolvers>"
        + bean("viewResolverBean", CustomDestinationViewResolver.class)
        + "</faces:destination-view-resolvers></faces:mvc-support>");
    DestinationViewResolverChain chain = applicationContext.getBean(DestinationViewResolverChain.class);
    assertThat(chain.getResolvers().size(), is(3));
    assertThat(chain.getResolvers().get(0), is(CustomDestinationViewResolver.class));
  }
View Full Code Here

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

  public void shouldRegisterCustomViewResolverWithoutDefaults() throws Exception {
    StaticWebApplicationContext applicationContext = loadMvcApplicationContext(bean("viewResolverBean",
        CustomDestinationViewResolver.class)
        + "<faces:mvc-support><faces:destination-view-resolvers register-defaults=\"false\"><ref bean=\"viewResolverBean\"/>"
        + "</faces:destination-view-resolvers></faces:mvc-support>");
    DestinationViewResolverChain chain = applicationContext.getBean(DestinationViewResolverChain.class);
    assertThat(chain.getResolvers().size(), is(1));
    assertThat(chain.getResolvers().get(0), is(CustomDestinationViewResolver.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.