Bug 584: Increate test coverage in binding-generator-util
[yangtools.git] / code-generator / binding-generator-util / src / test / java / org / opendaylight / yangtools / binding / generator / util / BindingTypesTest.java
index a2518e703d9a113c9d8d3e7a51dcb3447306bb64..3ebcf4e3f250a979396e816f12ed06733d890bd4 100644 (file)
@@ -7,12 +7,24 @@
  */
 package org.opendaylight.yangtools.binding.generator.util;
 
-import org.junit.Test;
-import org.opendaylight.yangtools.yang.binding.*;
-
 import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
 import static org.opendaylight.yangtools.binding.generator.util.Types.typeForClass;
 
+import org.junit.Test;
+import org.opendaylight.yangtools.sal.binding.model.api.ParameterizedType;
+import org.opendaylight.yangtools.yang.binding.Augmentable;
+import org.opendaylight.yangtools.yang.binding.Augmentation;
+import org.opendaylight.yangtools.yang.binding.BaseIdentity;
+import org.opendaylight.yangtools.yang.binding.DataObject;
+import org.opendaylight.yangtools.yang.binding.DataRoot;
+import org.opendaylight.yangtools.yang.binding.Identifiable;
+import org.opendaylight.yangtools.yang.binding.Identifier;
+import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
+import org.opendaylight.yangtools.yang.binding.Notification;
+import org.opendaylight.yangtools.yang.binding.NotificationListener;
+import org.opendaylight.yangtools.yang.binding.RpcService;
+
 public class BindingTypesTest {
 
     @Test
@@ -29,4 +41,16 @@ public class BindingTypesTest {
         assertEquals("NOTIFICATION_LISTENER", typeForClass(NotificationListener.class), BindingTypes.NOTIFICATION_LISTENER);
         assertEquals("RPC_SERVICE", typeForClass(RpcService.class), BindingTypes.RPC_SERVICE);
     }
+
+    @Test
+    public void testAugmentable() {
+        ParameterizedType augmentType = BindingTypes.augmentable(null);
+        assertNotNull(augmentType);
+    }
+
+    @Test
+    public void testChildOf() {
+        ParameterizedType childOfType = BindingTypes.childOf(null);
+        assertNotNull(childOfType);
+    }
 }
\ No newline at end of file