Avoid string conversion in ExecutionContextSerializer tests
Avoid the byte to string to byte conversion in AbstractExecutionContextSerializerTests.
This commit is contained in:
committed by
Mahmoud Ben Hassine
parent
fce9a48080
commit
c9d827ca11
@@ -166,9 +166,7 @@ public abstract class AbstractExecutionContextSerializerTests {
|
||||
ByteArrayOutputStream out = new ByteArrayOutputStream();
|
||||
getSerializer().serialize(m1, out);
|
||||
|
||||
String s = new String(out.toByteArray(), "ISO-8859-1");
|
||||
|
||||
InputStream in = new ByteArrayInputStream(s.getBytes("ISO-8859-1"));
|
||||
InputStream in = new ByteArrayInputStream(out.toByteArray());
|
||||
Map<String, Object> m2 = getSerializer().deserialize(in);
|
||||
return m2;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user