Package org.apache.wicket.resource

Examples of org.apache.wicket.resource.DummyPage


        "foo");
    new ListenerInterfaceRequestHandler(freshPage, IOnChangeListener.INTERFACE).respond(tester
        .getRequestCycle());

    // non-existing component on old page fails
    PageAndComponentProvider oldPage = new PageAndComponentProvider(new DummyPage(), "foo");
    try
    {
      new ListenerInterfaceRequestHandler(oldPage, IOnChangeListener.INTERFACE).respond(tester
          .getRequestCycle());
      fail();
View Full Code Here


      "foo");
    new ListenerInterfaceRequestHandler(freshPage, IOnChangeListener.INTERFACE).respond(tester
      .getRequestCycle());

    // non-existing component on old page fails
    PageAndComponentProvider oldPage = new PageAndComponentProvider(new DummyPage(), "foo");
    try
    {
      new ListenerInterfaceRequestHandler(oldPage, IOnChangeListener.INTERFACE)
        .respond(tester.getRequestCycle());
      fail();
View Full Code Here

    RequestCycle.get().detach();
  }

  public void testPageWithPageMapSerialization() throws IOException, ClassNotFoundException
  {
    DummyPage dummyPage = new DummyPage(PageMap.forName("test"));
    woos.writeObject(dummyPage);
    ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());

    WicketObjectInputStream wois = new WicketObjectInputStream(bais);
    DummyPage dummyPage2 = (DummyPage)wois.readObject();

    Assert.assertEquals(dummyPage.getClass(), dummyPage2.getClass());
  }
View Full Code Here

      "foo");
    new ListenerInterfaceRequestHandler(freshPage, IOnChangeListener.INTERFACE).respond(tester
      .getRequestCycle());

    // non-existing component on old page fails
    PageAndComponentProvider oldPage = new PageAndComponentProvider(new DummyPage(), "foo");
    try
    {
      new ListenerInterfaceRequestHandler(oldPage, IOnChangeListener.INTERFACE)
        .respond(tester.getRequestCycle());
      fail();
View Full Code Here

TOP

Related Classes of org.apache.wicket.resource.DummyPage

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.