Java Object Serialization and Deserialization

In some circumstances, for instance if you want to transfere objects via GWT RPC, it makes sense to assert Objects can be serialized and deserialized without problems. Further there might be some differences between the original object and the deserialized object – for instance some hash tags might have changed and of course the object references.

The following code snippet can be a useful addition to JUnit test cases, which need to test the serialization of complex objects:

http://gist.github.com/650417 

2 thoughts on “Java Object Serialization and Deserialization

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s