protected void setUp() throws Exception {
super.setUp();
createServerAndClients();
connectClients();
// Setup custom serializer
ISharedObjectContainer soContainer = getClientSOContainer(0);
soContainer.setSharedObjectMessageSerializer(new ISharedObjectMessageSerializer() {
public Object deserializeMessage(byte[] data) throws IOException,
ClassNotFoundException {
return deserialize(data);
}
public byte[] serializeMessage(ID sharedObjectId, Object message)
throws IOException {
return serialize(message);
}});
ISharedObjectContainer serverContainer = getServerSOContainer();
serverContainer.setSharedObjectMessageSerializer(new ISharedObjectMessageSerializer() {
public Object deserializeMessage(byte[] data) throws IOException,
ClassNotFoundException {
return deserialize(data);
}