use of org.eclipse.ecf.core.identity.Namespace in project ecf by eclipse.
the class GUIDTest method testEqualNamespaces.
public void testEqualNamespaces() throws Exception {
final ID id1 = createID();
final ID id2 = createID();
final Namespace ns1 = id1.getNamespace();
final Namespace ns2 = id2.getNamespace();
assertTrue(ns1.equals(ns2));
assertTrue(ns2.equals(ns2));
}
use of org.eclipse.ecf.core.identity.Namespace in project ecf by eclipse.
the class GUIDTest method testGetNamespace.
public void testGetNamespace() throws Exception {
final ID id = createID();
final Namespace ns = id.getNamespace();
assertNotNull(ns);
}
use of org.eclipse.ecf.core.identity.Namespace in project ecf by eclipse.
the class IIDNamespaceTest method testIDFactoryAddNamespace.
public void testIDFactoryAddNamespace() {
Namespace namespace = createNamespace();
int currentSize = fixture.getNamespaces().size();
Namespace ns = fixture.addNamespace(namespace);
assertNull(ns);
assertTrue(fixture.getNamespaces().size() == (currentSize + 1));
assertNotNull(fixture.removeNamespace(namespace));
}
use of org.eclipse.ecf.core.identity.Namespace in project ecf by eclipse.
the class LongIDTest method testGetNamespace.
public void testGetNamespace() throws Exception {
final ID id = createID();
final Namespace ns = id.getNamespace();
assertNotNull(ns);
}
use of org.eclipse.ecf.core.identity.Namespace in project ecf by eclipse.
the class NamespaceTest method testNewNamespaceCreateInstance.
public void testNewNamespaceCreateInstance() {
Namespace ns = createNamespace();
try {
ns.createInstance(null);
fail("createInstance did not return null");
} catch (IDCreateException e) {
}
}
Aggregations