use of org.eclipse.ecf.core.ContainerTypeDescription in project ecf by eclipse.
the class ContainerFactoryServiceCreateTest method testContainerTypeDescriptionGetDescription.
public void testContainerTypeDescriptionGetDescription() {
final ContainerTypeDescription desc = getContainerFactoryService().getDescriptionByName(CONTAINER_TYPE_NAME);
assertTrue(desc.getDescription().equals(DESCRIPTION));
}
use of org.eclipse.ecf.core.ContainerTypeDescription in project ecf by eclipse.
the class ContainerFactoryServiceCreateTest method testCreateContainer3.
public void testCreateContainer3() throws Exception {
final ContainerTypeDescription desc = getContainerFactoryService().getDescriptionByName(CONTAINER_TYPE_NAME);
assertNotNull(desc);
final IContainer container = getContainerFactoryService().createContainer(desc);
assertNotNull(container);
}
use of org.eclipse.ecf.core.ContainerTypeDescription in project ecf by eclipse.
the class ContainerFactoryServiceCreateTest method testContainerTypeDescriptionGetSupportedAdapterTypes.
public void testContainerTypeDescriptionGetSupportedAdapterTypes() {
final ContainerTypeDescription desc = getContainerFactoryService().getDescriptionByName(CONTAINER_TYPE_NAME);
final String[] adapterTypes = desc.getSupportedAdapterTypes();
assertTrue(adapterTypes.length > 0);
assertTrue(Arrays.asList(adapterTypes).contains("one"));
}
use of org.eclipse.ecf.core.ContainerTypeDescription in project ecf by eclipse.
the class ContainerFactoryServiceCreateTest method testContainerTypeDescriptionGetSupportedParemeterTypes.
public void testContainerTypeDescriptionGetSupportedParemeterTypes() {
final ContainerTypeDescription desc = getContainerFactoryService().getDescriptionByName(CONTAINER_TYPE_NAME);
final Class[][] parameterTypes = desc.getSupportedParameterTypes();
assertTrue(parameterTypes.length == 1);
assertTrue(parameterTypes[0].length == 2);
assertTrue(parameterTypes[0][0].equals(String.class));
assertTrue(parameterTypes[0][1].equals(Class.class));
}
use of org.eclipse.ecf.core.ContainerTypeDescription in project ecf by eclipse.
the class ContainerFactoryServiceCreateTest method testCreateBaseContainer5.
public void testCreateBaseContainer5() throws Exception {
final ContainerTypeDescription desc = getContainerFactoryService().getDescriptionByName(BASE_CONTAINER_TYPE_NAME);
assertNotNull(desc);
final IContainer base = getContainerFactoryService().createContainer(desc, IDFactory.getDefault().createGUID(), new Object[] { "param" });
assertNotNull(base);
}
Aggregations