Package org.apache.wicket.util.io

Examples of org.apache.wicket.util.io.PageA


   * @throws Exception
   */
  public void testPageSerialization() throws Exception
  {
    PageB b = new PageB("test");
    PageA a = new PageA(b);
    b.setA(a);

    tester.setupRequestAndResponse();

    Session session = Session.get();

    a.getPageMap().put(a);
    a.getPageMap().put(b);

    PageA a2 = (PageA)a.getPageMap().get(a.getNumericId(), a.getCurrentVersionNumber());

    Assert.assertEquals(a, a2);

    Assert.assertSame(a2, a2.getB().getA());
  }
View Full Code Here


   * @throws Exception
   */
  public void testPageSerialization() throws Exception
  {
    PageB b = new PageB("test");
    PageA a = new PageA(b);
    b.setA(a);

    tester.setupRequestAndResponse();

    Session.get();

    a.getPageMap().put(a);
    a.getPageMap().put(b);

    PageA a2 = (PageA)a.getPageMap().get(a.getNumericId(), a.getCurrentVersionNumber());

    Assert.assertEquals(a, a2);

    Assert.assertSame(a2, a2.getB().getA());
  }
View Full Code Here

   * @throws Exception
   */
  public void testPageSerialization() throws Exception
  {
    PageB b = new PageB("test");
    PageA a = new PageA(b);
    b.setA(a);

    tester.setupRequestAndResponse();

    Session session = Session.get();

    a.getPageMap().put(a);
    a.getPageMap().put(b);

    PageA a2 = (PageA)a.getPageMap().get(a.getNumericId(), a.getCurrentVersionNumber());

    Assert.assertEquals(a, a2);

    Assert.assertSame(a2, a2.getB().getA());
  }
View Full Code Here

   * @throws Exception
   */
  public void testPageSerialization() throws Exception
  {
    PageB b = new PageB("test");
    PageA a = new PageA(b);
    b.setA(a);
   
    tester.setupRequestAndResponse();
   
    Session session = Session.get();
   
    a.getPageMap().put(a);
    a.getPageMap().put(b);
   
    PageA a2 = (PageA)a.getPageMap().get(a.getNumericId(), a.getCurrentVersionNumber());
   
    Assert.assertEquals(a, a2);
   
    Assert.assertSame(a2, a2.getB().getA());
  }
View Full Code Here

TOP

Related Classes of org.apache.wicket.util.io.PageA

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.