Package org.apache.wicket.serialize.java

Examples of org.apache.wicket.serialize.java.JavaSerializer.serialize()


        return new CheckingObjectOutputStream(out, checker);
      }
    };

    WebComponent component = new ComponentWithAReferenceToTheSession("id");
    byte[] serialized = serializer.serialize(component);
    assertNull("The produced byte[] must be null if there was an error", serialized);
  }

  private static class ComponentWithAReferenceToTheSession extends WebComponent
  {
View Full Code Here


    };

    WebComponent component = new ComponentThatKeepsAReferenceToAnotherPage(MockPageWithLink.LINK_ID);
    MockPageWithLink rootPage = new MockPageWithLink();
    rootPage.add(component);
    byte[] serialized = serializer.serialize(rootPage);
    assertNull("The produced byte[] must be null if there was an error", serialized);
  }

  private static class ComponentThatKeepsAReferenceToAnotherPage extends WebComponent
  {
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.