X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=netconf%2Fsal-netconf-connector%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fnetconf%2Fsal%2Fconnect%2Fnetconf%2Fsal%2FNetconfDeviceSalProviderTest.java;h=bad640f1b3991aac04c6efba6ecb8ab4eb644f93;hb=d66ac046ed4a4a189e14e91d34476f3ed089b811;hp=16ca3da8cfe4d9364c51ee62e4b2deba14af8f96;hpb=a54728badc9bd59e60788baf22b2739f1d1f04be;p=netconf.git diff --git a/netconf/sal-netconf-connector/src/test/java/org/opendaylight/netconf/sal/connect/netconf/sal/NetconfDeviceSalProviderTest.java b/netconf/sal-netconf-connector/src/test/java/org/opendaylight/netconf/sal/connect/netconf/sal/NetconfDeviceSalProviderTest.java index 16ca3da8cf..bad640f1b3 100644 --- a/netconf/sal-netconf-connector/src/test/java/org/opendaylight/netconf/sal/connect/netconf/sal/NetconfDeviceSalProviderTest.java +++ b/netconf/sal-netconf-connector/src/test/java/org/opendaylight/netconf/sal/connect/netconf/sal/NetconfDeviceSalProviderTest.java @@ -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 +}