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

Examples of org.apache.isis.runtimes.dflt.remoting.common.exchange.ClearAssociationResponse


         * could place all these clear test in one class; test other methods in other classes
         */
        IsisContext.getTransactionManager().startTransaction();
        final ClearAssociationRequest request =
            new ClearAssociationRequest(authenticationSession, "director", movieData, personData);
        final ClearAssociationResponse response = server.clearAssociation(request);
        final ObjectData[] updatesData = response.getUpdates();
        IsisContext.getTransactionManager().endTransaction();

        nameField.assertFieldEmpty(movieAdapter);
        assertEquals(0, updatesData.length);
    }
View Full Code Here


        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));

        control.replay();
        final ClearAssociationResponse response = serverFacadeProxy.clearAssociation(request);
        final ObjectData[] ret = response.getUpdates();
        control.verify();

        assertEquals(data, ret);
    }
View Full Code Here

TOP

Related Classes of org.apache.isis.runtimes.dflt.remoting.common.exchange.ClearAssociationResponse

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.