Examples of DeserializingConverter


Examples of org.springframework.core.serializer.support.DeserializingConverter

  @Test
  public void serializeAndDeserializeString() {
    SerializingConverter toBytes = new SerializingConverter();
    byte[] bytes = toBytes.convert("Testing");
    DeserializingConverter fromBytes = new DeserializingConverter();
    assertEquals("Testing", fromBytes.convert(bytes));
  }
View Full Code Here

Examples of org.springframework.core.serializer.support.DeserializingConverter

    }
  }

  @Test(expected = SerializationFailedException.class)
  public void deserializationFailure() {
    DeserializingConverter fromBytes = new DeserializingConverter();
    fromBytes.convert("Junk".getBytes());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.