Cleanup DocumentedNode
[yangtools.git] / yang / yang-model-util / src / test / java / org / opendaylight / yangtools / yang / model / util / EmptyTypeTest.java
index 366e81b912a7888591dc1f3fbc76513802dbd1ce..cb2ec8777a1f8ed44d8384756f64d96e18a2cf90 100644 (file)
@@ -8,7 +8,7 @@
 package org.opendaylight.yangtools.yang.model.util;
 
 import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNull;
+import static org.junit.Assert.assertFalse;
 import static org.junit.Assert.assertTrue;
 import static org.opendaylight.yangtools.yang.model.util.type.BaseTypes.emptyType;
 
@@ -29,9 +29,9 @@ public class EmptyTypeTest {
         assertEquals("BaseType", null, emptyType.getBaseType());
         assertEquals("DefaultValue", null, emptyType.getDefaultValue());
         assertEquals("Status", Status.CURRENT, emptyType.getStatus());
-        assertNull("Reference", emptyType.getReference());
+        assertFalse(emptyType.getReference().isPresent());
         assertEquals("Units", null, emptyType.getUnits());
-        assertNull("Description is not null", emptyType.getDescription());
+        assertFalse(emptyType.getDescription().isPresent());
         assertEquals("UnknownSchemaNodes", Collections.EMPTY_LIST, emptyType.getUnknownSchemaNodes());
         assertTrue("toString", emptyType.toString().contains("empty"));
     }