Package com.volantis.mcs.interaction.impl

Examples of com.volantis.mcs.interaction.impl.BaseProxyImpl


        baseClassDescriptorMock.expects.getTypeClass().returns(Object.class)
                .any();
    }

    protected InternalProxy createProxy() {
        return new BaseProxyImpl(proxyModelDescriptorMock,
                baseClassDescriptorMock);
    }
View Full Code Here


        // =====================================================================
        //   Create Test Objects
        // =====================================================================

        final BaseProxyImpl proxy = (BaseProxyImpl) createProxy(
                parentProxyMock);

        proxy.addListener(listenerMock, false);

        // =====================================================================
        //   Set Test Object Specific Expectations
        // =====================================================================

        final ProxyModelChangedEvent event = new ProxyModelChangedEvent(proxy,
                null, NEW_MODEL_OBJECT, true);
        listenerMock.expects.proxyModelChanged(event);
        parentProxyMock.expects.fireEvent(event);

        parentProxyMock.expects
                .setEmbeddedModelObject(proxy, NEW_MODEL_OBJECT)
                .returns(null);

        parentProxyMock.expects.isReadOnly().returns(false);
        childProxyMock.expects.attach(proxy);

        // =====================================================================
        //   Test Expectations
        // =====================================================================

        checkModificationCountIncremented(proxy, new Modifier() {
            public void modify() {
                Object oldModelObject = proxy.setModelObject(NEW_MODEL_OBJECT);
                assertEquals("Old model object", null, oldModelObject);
            }
        });
    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.interaction.impl.BaseProxyImpl

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.