jvz commented on issue #1884:
URL:
https://github.com/apache/logging-log4j2/issues/1884#issuecomment-1774198942
Alright, I've converted that test into a JUnit one here:
```java
@Test
void canSerializeRoundTrip() throws IOException {
final ReusableMessageFactory factory = new ReusableMessageFactory();
final ByteArrayOutputStream bytes = new ByteArrayOutputStream();
try (final ObjectOutputStream out = new ObjectOutputStream(bytes)) {
out.writeObject(factory);
}
try (final ObjectInputStream in = new ObjectInputStream(new
ByteArrayInputStream(bytes.toByteArray()))) {
assertDoesNotThrow(in::readObject);
}
}
```
Should be simple enough to fix!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]