0

I have several model class that implement java.io.Serializable interface (for serialization purpose) and they work perfectly in devmode and webmode but when i want to use them in a GWTTestCase after running test i get this error:

Type 'com.saeed.test.model.MyModel' was not assignable to 
'com.google.gwt.user.client.rpc.IsSerializable'
and did not have a custom field serializer.
For security purposes, this type will not be deserialized.

I mention that MyModel class does not have default constructor(but works perfectly in devmode and webmode).

How can i fix this problem?

Saeed Zarinfam
  • 9,818
  • 7
  • 59
  • 72
  • Please post an update whether you were able to solve the problem. It is a nice practice to close the question if it gets solved either by choosing an answer or by posting your own answer. – appbootup Feb 10 '13 at 11:41

1 Answers1

0

Please go through GWT RPC's user test suite here and rpc test suite here

You might also have to follow how GWT sets up its RPC tests.

appbootup
  • 9,537
  • 3
  • 33
  • 65