use of org.eclipse.ecf.core.ContainerTypeDescription in project ecf by eclipse.
the class ContainerFactoryCreateTest method testCreateBaseContainer1.
public void testCreateBaseContainer1() throws Exception {
final ContainerTypeDescription desc = ContainerFactory.getDefault().getDescriptionByName(BASE_CONTAINER_TYPE_NAME);
assertNotNull(desc);
final IContainer base = ContainerFactory.getDefault().createContainer(desc, IDFactory.getDefault().createGUID());
assertNotNull(base);
}
use of org.eclipse.ecf.core.ContainerTypeDescription in project ecf by eclipse.
the class ContainerFactoryCreateTest method testContainerTypeDescriptionGetSupportedAdapterTypes.
public void testContainerTypeDescriptionGetSupportedAdapterTypes() {
final ContainerTypeDescription desc = ContainerFactory.getDefault().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 ContainerFactoryCreateTest method testCreateBaseContainer5.
public void testCreateBaseContainer5() throws Exception {
final ContainerTypeDescription desc = ContainerFactory.getDefault().getDescriptionByName(BASE_CONTAINER_TYPE_NAME);
assertNotNull(desc);
final IContainer base = ContainerFactory.getDefault().createContainer(desc, IDFactory.getDefault().createGUID(), new Object[] { "param" });
assertNotNull(base);
}
use of org.eclipse.ecf.core.ContainerTypeDescription in project ecf by eclipse.
the class ContainerFactoryDescriptionsTest method removeDescription.
protected void removeDescription() {
ContainerTypeDescription remove = getFixture().removeDescription(getDescription());
assertNotNull(remove);
}
use of org.eclipse.ecf.core.ContainerTypeDescription in project ecf by eclipse.
the class ContainerFactoryDescriptionsTest method testGetDescriptionByName.
public void testGetDescriptionByName() {
ContainerTypeDescription desc = getFixture().getDescriptionByName(getDescription().getName());
assertNotNull(desc);
}
Aggregations