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

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


         support.addBeanContextMembershipListener(new MockBeanContextMembershipListenerS("l2"));
         support.addBeanContextMembershipListener(new MockBeanContextMembershipListenerS("l3"));
         support.addBeanContextMembershipListener(new MockBeanContextMembershipListener());
         support.add("abcd");
         support.add(new MockBeanContextChild());
         support.add(new MockBeanContextChildS("a child"));
         support.add(new MockBeanContextChild());
         support.add("1234");
         SerializationTest.verifyGolden(this, mock, new SerializableAssert(){
             public void assertDeserialized(Serializable orig, Serializable ser) {
                 MockBeanContextDelegateS serMock = (MockBeanContextDelegateS) ser;
View Full Code Here


                if (child instanceof String) {
                    assertTrue(serChildren.containsKey(child));
                }
                if (child instanceof MockBeanContextChildS) {
                    assertTrue(serChildren.containsKey(child));
                    MockBeanContextChildS serChild = (MockBeanContextChildS) Utils
                            .getField(serChildren.get(child), "child");
                    assertSame(ser.getBeanContextPeer(), serChild
                            .getBeanContext());
                }
                if (child instanceof MockBeanContextProxyS) {
                    assertTrue(serChildren.containsKey(child));
                }
View Full Code Here

TOP

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

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.