DataSerializer.writeObject, if you want a public API.

-Dan

On Wed, Mar 7, 2018 at 11:20 AM, Anthony Baker <aba...@pivotal.io> wrote:

> BlobHelper?
>
> > On Mar 7, 2018, at 10:13 AM, Kirk Lund <kl...@apache.org> wrote:
> >
> > Does anyone know what Geode API(s) I should use instead of Apache Geode
> > SerializationUtils to change the following test to use Geode
> > DataSerializers?
> >
> > @Test
> > public void serializesAndDeserializes() throws Exception {
> >  PartitionRegionConfig config = new PartitionRegionConfig(prId, path,
> > partitionAttributes, scope, evictionAttributes, regionIdleTimeout,
> > regionTimeToLive, entryIdleTimeout, entryTimeToLive, gatewaySenderIds);
> >  byte[] bytes = SerializationUtils.serialize(config);
> >  assertThat(bytes).isNotNull().isNotEmpty();
> >
> > assertThat(SerializationUtils.deserialize(bytes)).isNotSameAs(config).
> isInstanceOf(PartitionRegionConfig.class);
> > }
>
>

Reply via email to