Examples of RichFacesClient


Examples of org.jboss.jsfunit.richclient.RichFacesClient

  public void setUp() throws IOException
  {
    this.jsfSession = JSFSessionFactory.makeSession("/richfaces/tree.jsf");
    this.client = jsfSession.getJSFClientSession();
    this.richClient = new RichFacesClient(client);
    this.server = jsfSession.getJSFServerSession();
  }
View Full Code Here

Examples of org.jboss.jsfunit.richclient.RichFacesClient

{
   public void testNumberSliders() throws IOException
   {
      JSFSession jsfSession = JSFSessionFactory.makeSession("/richfaces/inputNumberSlider.jsf");
      JSFClientSession client = jsfSession.getJSFClientSession();
      RichFacesClient ajaxClient = new RichFacesClient(client);
      JSFServerSession server = jsfSession.getJSFServerSession();
     
      ajaxClient.setInputNumberSlider("slider1", "45");
      ajaxClient.setInputNumberSlider("slider2", "55");
      ajaxClient.setInputNumberSlider("slider3", "945");
      client.click("submit");
     
      String value = (String)server.getComponentValue("slider1");
      assertEquals("45", value);
      value = (String)server.getComponentValue("slider2");
View Full Code Here

Examples of org.jboss.jsfunit.richclient.RichFacesClient

          
   public void setUp() throws IOException
   {
     this.jsfSession = JSFSessionFactory.makeSession("/richfaces/scrollableDataTable.jsf");
     this.client = jsfSession.getJSFClientSession();
     this.ajaxClient = new RichFacesClient(this.client);
     this.server = jsfSession.getJSFServerSession();
   }
View Full Code Here

Examples of org.jboss.jsfunit.richclient.RichFacesClient

{
   public void testDataFilterSlider() throws IOException
   {
      JSFSession jsfSession = JSFSessionFactory.makeSession("/richfaces/dataFilterSlider.jsf");
      JSFClientSession client = jsfSession.getJSFClientSession();
      RichFacesClient richClient = new RichFacesClient(client);
     
      richClient.setDataFilterSlider("slider_1", "60000")

      // The data table is built with random data, so there's nothing to
      // reliably assert about it except the make of the car.
      Element element = client.getElement("form1:carList:0:make");
      assertEquals("Ford", element.getTextContent());
View Full Code Here

Examples of org.jboss.jsfunit.richclient.RichFacesClient

  public void setUp() throws IOException
  {
    this.jsfSession = JSFSessionFactory.makeSession("/richfaces/toolTip.jsf");
    this.client = jsfSession.getJSFClientSession();
    this.ajaxClient = new RichFacesClient(client);
    this.server = jsfSession.getJSFServerSession();
  }
View Full Code Here

Examples of org.jboss.jsfunit.richclient.RichFacesClient

  
   public void setUp() throws IOException
   {
      this.jsfSession = JSFSessionFactory.makeSession("/richfaces/inplaceInput.jsf");
      this.client = jsfSession.getJSFClientSession();
      this.ajaxClient = new RichFacesClient(client);
      this.server = jsfSession.getJSFServerSession();
   }
View Full Code Here

Examples of org.jboss.jsfunit.richclient.RichFacesClient

   public void testNumberSpinners() throws IOException
   {
      JSFSession jsfSession = JSFSessionFactory.makeSession("/richfaces/inputNumberSpinner.jsf");
      JSFServerSession server = jsfSession.getJSFServerSession();
      JSFClientSession client = jsfSession.getJSFClientSession();
      RichFacesClient ajaxClient = new RichFacesClient(client);
     
      ajaxClient.setInputNumberSpinner("spinner1", "44");
      ajaxClient.clickInputNumberSpinnerUp("spinner1");
      client.click("submit");
     
      String value = (String)server.getComponentValue("spinner1");
      assertEquals("45", value);
     
      ajaxClient.clickInputNumberSpinnerDown("spinner2");
      client.click("submit");
     
      value = (String)server.getComponentValue("spinner2");
      assertEquals("40", value);
   }
View Full Code Here

Examples of org.jboss.jsfunit.richclient.RichFacesClient

{
   public void testCalendar() throws IOException, SAXException
   {
      JSFSession jsfSession = JSFSessionFactory.makeSession("/richfaces/calendar.jsf");
      JSFClientSession client = jsfSession.getJSFClientSession();
      RichFacesClient ajaxClient = new RichFacesClient(client);
      JSFServerSession server = jsfSession.getJSFServerSession();
     
      client.click("pattern4"); // "MMM d, yyyy"
      ajaxClient.setCalendarValue("myCalendar", "Oct 31, 2007");
     
      client.click("german");
      client.click("pattern4"); // "MMM d, yyyy"
     
      Date date = (Date)server.getManagedBeanValue("#{calendarBean.selectedDate}");
View Full Code Here

Examples of org.jboss.jsfunit.richclient.RichFacesClient

          
   public void setUp() throws IOException
   {
     this.jsfSession = JSFSessionFactory.makeSession("/richfaces/comboBox.jsf");
     this.client = jsfSession.getJSFClientSession();
     this.ajaxClient = new RichFacesClient(this.client);
     this.server = jsfSession.getJSFServerSession();
   }
View Full Code Here

Examples of org.jboss.jsfunit.richclient.RichFacesClient

 
  public void testPoll_OnOffTest() throws InterruptedException, IOException
  {
    JSFSession jsfSession = JSFSessionFactory.makeSession("/richfaces/poll.jsf");
    JSFClientSession client = jsfSession.getJSFClientSession();
    RichFacesClient ajaxClient = new RichFacesClient(client);
    JSFServerSession server = jsfSession.getJSFServerSession();

    // Get the backing bean to check activity
    PollBean pb = (PollBean)server.getManagedBeanValue(_POLLBEAN);
    assertNotNull("Can't find PollBean",pb);
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.