Package org.eclipse.ecf.remoteservice

Examples of org.eclipse.ecf.remoteservice.IRemoteServiceID


    property = registration.getProperty("user");
    assertEquals("holger", property);
  }
 
  public void testGetId() {
    IRemoteServiceID id = registration.getID();
    assertNotNull(id);
    assertTrue(id instanceof IRemoteServiceID);
    assertEquals(container.getID(), id.getContainerID());
  }
View Full Code Here


  }
 
  public void testGetRemoteServiceID() {
    IRemoteServiceRegistration registration = createRestRegistration("resourcePath");
    long containerRelativeID = registration.getID().getContainerRelativeID();
    IRemoteServiceID remoteServiceID = getRemoteServiceClientContainerAdapter().getRemoteServiceID(container.getID(), containerRelativeID);
    assertEquals(registration.getID(), remoteServiceID);
  }
View Full Code Here

        targetID, getRemoteServiceClass().getName(),
        getRemoteServiceFilter());
    assertTrue(refs != null);
    assertTrue(refs.length > 0);
    for (int i = 0; i < refs.length; i++) {
      IRemoteServiceID rsid = refs[i].getID();
      assertNotNull(rsid);
    }
  }
View Full Code Here

        targetID, getRemoteServiceClass().getName(),
        getRemoteServiceFilter());
    assertTrue(refs != null);
    assertTrue(refs.length > 0);
    for (int i = 0; i < refs.length; i++) {
      IRemoteServiceID rsid = refs[i].getID();
      Long sid = (Long) refs[i]
          .getProperty(org.eclipse.ecf.remoteservice.Constants.SERVICE_ID);
      assertNotNull(sid);
      assertTrue(sid.longValue() > -1);
      assertTrue(sid.longValue() == rsid.getContainerRelativeID());
    }
  }
View Full Code Here

  }
 
  public void testGetRemoteServiceID() {
    IRemoteServiceRegistration registration = createRpcRegistration(RpcConstants.TEST_ECHO_METHOD);
    long containerRelativeID = registration.getID().getContainerRelativeID();
    IRemoteServiceID remoteServiceID = getRemoteServiceClientContainerAdapter().getRemoteServiceID(container.getID(), containerRelativeID);
    assertEquals(registration.getID(), remoteServiceID);
  }
View Full Code Here

    // adapter [0] is the service 'server'
    final IRemoteServiceRegistration reg = registerService(adapters[0],
        IConcatService.class.getName(), createService(),
        customizeProperties(null), 0);
    assertNotNull(reg);
    IRemoteServiceID remoteServiceID = reg.getID();
    assertNotNull(remoteServiceID);
    assertNotNull(remoteServiceID.getContainerID());
    Thread.sleep(SLEEPTIME);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.ecf.remoteservice.IRemoteServiceID

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.