Search in sources :

Example 1 with IFQID

use of org.eclipse.ecf.presence.IFQID in project ecf by eclipse.

the class FQIDTest method testFQID3.

public void testFQID3() throws Exception {
    final ID local = IDFactory.getDefault().createID(namespace, "foobar@ecf.eclipse.org:5333/myresource");
    assertNotNull(local);
    final IFQID localfqid = (IFQID) local.getAdapter(IFQID.class);
    assertNotNull(localfqid);
    assertNotNull(localfqid.getFQName());
    assertNotNull(localfqid.getResourceName());
    final IFQID idfqid = (IFQID) id3.getAdapter(IFQID.class);
    assertTrue(!local.equals(id3));
    assertTrue(!localfqid.getFQName().equals(idfqid.getFQName()));
    assertTrue(!localfqid.getResourceName().equals(idfqid.getResourceName()));
}
Also used : IFQID(org.eclipse.ecf.presence.IFQID) ID(org.eclipse.ecf.core.identity.ID) IFQID(org.eclipse.ecf.presence.IFQID)

Example 2 with IFQID

use of org.eclipse.ecf.presence.IFQID in project ecf by eclipse.

the class FQIDTest method testFQID.

public void testFQID() throws Exception {
    final ID local = IDFactory.getDefault().createID(namespace, "foobar@ecf.eclipse.org:5333/myresource");
    assertNotNull(local);
    final IFQID localfqid = (IFQID) local.getAdapter(IFQID.class);
    assertNotNull(localfqid);
    assertNotNull(localfqid.getFQName());
    assertNotNull(localfqid.getResourceName());
}
Also used : IFQID(org.eclipse.ecf.presence.IFQID) ID(org.eclipse.ecf.core.identity.ID) IFQID(org.eclipse.ecf.presence.IFQID)

Example 3 with IFQID

use of org.eclipse.ecf.presence.IFQID in project ecf by eclipse.

the class FQIDTest method testFQID1.

public void testFQID1() throws Exception {
    final ID local = IDFactory.getDefault().createID(namespace, "foobar@ecf.eclipse.org:5333/myresource");
    assertNotNull(local);
    final IFQID localfqid = (IFQID) local.getAdapter(IFQID.class);
    assertNotNull(localfqid);
    assertNotNull(localfqid.getFQName());
    assertNotNull(localfqid.getResourceName());
    final IFQID idfqid = (IFQID) id1.getAdapter(IFQID.class);
    assertTrue(local.equals(id1));
    assertTrue(localfqid.getFQName().equals(idfqid.getFQName()));
    assertTrue(localfqid.getResourceName().equals(idfqid.getResourceName()));
}
Also used : IFQID(org.eclipse.ecf.presence.IFQID) ID(org.eclipse.ecf.core.identity.ID) IFQID(org.eclipse.ecf.presence.IFQID)

Example 4 with IFQID

use of org.eclipse.ecf.presence.IFQID in project ecf by eclipse.

the class FQIDTest method testFQID2.

public void testFQID2() throws Exception {
    final ID local = IDFactory.getDefault().createID(namespace, "foobar@ecf.eclipse.org:5333/myresource");
    assertNotNull(local);
    final IFQID localfqid = (IFQID) local.getAdapter(IFQID.class);
    assertNotNull(localfqid);
    assertNotNull(localfqid.getFQName());
    assertNotNull(localfqid.getResourceName());
    final IFQID idfqid = (IFQID) id2.getAdapter(IFQID.class);
    assertTrue(!localfqid.getFQName().equals(idfqid.getFQName()));
    assertTrue(!localfqid.getResourceName().equals(idfqid.getResourceName()));
}
Also used : IFQID(org.eclipse.ecf.presence.IFQID) ID(org.eclipse.ecf.core.identity.ID) IFQID(org.eclipse.ecf.presence.IFQID)

Aggregations

ID (org.eclipse.ecf.core.identity.ID)4 IFQID (org.eclipse.ecf.presence.IFQID)4