Package org.apache.harmony.beans.tests.support.beancontext.mock

Examples of org.apache.harmony.beans.tests.support.beancontext.mock.MockBeanContextChildDelegateS


        }
    }

    public void testSerialization_WithPeer() throws IOException,
            ClassNotFoundException {
        MockBeanContextChildDelegateS peer = new MockBeanContextChildDelegateS(
                "id of peer");
        BeanContextChildSupport support = peer.support;
        MockPropertyChangeListener pcl1 = new MockPropertyChangeListener();
        MockPropertyChangeListenerS pcl2 = new MockPropertyChangeListenerS(
                "id of pcl2");
View Full Code Here


                        .getDeserilizedObject(support));
    }

     public void testSerialization_Compatibility() throws IOException,
             ClassNotFoundException, Exception {
         MockBeanContextChildDelegateS peer = new MockBeanContextChildDelegateS(
                 "id of peer");
         BeanContextChildSupport support = peer.support;
         MockPropertyChangeListener pcl1 = new MockPropertyChangeListener();
         MockPropertyChangeListenerS pcl2 = new MockPropertyChangeListenerS(
                 "id of pcl2");
View Full Code Here

            assertSame(ser, ser.getBeanContextChildPeer());
        } else {
            assertSame(orig.getBeanContextChildPeer().getClass(), ser
                    .getBeanContextChildPeer().getClass());
            if (orig.getBeanContextChildPeer() instanceof MockBeanContextChildDelegateS) {
                MockBeanContextChildDelegateS origPeer = (MockBeanContextChildDelegateS) orig
                        .getBeanContextChildPeer();
                MockBeanContextChildDelegateS serPeer = (MockBeanContextChildDelegateS) ser
                        .getBeanContextChildPeer();
                assertEquals(origPeer.id, serPeer.id);
            }
        }
View Full Code Here

        }
    }

    public void testSerialization_WithPeer() throws IOException,
            ClassNotFoundException {
        MockBeanContextChildDelegateS peer = new MockBeanContextChildDelegateS(
                "id of peer");
        BeanContextChildSupport support = peer.support;
        MockPropertyChangeListener pcl1 = new MockPropertyChangeListener();
        MockPropertyChangeListenerS pcl2 = new MockPropertyChangeListenerS(
                "id of pcl2");
View Full Code Here

                        .getDeserilizedObject(support));
    }

     public void testSerialization_Compatibility() throws IOException,
             ClassNotFoundException, Exception {
         MockBeanContextChildDelegateS peer = new MockBeanContextChildDelegateS(
                 "id of peer");
         BeanContextChildSupport support = peer.support;
         MockPropertyChangeListener pcl1 = new MockPropertyChangeListener();
         MockPropertyChangeListenerS pcl2 = new MockPropertyChangeListenerS(
                 "id of pcl2");
View Full Code Here

            assertSame(ser, ser.getBeanContextChildPeer());
        } else {
            assertSame(orig.getBeanContextChildPeer().getClass(), ser
                    .getBeanContextChildPeer().getClass());
            if (orig.getBeanContextChildPeer() instanceof MockBeanContextChildDelegateS) {
                MockBeanContextChildDelegateS origPeer = (MockBeanContextChildDelegateS) orig
                        .getBeanContextChildPeer();
                MockBeanContextChildDelegateS serPeer = (MockBeanContextChildDelegateS) ser
                        .getBeanContextChildPeer();
                assertEquals(origPeer.id, serPeer.id);
            }
        }
View Full Code Here

TOP

Related Classes of org.apache.harmony.beans.tests.support.beancontext.mock.MockBeanContextChildDelegateS

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.