Package org.apache.wicket.util.tester

Examples of org.apache.wicket.util.tester.WicketTester.destroy()


      tester.assertContains("Wicket Examples - library");
      tester.assertLabel("books:0:author", "Effective Java (Joshua Bloch)");
    }
    finally
    {
      tester.destroy();
    }
  }
}
View Full Code Here


    };

    wicketTester.startPage(TransparentWithAjaxUpdatePage.class);
    wicketTester.clickLink("link", true);
    wicketTester.destroy();
  }

  /** */
  public static class TestPage extends WebPage implements IMarkupResourceStreamProvider
  {
View Full Code Here

      System.out.println(tester.getLastResponseAsString());
      tester.assertContains("msg1: " + VelocityJavaScriptPage.MSG1);
    }
    finally
    {
      tester.destroy();
    }
  }
}
View Full Code Here

      tester.startPage(Home.class);
      tester.assertRenderedPage(SignIn2.class);
    }
    finally
    {
      tester.destroy();
    }
  }
}
View Full Code Here

    tester.startPage(org.apache.wicket.examples.template.border.Page1.class);
    tester.assertRenderedPage(org.apache.wicket.examples.template.border.Page1.class);
    doc = tester.getLastResponse().getDocument();
    tester.assertContains("Template example, page 1 - border");
    tester.assertContains("contents here");
    tester.destroy();
  }
}
View Full Code Here

      tester.startPage(Home.class);
      tester.assertContains("Wicket Examples - images");
    }
    finally
    {
      tester.destroy();
    }
  }
}
View Full Code Here

      checkPage(tester, GridViewPage.class);
      checkPage(tester, AjaxDataTablePage.class);
    }
    finally
    {
      tester.destroy();
    }
  }

  private void checkPage(WicketTester tester, Class<? extends WebPage> page)
  {
View Full Code Here

      clickLetter(tester, 'm');
      tester.assertRenderedPage(Win.class);
    }
    finally
    {
      tester.destroy();
    }
  }

  /**
   * Tests the webapplication for an unsuccessful match.
View Full Code Here

      clickLetter(tester, 'z');
      tester.assertRenderedPage(Lose.class);
    }
    finally
    {
      tester.destroy();
    }
  }

  /**
   * Performs a guess.
View Full Code Here

    {
      tester.startPage(new CustomRequestPage());
    }
    finally
    {
      tester.destroy();
    }
  }

  /**
   * Assert that ServletWebRequest#getClientUrl() will throw an AbortWithHttpErrorCodeException
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.