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