Package org.springframework.springfaces.mvc.internal.MvcViewHandler

Examples of org.springframework.springfaces.mvc.internal.MvcViewHandler.NavigationResponseUIViewRoot


    verify(this.delegate).renderView(this.context, viewToRender);
  }

  @Test
  public void shouldRenderNavigationResponse() throws Exception {
    NavigationResponseUIViewRoot viewToRender = mock(NavigationResponseUIViewRoot.class);
    this.handler.renderView(this.context, viewToRender);
    verify(viewToRender).encodeAll(this.context);
    verify(this.delegate, never()).renderView(this.context, viewToRender);
  }
View Full Code Here


  public void shouldRenderViewOnNavigationResponseEncode() throws Exception {
    SpringFacesContextSetter.setCurrentInstance(this.springFacesContext);
    View view = mock(View.class);
    Map<String, Object> model = new HashMap<String, Object>();
    ModelAndView modelAndView = new ModelAndView(view, model);
    NavigationResponseUIViewRoot viewRoot = new NavigationResponseUIViewRoot(this.viewId, null, modelAndView);
    viewRoot.encodeAll(this.context);
    verify(this.springFacesContext).render(view, model);
  }
View Full Code Here

TOP

Related Classes of org.springframework.springfaces.mvc.internal.MvcViewHandler.NavigationResponseUIViewRoot

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.