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

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


        serverFacadeProxy = new ServerFacadeProxy(connection);
        session = new TestProxySession();
    }

    public void testOidForService() {
        final OidForServiceRequest request = new OidForServiceRequest(session, "domain.Service");
        serverFacade.oidForService(request);
        final IdentityData data = new DummyIdentityData();
        control.setReturnValue(new OidForServiceResponse(data));

        control.replay();
View Full Code Here


            }
        };
        serverFacadeProxy = new ServerFacadeProxy(connection);

        try {
            final OidForServiceRequest request = new OidForServiceRequest(session, "domain.Service");
            serverFacadeProxy.oidForService(request);
            fail();
        } catch (final IsisRemoteException e) {
            assertTrue(e.getMessage().startsWith("Response out of sequence"));
        }
View Full Code Here

        }
        return oid;
    }

    private Oid getOidForServiceFromPersistenceLayer(final String serviceId) {
        final OidForServiceRequest request = new OidForServiceRequest(getAuthenticationSession(), serviceId);
        final OidForServiceResponse response = serverFacade.oidForService(request);
        final IdentityData data = response.getOidData();
        return data.getOid();
    }
View Full Code Here

        }
        return oid;
    }

    private Oid getOidForServiceFromPersistenceLayer(final String serviceId) {
        final OidForServiceRequest request = new OidForServiceRequest(getAuthenticationSession(), serviceId);
        final OidForServiceResponse response = serverFacade.oidForService(request);
        final IdentityData data = response.getOidData();
        return data.getOid();
    }
View Full Code Here

        serverFacadeProxy = new ServerFacadeProxy(connection);
        session = new TestProxySession();
    }

    public void testOidForService() {
        final OidForServiceRequest request = new OidForServiceRequest(session, "domain.Service");
        serverFacade.oidForService(request);
        final IdentityData data = new DummyIdentityData();
        control.setReturnValue(new OidForServiceResponse(data));

        control.replay();
View Full Code Here

            }
        };
        serverFacadeProxy = new ServerFacadeProxy(connection);

        try {
            final OidForServiceRequest request = new OidForServiceRequest(session, "domain.Service");
            serverFacadeProxy.oidForService(request);
            fail();
        } catch (final IsisRemoteException e) {
            assertTrue(e.getMessage().startsWith("Response out of sequence"));
        }
View Full Code Here

TOP

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

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.