Package com.vaadin.ui

Examples of com.vaadin.ui.UniqueSerializable


import com.vaadin.ui.UniqueSerializable;

public class UniqueSerializableTest extends TestCase implements Serializable {

    public void testUniqueness() {
        UniqueSerializable o1 = new UniqueSerializable() {
        };
        UniqueSerializable o2 = new UniqueSerializable() {
        };
        assertFalse(o1 == o2);
        assertFalse(o1.equals(o2));
    }
View Full Code Here


        assertFalse(o1 == o2);
        assertFalse(o1.equals(o2));
    }

    public void testSerialization() {
        UniqueSerializable o1 = new UniqueSerializable() {
        };
        UniqueSerializable d1 = (UniqueSerializable) SerializationUtils
                .deserialize(SerializationUtils.serialize(o1));
        assertTrue(d1.equals(o1));
    }
View Full Code Here

TOP

Related Classes of com.vaadin.ui.UniqueSerializable

Copyright © 2018 www.massapicom. 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.