Examples of MyXMLSerializable


Examples of de.javakaffee.web.msm.serializer.javolution.TestClasses.MyXMLSerializable

    public void testXMLSerializableSupport() throws Exception {
        final MemcachedBackupSession session = _manager.createEmptySession();
        session.setValid( true );

        final String attributeName = "myxmlserializable";
        session.setAttribute( attributeName, new MyXMLSerializable( Runtime.getRuntime() ) );

        final Map<String, Object> deserialized =
                _transcoder.deserializeAttributes( _transcoder.serializeAttributes( session, session.getAttributesInternal() ) );

        assertDeepEquals( deserialized, session.getAttributesInternal() );
        final MyXMLSerializable myXMLSerializable = (MyXMLSerializable) deserialized.get( attributeName );
        Assert.assertNotNull( myXMLSerializable.getRuntime(), "Transient field runtime should be initialized by XMLFormat" +
            " used due to implementation of XMLSerializable." );
    }
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.