Cleanup DocumentedNode
[yangtools.git] / yang / yang-parser-impl / src / test / java / org / opendaylight / yangtools / yang / stmt / yin / YinFileTypeDefStmtTest.java
index e6be6abdd94e19323e9e5c059148f9266ddd71e8..d6b1590749d1dba089f83df1f4a682e80094ad39 100644 (file)
@@ -13,6 +13,7 @@ import static org.junit.Assert.assertNotNull;
 import java.io.IOException;
 import java.net.URISyntaxException;
 import java.util.Iterator;
+import java.util.Optional;
 import java.util.Set;
 import org.junit.Before;
 import org.junit.Test;
@@ -44,7 +45,7 @@ public class YinFileTypeDefStmtTest {
         Iterator<TypeDefinition<?>> typeDefIterator = typeDefs.iterator();
         TypeDefinition<?> typeDef = typeDefIterator.next();
         assertEquals("service-type-ref", typeDef.getQName().getLocalName());
-        assertEquals("Internal type of references to service type identity.", typeDef.getDescription());
+        assertEquals(Optional.of("Internal type of references to service type identity."), typeDef.getDescription());
         assertEquals("identityref", typeDef.getBaseType().getQName().getLocalName());
     }
 }