I've written a custom PdxSerializer implementation to use in my Gemfire cache and I was wondering how I can get Gemfire to invoke my custom serializer in my integration tests. I have a local Gemfire cache set up which has an instance of my custom PdxSerializer but when I do a put into this local cache the serializer is not invoked. I understand that this is because serialization is not guanteed to happen in every scenario but my question is how can I guarantee the serializer being invoked for my tests? I have worked around the issue in the past by setting up an external cache-server and then running my tests with a client-cache with the data-policy set to "empty". This setup invoked the serializer but was not ideal for a self contained test. Is there a configuration that you can recommend where I can achieve a self contained test where my serializer is invoked? Alternatively, is it possible that I could use some of the internal Gemfire API's to artificially invoke the serializer without setting up a cache instance? Thanks!
↧