use of org.eclipse.ecf.core.ContainerTypeDescription in project ecf by eclipse.
the class ContainerFactoryServiceDescriptionsTest method testAddNullDescription.
public void testAddNullDescription() {
int prevSize = getFixture().getDescriptions().size();
ContainerTypeDescription add = getFixture().addDescription(null);
assertNull(add);
assertTrue(getFixture().getDescriptions().size() == prevSize);
}
use of org.eclipse.ecf.core.ContainerTypeDescription in project ecf by eclipse.
the class ContainerManagerServiceTest method testGetContainerDescriptionN.
public void testGetContainerDescriptionN() throws Exception {
IContainer[] c = createContainers(10);
assertNotNull(c);
for (int i = 0; i < 10; i++) {
ContainerTypeDescription description = containerManager.getContainerTypeDescription(c[i].getID());
assertNotNull(description);
}
}
use of org.eclipse.ecf.core.ContainerTypeDescription in project ecf by eclipse.
the class ContainerFactoryCreateTest method testContainerTypeDescriptionGetSupportedParemeterTypes.
public void testContainerTypeDescriptionGetSupportedParemeterTypes() {
final ContainerTypeDescription desc = ContainerFactory.getDefault().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 ContainerFactoryCreateTest method testCreateContainer6.
public void testCreateContainer6() throws Exception {
final ContainerTypeDescription desc = ContainerFactory.getDefault().getDescriptionByName(CONTAINER_TYPE_NAME);
assertNotNull(desc);
final IContainer container = ContainerFactory.getDefault().createContainer(desc, IDFactory.getDefault().createGUID());
assertNotNull(container);
}
use of org.eclipse.ecf.core.ContainerTypeDescription in project ecf by eclipse.
the class ContainerFactoryCreateTest method testCreateContainer3.
public void testCreateContainer3() throws Exception {
final ContainerTypeDescription desc = ContainerFactory.getDefault().getDescriptionByName(CONTAINER_TYPE_NAME);
assertNotNull(desc);
final IContainer container = ContainerFactory.getDefault().createContainer(desc);
assertNotNull(container);
}
Aggregations