QName.create(RestconfModule.IETF_RESTCONF_QNAME, RestconfModule.LIB_VER_LEAF_SCHEMA_NODE));
final InstanceIdentifierContext<? extends SchemaNode> iid =
new InstanceIdentifierContext<>(yangIId, schemaNode, null, context);
- final NormalizedNode<?, ?> data =
- Builders.leafBuilder((LeafSchemaNode) schemaNode).withValue(IetfYangLibrary.REVISION).build();
+ final NormalizedNode<?, ?> data = Builders.leafBuilder((LeafSchemaNode) schemaNode)
+ .withValue(IetfYangLibrary.REVISION.toString()).build();
return new NormalizedNodeContext(iid, data);
}
*/
package org.opendaylight.restconf.nb.rfc8040.services.simple.impl;
-import org.junit.Assert;
+import static org.junit.Assert.assertEquals;
+
import org.junit.Test;
import org.opendaylight.restconf.common.context.NormalizedNodeContext;
import org.opendaylight.restconf.nb.rfc8040.Rfc8040.IetfYangLibrary;
final RestconfImpl restconfImpl = new RestconfImpl(schemaContextHandler);
final NormalizedNodeContext libraryVersion = restconfImpl.getLibraryVersion();
final LeafNode<?> value = (LeafNode<?>) libraryVersion.getData();
- Assert.assertEquals(IetfYangLibrary.REVISION, value.getValue());
+ assertEquals(IetfYangLibrary.REVISION.toString(), value.getValue());
}
}