Migrate Collections references
[netconf.git] / apps / netconf-topology-singleton / src / test / java / org / opendaylight / netconf / topology / singleton / impl / netconf / ProxyNetconfServiceTest.java
index 3f8505951d49c78b683d0b9a3190dd2f4d6ef415..bba72ed6f3d26df4be96f484785e3702f768dbf6 100644 (file)
@@ -20,7 +20,7 @@ import akka.testkit.javadsl.TestKit;
 import akka.util.Timeout;
 import com.google.common.util.concurrent.ListenableFuture;
 import java.net.InetSocketAddress;
-import java.util.Collections;
+import java.util.List;
 import java.util.Optional;
 import java.util.concurrent.ExecutionException;
 import java.util.concurrent.TimeUnit;
@@ -31,7 +31,7 @@ import org.junit.Test;
 import org.opendaylight.mdsal.common.api.LogicalDatastoreType;
 import org.opendaylight.mdsal.common.api.ReadFailedException;
 import org.opendaylight.netconf.api.DocumentedException;
-import org.opendaylight.netconf.sal.connect.api.RemoteDeviceId;
+import org.opendaylight.netconf.client.mdsal.api.RemoteDeviceId;
 import org.opendaylight.netconf.topology.singleton.messages.NormalizedNodeMessage;
 import org.opendaylight.netconf.topology.singleton.messages.netconf.CommitRequest;
 import org.opendaylight.netconf.topology.singleton.messages.netconf.CreateEditConfigRequest;
@@ -58,7 +58,7 @@ import org.opendaylight.yangtools.yang.data.impl.schema.Builders;
 public class ProxyNetconfServiceTest {
     private static final RemoteDeviceId DEVICE_ID =
         new RemoteDeviceId("dev1", InetSocketAddress.createUnresolved("localhost", 17830));
-    private static final YangInstanceIdentifier PATH = YangInstanceIdentifier.empty();
+    private static final YangInstanceIdentifier PATH = YangInstanceIdentifier.of();
     private static final LogicalDatastoreType STORE = LogicalDatastoreType.CONFIGURATION;
 
     private static ActorSystem system = ActorSystem.apply();
@@ -292,7 +292,7 @@ public class ProxyNetconfServiceTest {
         throws InterruptedException, ExecutionException, TimeoutException {
         final ListenableFuture<?> submit = netconf.commit();
         masterActor.expectMsgClass(CommitRequest.class);
-        masterActor.reply(new InvokeRpcMessageReply(null, Collections.emptyList()));
+        masterActor.reply(new InvokeRpcMessageReply(null, List.of()));
         submit.get(5, TimeUnit.SECONDS);
     }
 
@@ -303,4 +303,4 @@ public class ProxyNetconfServiceTest {
         assertEquals(ErrorTag.OPERATION_FAILED, de.getErrorTag());
         assertEquals(ErrorType.APPLICATION, de.getErrorType());
     }
-}
\ No newline at end of file
+}