Bump yangtools to 3.0.8
[mdsal.git] / binding / mdsal-binding-generator-impl / src / test / java / org / opendaylight / mdsal / binding / yang / types / TestLeafSchemaNode.java
index 1df258a0e5e44a5a2a16d67e795304434369a7b9..239cf242338abbda82c94caa4bb97ba287fdfd5f 100644 (file)
@@ -5,9 +5,9 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-
 package org.opendaylight.mdsal.binding.yang.types;
 
+import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableSet;
 import java.util.Collection;
 import java.util.List;
@@ -49,17 +49,17 @@ public class TestLeafSchemaNode implements LeafSchemaNode {
 
     @Override
     public QName getQName() {
-        return null;
+        throw new UnsupportedOperationException();
     }
 
     @Override
     public SchemaPath getPath() {
-        return null;
+        throw new UnsupportedOperationException();
     }
 
     @Override
     public List<UnknownSchemaNode> getUnknownSchemaNodes() {
-        return null;
+        return ImmutableList.of();
     }
 
     @Override
@@ -72,8 +72,9 @@ public class TestLeafSchemaNode implements LeafSchemaNode {
         return Optional.empty();
     }
 
-    @Override public Status getStatus() {
-        return null;
+    @Override
+    public Status getStatus() {
+        return Status.CURRENT;
     }
 
     @Override