Package com.vaadin.browserless
Class SerializationDebugUtil
java.lang.Object
com.vaadin.browserless.SerializationDebugUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidassertSerializable(Object root) Asserts that the given object graph is fully serializable.static voidassertSerializable(Object root, StringBuilder report) Asserts that the given object graph is fully serializable.
-
Method Details
-
assertSerializable
Asserts that the given object graph is fully serializable. If not, throws an AssertionError with a detailed report of non-serializable fields found.Note: When running tests in an IDE, enable "sun.io.serialization.extendedDebugInfo" flag for more detailed stack traces on serialization errors.
- Parameters:
root- the root object to test for serializabilityreport- a StringBuilder instance to which the detailed report is appended
-
assertSerializable
Asserts that the given object graph is fully serializable. If not, throws an AssertionError with a detailed report of non-serializable fields found.Note: When running tests in an IDE, enable "sun.io.serialization.extendedDebugInfo" flag for more detailed stack traces on serialization errors.
- Parameters:
root- the root object to test for serializability
-