Package org.rhq.test

Examples of org.rhq.test.ObjectCollectionSerializer.deserialize()


    public void testCanDeserialize() throws Exception {
        ObjectCollectionSerializer serializer = new ObjectCollectionSerializer();

        ByteArrayInputStream in = new ByteArrayInputStream(getSerializedTestObjectTree());

        List<?> objects = serializer.deserialize(in);

        assert objects != null && objects.equals(getTestObjectTree()) : "The deserialized objects don't match the expected results";
    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.