Package org.springframework.core.serializer.support

Examples of org.springframework.core.serializer.support.DeserializingConverter.convert()


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

  @Test
  public void nonSerializableObject() {
    SerializingConverter toBytes = new SerializingConverter();
View Full Code Here


  }

  @Test(expected = SerializationFailedException.class)
  public void deserializationFailure() {
    DeserializingConverter fromBytes = new DeserializingConverter();
    fromBytes.convert("Junk".getBytes());
  }


  class UnSerializable implements Serializable {
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.