List of usage examples for org.springframework.batch.core.repository.dao XStreamExecutionContextStringSerializer deserialize
@SuppressWarnings("unchecked") @Override public Map<String, Object> deserialize(InputStream in) throws IOException
From source file:io.spring.batch.xstream.SerializationTest.java
@Test public void testDeserialization() throws Exception { XStreamExecutionContextStringSerializer serializer = new XStreamExecutionContextStringSerializer(); serializer.afterPropertiesSet();/* w ww. j ava 2s . com*/ serializer .deserialize(new ByteArrayInputStream(EXAMPLE_EXECUTION_CONTEXT.getBytes(StandardCharsets.UTF_8))); }