import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.fail;
-import java.net.URI;
import java.util.Collection;
import java.util.Set;
import org.junit.Test;
+import org.opendaylight.yangtools.yang.common.XMLNamespace;
import org.opendaylight.yangtools.yang.model.api.ExtensionDefinition;
import org.opendaylight.yangtools.yang.model.api.Module;
import org.opendaylight.yangtools.yang.model.api.SchemaContext;
SchemaContext schema = StmtTestUtils.parseYangSources("/bugs/bug4456");
assertNotNull(schema);
- Set<Module> modules = (Set<Module>) schema.findModules(URI.create("foo"));
+ Set<Module> modules = (Set<Module>) schema.findModules(XMLNamespace.of("foo"));
assertEquals(1, modules.size());
Module moduleFoo = modules.iterator().next();