use of com.hazelcast.nio.serialization.Portable in project hazelcast by hazelcast.
the class ClientListenersTest method setup.
@Before
public void setup() {
ClientConfig config = new ClientConfig();
config.getSerializationConfig().addPortableFactory(5, new PortableFactory() {
@Override
public Portable create(int classId) {
if (classId == 6) {
return new ClientRegressionWithMockNetworkTest.SamplePortable();
}
return null;
}
});
server = hazelcastFactory.newHazelcastInstance();
client = hazelcastFactory.newHazelcastClient(config);
}
Aggregations