|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.common.utils.SerializableHelper
public final class SerializableHelper
Helper to test object serialization. Used only in tests.
Method Summary | |
---|---|
static boolean |
isSerializable(Object ob)
Checks if a given object is serializable. |
static Object |
serializeUnserialize(Object ob)
Serializes and unserializes back an object to test whether it is correctly rebuilt (to be used in unit tests as sanity checks). |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean isSerializable(Object ob)
ob
- the actual object we want to test
public static Object serializeUnserialize(Object ob) throws Exception
ob
- the actual object we want to test
Exception
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |