Package org.eclipse.ecf.core

Examples of org.eclipse.ecf.core.ContainerTypeDescription


    assertNotNull(d);
  }

  public void testAddNullDescription() {
    int prevSize = getFixture().getDescriptions().size();
    ContainerTypeDescription add = getFixture().addDescription(null);
    assertNull(add);
    assertTrue(getFixture().getDescriptions().size() == prevSize);
  }
View Full Code Here


  public void testContainsDescription() {
    assertTrue(getFixture().containsDescription(getDescription()));
  }

  public void testGetDescriptionByName() {
    ContainerTypeDescription desc = getFixture().getDescriptionByName(
        getDescription().getName());
    assertNotNull(desc);
  }
View Full Code Here

    addDescription();
  }

  protected void addDescription() {
    description = createContainerTypeDescription();
    ContainerTypeDescription add = getFixture().addDescription(description);
    assertNull(add);
  }
View Full Code Here

    removeDescription();
    super.tearDown();
  }

  protected void removeDescription() {
    ContainerTypeDescription remove = getFixture().removeDescription(
        getDescription());
    assertNotNull(remove);
  }
View Full Code Here

    assertNotNull(d);
  }

  public void testAddNullDescription() {
    int prevSize = getFixture().getDescriptions().size();
    ContainerTypeDescription add = getFixture().addDescription(null);
    assertNull(add);
    assertTrue(getFixture().getDescriptions().size() == prevSize);
  }
View Full Code Here

  public void testContainsDescription() {
    assertTrue(getFixture().containsDescription(getDescription()));
  }

  public void testGetDescriptionByName() {
    ContainerTypeDescription desc = getFixture().getDescriptionByName(
        getDescription().getName());
    assertNotNull(desc);
  }
View Full Code Here

  protected IContainerFactory getContainerFactoryService() {
    return Activator.getDefault().getContainerFactory();
  }

  protected ContainerTypeDescription createContainerTypeDescription() {
    return new ContainerTypeDescription(CONTAINER_TYPE_NAME,
        new IContainerInstantiator() {
          public IContainer createInstance(
              ContainerTypeDescription description,
              Object[] parameters)
              throws ContainerCreateException {
View Full Code Here

        .createContainer(CONTAINER_TYPE_NAME);
    assertNotNull(container);
  }

  public void testCreateContainer3() throws Exception {
    final ContainerTypeDescription desc = getContainerFactoryService()
        .getDescriptionByName(CONTAINER_TYPE_NAME);
    assertNotNull(desc);
    final IContainer container = getContainerFactoryService()
        .createContainer(desc);
    assertNotNull(container);
View Full Code Here

    } catch (final ContainerCreateException e) {
    }
  }

  public void testCreateContainer6() throws Exception {
    final ContainerTypeDescription desc = getContainerFactoryService()
        .getDescriptionByName(CONTAINER_TYPE_NAME);
    assertNotNull(desc);
    final IContainer container = getContainerFactoryService()
        .createContainer(desc, IDFactory.getDefault().createGUID());
    assertNotNull(container);
View Full Code Here

            IDFactory.getDefault().createGUID());
    assertNotNull(container);
  }

  public void testCreateContainer8() throws Exception {
    final ContainerTypeDescription desc = getContainerFactoryService()
        .getDescriptionByName(CONTAINER_TYPE_NAME);
    assertNotNull(desc);
    final IContainer container = getContainerFactoryService()
        .createContainer(desc, IDFactory.getDefault().createGUID(),
            new Object[] { "param" });
View Full Code Here

TOP

Related Classes of org.eclipse.ecf.core.ContainerTypeDescription

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.