Package org.apache.wicket.serialize

Examples of org.apache.wicket.serialize.ISerializer.deserialize()


    ISerializer pageSerializer = getAndCheckSerializer();

    byte[] data = pageSerializer.serialize(page);
    Assert.assertNotNull("The produced data should not be null!", data);

    Object object = pageSerializer.deserialize(data);
    Assert.assertTrue(
        "The deserialized page must be of type HomePage. Type: " + object.getClass(),
        object instanceof SamplePage);

    SamplePage samplePage = (SamplePage)object;
View Full Code Here


    Assert.assertNotNull("The produced data should not be null!", data);

    // data length can fluctuate based on the object field values
    Assert.assertTrue("The produced data length is not correct!", data.length > 300);

    Object object = pageSerializer.deserialize(data);
    Assert.assertTrue(
      "The deserialized page must be of type HomePage. Type: " + object.getClass(),
      object instanceof HomePage);

  }
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.