Package org.eclipse.ecf.core.identity

Examples of org.eclipse.ecf.core.identity.Namespace


    clients = createClients();
  }

  protected ID getServerConnectID(int client) {
    final IContainer container = getClient(client);
    final Namespace connectNamespace = container.getConnectNamespace();
    final String username = getUsername(client);
    try {
      return IDFactory.getDefault().createID(connectNamespace, username);
    } catch (final IDCreateException e) {
      fail("Could not create server connect ID");
View Full Code Here


  protected IFileTransferListener senderTransferListener = getSenderFileTransferListener("sender");
  protected IFileTransferListener receiverTransferListener = getReceiverFileTransferListener("receiver");

  protected ID getServerConnectID(int client) {
    final IContainer container = getClient(client);
    final Namespace connectNamespace = container.getConnectNamespace();
    final String username = getUsername(client);
    try {
      return IDFactory.getDefault().createID(connectNamespace, username);
    } catch (final IDCreateException e) {
      e.printStackTrace(System.err);
View Full Code Here

  protected String getRemoteServiceFilter() {
    return null;
  }

  public void testGetNamespace() throws Exception {
    Namespace ns = rsContainer.getContainer().getConnectNamespace();
    assertNotNull(ns);
  }
View Full Code Here

    Namespace ns = rsContainer.getContainer().getConnectNamespace();
    assertNotNull(ns);
  }

  public void testGetRSNamespace() throws Exception {
    Namespace ns = rsContainer.getContainerAdapter()
        .getRemoteServiceNamespace();
    assertNotNull(ns);
  }
View Full Code Here

    }
    return null;
  }

  protected IServiceTypeID createIDFromStringWithEx(String serviceType) {
    Namespace namespaceByName = IDFactory.getDefault().getNamespaceByName(namespace);
    ServiceTypeID serviceTypeID = new ServiceTypeID(namespaceByName, serviceType);
    return ServiceIDFactory.getDefault().createServiceTypeID(namespaceByName, serviceTypeID);
  }
View Full Code Here

  /*
   * org.eclipse.ecf.discovery.identity.IServiceIDFactory.createServiceID(Namespace, String, String)
   */
  public void testServiceIDFactory() {
    Namespace namespaceByName = IDFactory.getDefault().getNamespaceByName(namespace);
    IServiceTypeID serviceType = ServiceIDFactory.getDefault().createServiceTypeID(namespaceByName, services, scopes, protocols, namingAuthority);
    assertNotNull(serviceType);
    assertEquals(namingAuthority, serviceType.getNamingAuthority());
    assertTrue(Arrays.equals(services, serviceType.getServices()));
    assertTrue(Arrays.equals(scopes, serviceType.getScopes()));
View Full Code Here

  /*
   * org.eclipse.ecf.discovery.identity.IServiceIDFactory.createServiceID(Namespace, String[], String[], String[], String, String)
   */
  public void testServiceIDFactoryNullNA() {
    try {
      Namespace namespaceByName = IDFactory.getDefault().getNamespaceByName(namespace);
      ServiceIDFactory.getDefault().createServiceTypeID(namespaceByName, services, scopes, protocols, null);
    } catch(IDCreateException e) {
      return;
    }
    fail("Invalid services may cause InvalidIDException");
View Full Code Here

  /*
   * org.eclipse.ecf.discovery.identity.IServiceIDFactory.createServiceID(Namespace, String[], String[], String[], String, String)
   */
  public void testServiceIDFactoryNullProto() {
    try {
      Namespace namespaceByName = IDFactory.getDefault().getNamespaceByName(namespace);
      ServiceIDFactory.getDefault().createServiceTypeID(namespaceByName, services, scopes, null, namingAuthority);
    } catch(IDCreateException e) {
      return;
    }
    fail("Invalid services may cause InvalidIDException");
View Full Code Here

  /*
   * org.eclipse.ecf.discovery.identity.IServiceIDFactory.createServiceID(Namespace, String[], String[], String[], String, String)
   */
  public void testServiceIDFactoryNullServices() {
    try {
      Namespace namespaceByName = IDFactory.getDefault().getNamespaceByName(namespace);
      ServiceIDFactory.getDefault().createServiceTypeID(namespaceByName, null, scopes, protocols, namingAuthority);
    } catch(IDCreateException e) {
      return;
    }
    fail("Invalid services may cause InvalidIDException");
View Full Code Here

  /*
   * org.eclipse.ecf.discovery.identity.IServiceIDFactory.createServiceID(Namespace, String[], String[], String[], String, String)
   */
  public void testServiceIDFactoryNullScope() {
    try {
      Namespace namespaceByName = IDFactory.getDefault().getNamespaceByName(namespace);
      ServiceIDFactory.getDefault().createServiceTypeID(namespaceByName, services, null, protocols, namingAuthority);
    } catch(IDCreateException e) {
      return;
    }
    fail("Invalid services may cause InvalidIDException");
View Full Code Here

TOP

Related Classes of org.eclipse.ecf.core.identity.Namespace

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.