assertEquals(data, other.getMessage()); assertNull("null after serialization", other.getThrown()); assertEquals(new ThrowableProxy(t), other.getThrownProxy()); assertEquals(evt.getContextData(), other.getContextData()); assertEquals(contextStack, other.getContextStack());
assertEquals(evt.getInstant().getNanoOfMillisecond(), actual.getInstant().getNanoOfMillisecond()); assertEquals(evt.getSource(), actual.getSource()); assertEquals(evt.getThrownProxy(), actual.getThrownProxy());
private void writeObject(final java.io.ObjectOutputStream out) throws IOException { getThrownProxy(); // initialize the ThrowableProxy before serializing out.defaultWriteObject(); }