use of org.apache.geode.internal.cache.PreferBytesCachedDeserializable in project geode by apache.
the class PageEntryJUnitTest method getValueShouldReturnObjectFromCachedDeserializableValue.
@Test
public void getValueShouldReturnObjectFromCachedDeserializableValue() {
CachedDeserializable cachedDeserializable = new PreferBytesCachedDeserializable("value");
PageEntry entry = new PageEntry("key", cachedDeserializable);
assertEquals("value", entry.getValue());
}
use of org.apache.geode.internal.cache.PreferBytesCachedDeserializable in project geode by apache.
the class PageEntryJUnitTest method serializationReturnObjectFromCachedDeserializableValue.
@Test
public void serializationReturnObjectFromCachedDeserializableValue() throws IOException, ClassNotFoundException {
CachedDeserializable cachedDeserializable = new PreferBytesCachedDeserializable("value");
PageEntry entry = new PageEntry("key", cachedDeserializable);
assertEquals("value", copy(entry).getValue());
}
Aggregations