Package org.apache.isis.runtimes.dflt.remoting.common.data

Examples of org.apache.isis.runtimes.dflt.remoting.common.data.DummyIdentityData


            assertTrue(e.getMessage().startsWith("Response out of sequence"));
        }
    }

    public void testClearAssociation() {
        final DummyIdentityData target = new DummyIdentityData(new TestProxyOid(1), "class 1", null);
        final DummyIdentityData associate = new DummyIdentityData(new TestProxyOid(2), "class 2", null);
        final ClearAssociationRequest request = new ClearAssociationRequest(session, "fieldname", target, associate);
        serverFacade.clearAssociation(request);
        final ObjectData[] data = new ObjectData[2];
        control.setReturnValue(new ClearAssociationResponse(data));
View Full Code Here


        final ObjectAdapter movieAdapter = system.createPersistentTestObject();

        // test starts here
        mockery.checking(new Expectations() {
            {
                final DummyIdentityData identityOfObjectToDelete =
                    encoderShouldCreateIdentityDataForMovie(movieAdapter);
                distributionShouldExecuteClientActionForDeletedMovie(identityOfObjectToDelete);
            }

            private DummyIdentityData encoderShouldCreateIdentityDataForMovie(final ObjectAdapter movieAdapter) {
                final DummyIdentityData identityOfObjectToDelete = new DummyIdentityData();

                one(mockEncoder).encodeIdentityData(movieAdapter);
                will(returnValue(identityOfObjectToDelete));
                return identityOfObjectToDelete;
            }
View Full Code Here

TOP

Related Classes of org.apache.isis.runtimes.dflt.remoting.common.data.DummyIdentityData

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.