Example usage for org.springframework.util SerializationUtils serialize

List of usage examples for org.springframework.util SerializationUtils serialize

Introduction

In this page you can find the example usage for org.springframework.util SerializationUtils serialize.

Prototype

@Nullable
public static byte[] serialize(@Nullable Object object) 

Source Link

Document

Serialize the given object to a byte array.

Usage

From source file:org.springframework.retry.policy.RetryContextSerializationTests.java

@Test
public void testSerializationCycleForPolicy() {
    assertTrue(SerializationUtils.deserialize(SerializationUtils.serialize(policy)) instanceof RetryPolicy);
}