Package org.apache.shale.test.mock.data

Examples of org.apache.shale.test.mock.data.Bean


 
  public void testRenderButtonWithValueBinding() throws IOException {
    ValueBinding vb= facesContext.getApplication().
                     createValueBinding("#{ bean.name }");

    Bean bean = new Bean();
    bean.setName("Matthias");
   
    facesContext.getExternalContext().getRequestMap().put("bean",
        bean);
   
    assertEquals("Matthias", vb.getValue(facesContext).toString());
   
    vb = facesContext.getApplication().createValueBinding("#{requestScope['bean']}");
   
    Bean copy = (Bean) vb.getValue(facesContext);
    assertNotNull(copy);
    assertTrue(bean == copy);

    facesContext.getExternalContext().getRequestMap().put("org.apache.shale.bean",
            bean);
View Full Code Here

TOP

Related Classes of org.apache.shale.test.mock.data.Bean

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.