Examples of FacesPage


Examples of com.steeplesoft.jsf.facestester.FacesPage

        assertEquals(entriesForPage.size(), 3);
    }

    @Test(groups = {"integration", "scenario"})
    public void shouldHaveLinksDisabledToFirstAndPreviousPage() throws Exception {
        FacesPage homePage = tester.requestPage(HOME_PAGE);
        FacesComponent first = homePage.getComponentWithId("first");
        assertEquals(first.getValueAsString(), "First Page");
        assertTrue(Boolean.valueOf(String.valueOf(first.getWrappedComponent().getAttributes().get("disabled"))));
        FacesComponent previous = homePage.getComponentWithId("previous");
        assertEquals(previous.getValueAsString(), "Newer Entries");
        assertTrue(Boolean.valueOf(String.valueOf(previous.getWrappedComponent().getAttributes().get("disabled"))));
    }
View Full Code Here

Examples of com.steeplesoft.jsf.facestester.FacesPage

        assertTrue(Boolean.valueOf(String.valueOf(previous.getWrappedComponent().getAttributes().get("disabled"))));
    }

    @Test
    public void shouldDisplaySearchForm() throws Exception {
        FacesPage homePage = tester.requestPage(HOME_PAGE);
        FacesComponent searchForm = homePage.getComponentWithId("search");
        assertTrue(searchForm.isRendered());
        FacesComponent queryInput = homePage.getComponentWithId("search:q");
        assertEquals(queryInput.getWrappedComponent().getClientId(), "q", "The prependId attribute on form should be false and the parent id not prepended to the child id");
        assertEquals(queryInput.getValueAsString(), null);
        FacesComponent searchButton = homePage.getComponentWithId("search:s");
        assertEquals(searchButton.getWrappedComponent().getClientId(), "s", "The prependId attribute on form should be false and the parent id not prepended to the child id");
        assertTrue(searchButton.getWrappedComponent() instanceof UICommand);
        assertEquals(((UICommand) searchButton.getWrappedComponent()).getActionExpression().getExpressionString(), "#{blog.search}");
    }
View Full Code Here

Examples of org.jboss.seam.core.FacesPage

   @Test
   public void testSeamPhaseListenerLongRunning()
   {
      MockFacesContext facesContext = createFacesContext();
     
      getPageMap(facesContext).put( getPrefix() + Seam.getComponentName(FacesPage.class), new FacesPage() { @Override public String getConversationId() { return "2"; } });
     
      List<String> conversationIdStack = new ArrayList<String>();
      conversationIdStack.add("2");
      ConversationEntries entries = new ConversationEntries();
      entries.createConversationEntry("2", conversationIdStack);
View Full Code Here

Examples of org.jboss.seam.faces.FacesPage

   @Test
   public void testSeamPhaseListenerLongRunning()
   {
      MockFacesContext facesContext = createFacesContext();
     
      getPageMap(facesContext).put( getPrefix() + Seam.getComponentName(FacesPage.class), new FacesPage() { @Override public String getConversationId() { return "2"; } });
     
      List<String> conversationIdStack = new ArrayList<String>();
      conversationIdStack.add("2");
      ConversationEntries entries = new ConversationEntries();
      entries.createConversationEntry("2", conversationIdStack);
View Full Code Here

Examples of org.jboss.seam.faces.FacesPage

   @Test
   public void testSeamPhaseListenerLongRunning()
   {
      MockFacesContext facesContext = createFacesContext();
     
      getPageMap(facesContext).put( getPrefix() + Seam.getComponentName(FacesPage.class), new FacesPage() { @Override public String getConversationId() { return "2"; } });
     
      List<String> conversationIdStack = new ArrayList<String>();
      conversationIdStack.add("2");
      ConversationEntries entries = new ConversationEntries();
      entries.createConversationEntry("2", conversationIdStack);
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.