geode-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anthony Baker <aba...@pivotal.io>
Subject Re: Simple serialize/deserialize test using DataSerializers
Date Wed, 07 Mar 2018 19:20:19 GMT
BlobHelper?

> On Mar 7, 2018, at 10:13 AM, Kirk Lund <klund@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);
> }


Mime
View raw message