Package org.eclipse.ecf.core

Examples of org.eclipse.ecf.core.IContainer


    if (r != null) r.unregister();
  }
 
  public void testCreateContainer() throws Exception {
    IContainerFactory f = Activator.getDefault().getContainerFactory();
    IContainer c = f.createContainer(getClass().getName());
    assertNotNull(c);
  }
View Full Code Here


  }

  public void testGetContainerOne() throws Exception {
    IContainer[] c = createContainers(1);
    assertNotNull(c);
    IContainer container = containerManager.getContainer(c[0].getID());
    assertNotNull(container);
    assertTrue(container.getID().equals(c[0].getID()));
  }
View Full Code Here

  public void testGetContainerN() throws Exception {
    IContainer[] c = createContainers(10);
    assertNotNull(c);
    for (int i = 0; i < 10; i++) {
      IContainer container = containerManager.getContainer(c[i].getID());
      assertNotNull(container);
      assertTrue(container.getID().equals(c[i].getID()));
    }
  }
View Full Code Here

    };
  }

  protected void setUp() throws Exception {
    super.setUp();
    final IContainer container = ContainerFactory.getDefault().createContainer();
    adapter = (ISendFileTransferContainerAdapter) container.getAdapter(ISendFileTransferContainerAdapter.class);
    senderTransferListener = getFileTransferListener("localhost"); //$NON-NLS-1$
  }
View Full Code Here

  protected void tearDown() throws Exception {
    getContainerManager().removeAllContainers();
  }

  public void testCreateContainer() throws Exception {
    IContainer container = createRpcContainer(RpcConstants.TEST_ECHO_TARGET);
    assertNotNull(container);
    assertTrue(container instanceof RpcClientContainer);
  }
View Full Code Here

    assertNotNull(container);
    assertTrue(container instanceof RpcClientContainer);
  }

  public void testCreateContainer1() throws Exception {
    IContainer container = createRpcContainer(RpcConstants.TEST_ECHO_TARGET);
    assertNotNull(container);
    assertTrue(container instanceof RpcClientContainer);
  }
View Full Code Here

  }

  public void testCreateContainer2() throws Exception {
    ContainerTypeDescription description = getContainerFactory()
        .getDescriptionByName(RpcConstants.RPC_CONTAINER_TYPE);
    IContainer container = getContainerFactory().createContainer(description,
        new Object[] { new URL(RpcConstants.TEST_ECHO_TARGET) });
    assertNotNull(container);
    assertTrue(container instanceof RpcClientContainer);
  }
View Full Code Here

  }

  public void testCreateContainer3() throws Exception {
    ContainerTypeDescription description = getContainerFactory()
        .getDescriptionByName(RpcConstants.RPC_CONTAINER_TYPE);
    IContainer container = getContainerFactory().createContainer(description,
        new Object[] { new URI(RpcConstants.TEST_ECHO_TARGET) });
    assertNotNull(container);
    assertTrue(container instanceof RpcClientContainer);
  }
View Full Code Here

    }
  }

  public void testCreateContainer2() throws Exception {
    final IContainer container = ContainerFactory.getDefault()
        .createContainer(CONTAINER_TYPE_NAME);
    assertNotNull(container);
  }
View Full Code Here

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

TOP

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

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.