Search in sources :

Example 1 with RestClientContainer

use of org.eclipse.ecf.remoteservice.rest.client.RestClientContainer in project ecf by eclipse.

the class RestContainerTest method testCreateContainer3.

public void testCreateContainer3() throws Exception {
    ContainerTypeDescription description = getContainerFactory().getDescriptionByName(RestConstants.REST_CONTAINER_TYPE);
    IContainer container = getContainerFactory().createContainer(description, new Object[] { new URI(RestConstants.TEST_DE_TARGET) });
    assertNotNull(container);
    assertTrue(container instanceof RestClientContainer);
}
Also used : ContainerTypeDescription(org.eclipse.ecf.core.ContainerTypeDescription) RestClientContainer(org.eclipse.ecf.remoteservice.rest.client.RestClientContainer) IContainer(org.eclipse.ecf.core.IContainer) URI(java.net.URI)

Example 2 with RestClientContainer

use of org.eclipse.ecf.remoteservice.rest.client.RestClientContainer in project ecf by eclipse.

the class RestContainerTest method testCreateContainer2.

public void testCreateContainer2() throws Exception {
    ContainerTypeDescription description = getContainerFactory().getDescriptionByName(RestConstants.REST_CONTAINER_TYPE);
    IContainer container = getContainerFactory().createContainer(description, new Object[] { new URL(RestConstants.TEST_DE_TARGET) });
    assertNotNull(container);
    assertTrue(container instanceof RestClientContainer);
}
Also used : ContainerTypeDescription(org.eclipse.ecf.core.ContainerTypeDescription) RestClientContainer(org.eclipse.ecf.remoteservice.rest.client.RestClientContainer) IContainer(org.eclipse.ecf.core.IContainer) URL(java.net.URL)

Example 3 with RestClientContainer

use of org.eclipse.ecf.remoteservice.rest.client.RestClientContainer in project ecf by eclipse.

the class RestContainerTest method testCreateContainer1.

public void testCreateContainer1() throws Exception {
    IContainer container = createRestContainer(RestConstants.TEST_DE_TARGET);
    assertNotNull(container);
    assertTrue(container instanceof RestClientContainer);
}
Also used : RestClientContainer(org.eclipse.ecf.remoteservice.rest.client.RestClientContainer) IContainer(org.eclipse.ecf.core.IContainer)

Example 4 with RestClientContainer

use of org.eclipse.ecf.remoteservice.rest.client.RestClientContainer in project ecf by eclipse.

the class RestContainerTest method testCreateContainer.

public void testCreateContainer() throws Exception {
    IContainer container = createRestContainer(RestConstants.TEST_DE_TARGET);
    assertNotNull(container);
    assertTrue(container instanceof RestClientContainer);
}
Also used : RestClientContainer(org.eclipse.ecf.remoteservice.rest.client.RestClientContainer) IContainer(org.eclipse.ecf.core.IContainer)

Aggregations

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