Search in sources :

Example 1 with RpcClientContainer

use of org.eclipse.ecf.remoteservice.rpc.client.RpcClientContainer in project ecf by eclipse.

the class RpcContainerTest method testCreateContainer3.

public void testCreateContainer3() throws Exception {
    ContainerTypeDescription description = getContainerFactory().getDescriptionByName(RpcConstants.RPC_CONTAINER_TYPE);
    IContainer container = getContainerFactory().createContainer(description, new Object[] { new URI(RpcConstants.TEST_ECHO_TARGET) });
    assertNotNull(container);
    assertTrue(container instanceof RpcClientContainer);
}
Also used : RpcClientContainer(org.eclipse.ecf.remoteservice.rpc.client.RpcClientContainer) ContainerTypeDescription(org.eclipse.ecf.core.ContainerTypeDescription) IContainer(org.eclipse.ecf.core.IContainer) URI(java.net.URI)

Example 2 with RpcClientContainer

use of org.eclipse.ecf.remoteservice.rpc.client.RpcClientContainer in project ecf by eclipse.

the class RpcContainerTest method testCreateContainer.

public void testCreateContainer() throws Exception {
    IContainer container = createRpcContainer(RpcConstants.TEST_ECHO_TARGET);
    assertNotNull(container);
    assertTrue(container instanceof RpcClientContainer);
}
Also used : RpcClientContainer(org.eclipse.ecf.remoteservice.rpc.client.RpcClientContainer) IContainer(org.eclipse.ecf.core.IContainer)

Example 3 with RpcClientContainer

use of org.eclipse.ecf.remoteservice.rpc.client.RpcClientContainer in project ecf by eclipse.

the class RpcContainerTest method testCreateContainer2.

public void testCreateContainer2() throws Exception {
    ContainerTypeDescription description = getContainerFactory().getDescriptionByName(RpcConstants.RPC_CONTAINER_TYPE);
    IContainer container = getContainerFactory().createContainer(description, new Object[] { new URL(RpcConstants.TEST_ECHO_TARGET) });
    assertNotNull(container);
    assertTrue(container instanceof RpcClientContainer);
}
Also used : RpcClientContainer(org.eclipse.ecf.remoteservice.rpc.client.RpcClientContainer) ContainerTypeDescription(org.eclipse.ecf.core.ContainerTypeDescription) IContainer(org.eclipse.ecf.core.IContainer) URL(java.net.URL)

Example 4 with RpcClientContainer

use of org.eclipse.ecf.remoteservice.rpc.client.RpcClientContainer in project ecf by eclipse.

the class RpcContainerTest method testCreateContainer1.

public void testCreateContainer1() throws Exception {
    IContainer container = createRpcContainer(RpcConstants.TEST_ECHO_TARGET);
    assertNotNull(container);
    assertTrue(container instanceof RpcClientContainer);
}
Also used : RpcClientContainer(org.eclipse.ecf.remoteservice.rpc.client.RpcClientContainer) IContainer(org.eclipse.ecf.core.IContainer)

Aggregations

IContainer (org.eclipse.ecf.core.IContainer)4 RpcClientContainer (org.eclipse.ecf.remoteservice.rpc.client.RpcClientContainer)4 ContainerTypeDescription (org.eclipse.ecf.core.ContainerTypeDescription)2 URI (java.net.URI)1 URL (java.net.URL)1