Bump yangtools to 4.0.1
[netconf.git] / restconf / restconf-nb-bierman02 / src / test / java / org / opendaylight / controller / sal / restconf / impl / test / DummyRpcResult.java
index 184f5755fb1d96a404c0966f6ea149843ffbddeb..ff0193745f70f28c70be407a2d9c08b9d975e97b 100644 (file)
@@ -7,7 +7,7 @@
  */
 package org.opendaylight.controller.sal.restconf.impl.test;
 
-import java.util.Collection;
+import java.util.List;
 import org.opendaylight.yangtools.yang.common.RpcError;
 import org.opendaylight.yangtools.yang.common.RpcResult;
 
@@ -15,7 +15,7 @@ public class DummyRpcResult<T> implements RpcResult<T> {
 
     private final boolean isSuccessful;
     private final T result;
-    private final Collection<RpcError> errors;
+    private final List<RpcError> errors;
 
     public DummyRpcResult() {
         isSuccessful = false;
@@ -40,14 +40,14 @@ public class DummyRpcResult<T> implements RpcResult<T> {
     }
 
     @Override
-    public Collection<RpcError> getErrors() {
+    public List<RpcError> getErrors() {
         return errors;
     }
 
     public static class Builder<T> {
         private boolean isSuccessful;
         private T result;
-        private Collection<RpcError> errors;
+        private List<RpcError> errors;
 
         public Builder<T> isSuccessful(final boolean successful) {
             this.isSuccessful = successful;
@@ -59,7 +59,7 @@ public class DummyRpcResult<T> implements RpcResult<T> {
             return this;
         }
 
-        public Builder<T> errors(final Collection<RpcError> newErrors) {
+        public Builder<T> errors(final List<RpcError> newErrors) {
             this.errors = newErrors;
             return this;
         }