use of org.eclipse.ecf.core.ContainerTypeDescription in project ecf by eclipse.
the class ContainerFactoryCreateTest method testContainerTypeDescriptionGetDescription.
public void testContainerTypeDescriptionGetDescription() {
final ContainerTypeDescription desc = ContainerFactory.getDefault().getDescriptionByName(CONTAINER_TYPE_NAME);
assertTrue(desc.getDescription().equals(DESCRIPTION));
}
use of org.eclipse.ecf.core.ContainerTypeDescription in project ecf by eclipse.
the class ContainerFactoryCreateTest method testCreateContainer8.
public void testCreateContainer8() throws Exception {
final ContainerTypeDescription desc = ContainerFactory.getDefault().getDescriptionByName(CONTAINER_TYPE_NAME);
assertNotNull(desc);
final IContainer container = ContainerFactory.getDefault().createContainer(desc, IDFactory.getDefault().createGUID(), new Object[] { "param" });
assertNotNull(container);
}
use of org.eclipse.ecf.core.ContainerTypeDescription in project ecf by eclipse.
the class ContainerFactoryCreateTest method testCreateBaseContainer3.
public void testCreateBaseContainer3() throws Exception {
final ContainerTypeDescription desc = ContainerFactory.getDefault().getDescriptionByName(BASE_CONTAINER_TYPE_NAME);
assertNotNull(desc);
final IContainer base = ContainerFactory.getDefault().createContainer(desc, new Object[] { IDFactory.getDefault().createGUID().getName() });
assertNotNull(base);
}
use of org.eclipse.ecf.core.ContainerTypeDescription in project ecf by eclipse.
the class ContainerFactoryCreateTest method testContainerTypeDescriptionGetName.
public void testContainerTypeDescriptionGetName() {
final ContainerTypeDescription desc = ContainerFactory.getDefault().getDescriptionByName(CONTAINER_TYPE_NAME);
assertTrue(desc.getName().equals(CONTAINER_TYPE_NAME));
}
use of org.eclipse.ecf.core.ContainerTypeDescription in project ecf by eclipse.
the class ContainerFactoryDescriptionsTest method testAddNullDescription.
public void testAddNullDescription() {
int prevSize = getFixture().getDescriptions().size();
ContainerTypeDescription add = getFixture().addDescription(null);
assertNull(add);
assertTrue(getFixture().getDescriptions().size() == prevSize);
}
Aggregations