Merge "Remove unused reference to Broker in NetconfDeviceSalProviderTest"
authorJakubToth <jakub.toth@pantheon.tech>
Mon, 26 Mar 2018 09:48:14 +0000 (09:48 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Mon, 26 Mar 2018 09:48:14 +0000 (09:48 +0000)
netconf/sal-netconf-connector/src/test/java/org/opendaylight/netconf/sal/connect/netconf/sal/NetconfDeviceSalProviderTest.java

index 16ca3da8cfe4d9364c51ee62e4b2deba14af8f96..bad640f1b3991aac04c6efba6ecb8ab4eb644f93 100644 (file)
@@ -30,13 +30,10 @@ import org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType;
 import org.opendaylight.controller.md.sal.common.api.data.TransactionChainListener;
 import org.opendaylight.controller.md.sal.dom.api.DOMMountPointService;
 import org.opendaylight.controller.sal.binding.api.BindingAwareBroker;
-import org.opendaylight.controller.sal.core.api.Broker;
 import org.opendaylight.netconf.sal.connect.util.RemoteDeviceId;
 
 public class NetconfDeviceSalProviderTest {
 
-    @Mock
-    private Broker.ProviderSession session;
     @Mock
     private DOMMountPointService mountpointService;
     @Mock
@@ -63,7 +60,6 @@ public class NetconfDeviceSalProviderTest {
         doReturn(Futures.immediateCheckedFuture(null)).when(writeTx).submit();
         provider = new NetconfDeviceSalProvider(new RemoteDeviceId("device1",
                 InetSocketAddress.createUnresolved("localhost", 17830)), mountPointService, dataBroker);
-        when(session.getService(DOMMountPointService.class)).thenReturn(mountpointService);
         when(context.getSALService(DataBroker.class)).thenReturn(dataBroker);
         when(chain.newWriteOnlyTransaction()).thenReturn(tx);
         when(tx.submit()).thenReturn(Futures.immediateCheckedFuture(null));
@@ -94,4 +90,4 @@ public class NetconfDeviceSalProviderTest {
         provider.close();
         verify(chain, times(2)).close();
     }
-}
\ No newline at end of file
+}