Populate parser/ hierarchy
[yangtools.git] / parser / yang-parser-spi / src / test / java / org / opendaylight / yangtools / yang / parser / spi / NamespaceTest.java
diff --git a/parser/yang-parser-spi/src/test/java/org/opendaylight/yangtools/yang/parser/spi/NamespaceTest.java b/parser/yang-parser-spi/src/test/java/org/opendaylight/yangtools/yang/parser/spi/NamespaceTest.java
new file mode 100644 (file)
index 0000000..c8ae439
--- /dev/null
@@ -0,0 +1,29 @@
+/*
+ * Copyright (c) 2017 Pantheon Technologies s.r.o. and others.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+package org.opendaylight.yangtools.yang.parser.spi;
+
+import static org.junit.Assert.assertNotNull;
+
+import org.junit.Test;
+
+public class NamespaceTest {
+    @Test
+    public void testNamespaces() {
+        // Touch behaviors
+        // FIXME: add more checks/split this up when behaviours are testable
+        assertNotNull(ExtensionNamespace.BEHAVIOUR);
+        assertNotNull(GroupingNamespace.BEHAVIOUR);
+        assertNotNull(IdentityNamespace.BEHAVIOUR);
+        assertNotNull(ModuleNamespace.BEHAVIOUR);
+        assertNotNull(PreLinkageModuleNamespace.BEHAVIOUR);
+        assertNotNull(SubmoduleNamespace.BEHAVIOUR);
+        assertNotNull(TypeNamespace.BEHAVIOUR);
+
+        assertNotNull(NamespaceToModule.BEHAVIOUR);
+    }
+}