Package org.eclipse.ecf.core

Examples of org.eclipse.ecf.core.ContainerTypeDescription


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

  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" });
View Full Code Here


    final IContainer base = ContainerFactory.getDefault().createContainer();
    assertNotNull(base);
  }

  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);
View Full Code Here

        BASE_CONTAINER_TYPE_NAME, IDFactory.getDefault().createGUID());
    assertNotNull(base);
  }

  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() });
View Full Code Here

        new Object[] { IDFactory.getDefault().createGUID() });
    assertNotNull(base);
  }

  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" });
View Full Code Here

        new Object[] { "param" });
    assertNotNull(base);
  }

  public void testContainerTypeDescriptionGetName() {
    final ContainerTypeDescription desc = ContainerFactory.getDefault()
        .getDescriptionByName(CONTAINER_TYPE_NAME);
    assertTrue(desc.getName().equals(CONTAINER_TYPE_NAME));
  }
View Full Code Here

        .getDescriptionByName(CONTAINER_TYPE_NAME);
    assertTrue(desc.getName().equals(CONTAINER_TYPE_NAME));
  }

  public void testContainerTypeDescriptionGetDescription() {
    final ContainerTypeDescription desc = ContainerFactory.getDefault()
        .getDescriptionByName(CONTAINER_TYPE_NAME);
    assertTrue(desc.getDescription().equals(DESCRIPTION));
  }
View Full Code Here

        .getDescriptionByName(CONTAINER_TYPE_NAME);
    assertTrue(desc.getDescription().equals(DESCRIPTION));
  }

  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"));
  }
View Full Code Here

    assertTrue(adapterTypes.length > 0);
    assertTrue(Arrays.asList(adapterTypes).contains("one"));
  }

  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));
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

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.