Change Uint* IAE messages
[yangtools.git] / yang / yang-common / src / test / java / org / opendaylight / yangtools / yang / common / Uint64Test.java
index 64bdf9fcf7fc792866ce9403e12ee3e0e11f4fde..707b27ea88bd000fcf318be74a66a1158ff5e0af 100644 (file)
@@ -144,4 +144,14 @@ public class Uint64Test {
     public void testBigBigInteger() {
         Uint64.valueOf(new BigInteger("0x10000000000000000"));
     }
+
+    @Test(expected = NullPointerException.class)
+    public void testNullValueOfString() {
+        Uint64.valueOf((String) null);
+    }
+
+    @Test(expected = NullPointerException.class)
+    public void testNullValueOfBigInteger() {
+        Uint64.valueOf((BigInteger) null);
+    }
 }