Package org.springframework.core.serializer.support

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


    }
  }

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

TOP

Related Classes of org.springframework.core.serializer.support.DeserializingConverter

Copyright © 2018 www.massapicom. 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.