Package org.apache.wicket.protocol.http

Examples of org.apache.wicket.protocol.http.WebApplication


  public WebSocketTester(final WicketTester wicketTester, final String resourceName)
  {
    Args.notNull(wicketTester, "wicketTester");
    Args.notNull(resourceName, "resourceName");

    WebApplication webApplication = wicketTester.getApplication();
    webApplication.getWicketFilter().setFilterPath("");

    socketProcessor = new TestWebSocketProcessor(wicketTester, resourceName)
    {
      @Override
      protected void onOutMessage(String message)
View Full Code Here


{

  @Override
  protected WebApplication newApplication()
  {
    WebApplication webApplication = new MockApplication()
    {
      @Override
      protected void init()
      {
        super.init();
View Full Code Here

public class GlobalUpdateAjaxAttributesTest extends WicketTestCase
{
  @Override
  protected WebApplication newApplication()
  {
    WebApplication application = super.newApplication();
    application.getAjaxRequestTargetListeners().add(new AjaxRequestTarget.AbstractListener()
    {
      @Override
      public void updateAjaxAttributes(AjaxRequestAttributes attributes)
      {
        super.updateAjaxAttributes(attributes);
View Full Code Here

public class StatelessPageManipulatingPageParametersTest extends WicketTestCase {

  @Before
  public void before()
  {
    WebApplication application = tester.getApplication();
    application.mountPage("first", FirstPage.class);
    application.mountPage("second", SecondPage.class);
  }
View Full Code Here

  @Before
  public void before() throws Exception
  {

    tester = new WicketTester();
    WebApplication webApplication = tester.getApplication();
    webApplication.mountPage(EXPECTED_URL.toString(), DummyHomePage.class);
    mapper = new CryptoMapper(webApplication.getRootRequestMapper(), webApplication);
  }
View Full Code Here

   */

  @Override
  protected void setUp() throws Exception
  {
    WebApplication app = new DummyApplication();
    tester = new WicketTester(app);
  }
View Full Code Here

   * @param homePage
   *            a home page <code>Class</code>
   */
  public <C extends Page> BaseWicketTester(final Class<C> homePage)
  {
    this(new WebApplication()
    {
      /**
       * @see org.apache.wicket.Application#getHomePage()
       */
      @Override
 
View Full Code Here

  /**
   * @see org.apache.wicket.behavior.IBehaviorListener#onRequest()
   */
  public final void onRequest()
  {
    WebApplication app = (WebApplication)getComponent().getApplication();
    AjaxRequestTarget target = app.newAjaxRequestTarget(getComponent().getPage());

    RequestCycle requestCycle = RequestCycle.get();
    requestCycle.scheduleRequestHandlerAfterCurrent(target);

    respond(target);
View Full Code Here

   * Tests no custom home page. The home page is get from {@link Application#getHomePage()}
   */
  @Test
  public void defaultHomePage()
  {
    final WebApplication dummyApplication = new DummyApplication();
    final WicketTester tester = new WicketTester(dummyApplication);

    requestHomePage(tester);

    tester.assertRenderedPage(dummyApplication.getHomePage());
  }
View Full Code Here

   * Tests mounting of a custom home page via {@link WebApplication#mountPage(String, Class)}
   */
  @Test
  public void customHomePage()
  {
    final WebApplication dummyApplication = new DummyApplication()
    {
      /**
       * @see org.apache.wicket.protocol.http.WebApplication#init()
       */
      @Override
 
View Full Code Here

TOP

Related Classes of org.apache.wicket.protocol.http.WebApplication

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.