Cleanup DocumentedNode
[yangtools.git] / yang / yang-parser-impl / src / test / java / org / opendaylight / yangtools / yang / stmt / yin / YinFileGroupingStmtTest.java
index c16104fd93da93ba218f67844c3efb2e04a686a5..fe6ed76155c6fac7c0cb68d853ccc66aa2669e5d 100644 (file)
@@ -15,6 +15,7 @@ import java.io.IOException;
 import java.net.URISyntaxException;
 import java.util.Collection;
 import java.util.Iterator;
+import java.util.Optional;
 import java.util.Set;
 import org.junit.Before;
 import org.junit.Test;
@@ -49,12 +50,12 @@ public class YinFileGroupingStmtTest {
         final Iterator<GroupingDefinition> groupingsIterator = groupings.iterator();
         final GroupingDefinition grouping = groupingsIterator.next();
         assertEquals("service-ref", grouping.getQName().getLocalName());
-        assertEquals("Type of references to a particular service instance. This type\n"
+        assertEquals(Optional.of("Type of references to a particular service instance. This type\n"
                 + "can be used when defining module configuration to refer to a\n"
                 + "particular service instance. Containers using this grouping\n"
                 + "should not define anything else. The run-time implementation\n"
                 + "is expected to inject a reference to the service as the value\n"
-                + "of the container.", grouping.getDescription());
+                + "of the container."), grouping.getDescription());
 
         final Collection<DataSchemaNode> children = grouping.getChildNodes();
         assertEquals(2, children.size());