Package org.jboss.seam.test.unit.component

Examples of org.jboss.seam.test.unit.component.TestActions


    */
   @Test(enabled = true)
   public void testShortCircuitOnNonNullOutcome()
   {
      FacesContext facesContext = FacesContext.getCurrentInstance();
      TestActions testActions = TestActions.instance();

      facesContext.getViewRoot().setViewId("/action-test01a.xhtml");
      Pages.instance().preRender(facesContext);
      assertViewId(facesContext, "/pageA.xhtml");
      assertActionCalls(testActions, new String[] { "nonNullActionA" });
View Full Code Here


    */
   @Test(enabled = true)
   public void testShortCircuitInMiddle()
   {
      FacesContext facesContext = FacesContext.getCurrentInstance();
      TestActions testActions = TestActions.instance();

      facesContext.getViewRoot().setViewId("/action-test02.xhtml");
      Pages.instance().preRender(facesContext);
      assertViewId(facesContext, "/pageB.xhtml");
      assertActionCalls(testActions, new String[] { "nonNullActionA", "nonNullActionB" });
View Full Code Here

    */
   @Test(enabled = true)
   public void testShortCircuitOnNullOutcome()
   {
      FacesContext facesContext = FacesContext.getCurrentInstance();
      TestActions testActions = TestActions.instance();

      facesContext.getViewRoot().setViewId("/action-test03.xhtml");
      Pages.instance().preRender(facesContext);
      assertViewId(facesContext, "/pageA.xhtml");
      assertActionCalls(testActions, new String[] { "nullActionA" });
View Full Code Here

    */
   @Test(enabled = true)
   public void testShortCircuitOnNonNullOutcomeToSamePage()
   {
      FacesContext facesContext = FacesContext.getCurrentInstance();
      TestActions testActions = TestActions.instance();

      facesContext.getViewRoot().setViewId("/action-test04.xhtml");
      Pages.instance().preRender(facesContext);
      assertViewId(facesContext, "/action-test04.xhtml");
      assertActionCalls(testActions, new String[] { "nullActionA", "nonNullActionB" });
View Full Code Here

    */
   @Test(enabled = true)
   public void testShortCircuitOnNonNullOutcomeWithRedirect()
   {
      FacesContext facesContext = FacesContext.getCurrentInstance();
      TestActions testActions = TestActions.instance();

      facesContext.getViewRoot().setViewId("/action-test05.xhtml");
      Pages.instance().preRender(facesContext);
      assertViewId(facesContext, "/action-test05.xhtml");
      assertActionCalls(testActions, new String[] { "nonNullActionA" });
View Full Code Here

   @Test(enabled = true)
   public void testPostbackConditionOnPageAction()
   {
      FacesContext facesContext = FacesContext.getCurrentInstance();
      simulatePostback(facesContext);
      TestActions testActions = TestActions.instance();

      facesContext.getViewRoot().setViewId("/action-test06.xhtml");
      Pages.instance().preRender(facesContext);
      assertViewId(facesContext, "/action-test06.xhtml");
      assertActionCalls(testActions, new String[] { "nonNullActionA" });
View Full Code Here

    */
   @Test(enabled = false)
   public void oldBehaviorTest()
   {
      FacesContext facesContext = FacesContext.getCurrentInstance();
      TestActions testActions = TestActions.instance();

      facesContext.getViewRoot().setViewId("/action-test99a.xhtml");
      Pages.instance().preRender(facesContext);
      assertViewId(facesContext, "/pageB.xhtml");
      assertActionCalls(testActions, new String[] { "nonNullActionA", "nonNullActionB" });
View Full Code Here

TOP

Related Classes of org.jboss.seam.test.unit.component.TestActions

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.