Refactor NetconfKeystoreAdapter
[netconf.git] / apps / callhome-provider / src / test / java / org / opendaylight / netconf / callhome / mount / CallHomeMountDispatcherTest.java
index 8f32dcec53e5243d956210f5829103190c6af00a..475c0ff070e1b68bee7618a95027e9ab2d984f57 100644 (file)
@@ -34,6 +34,7 @@ import org.opendaylight.netconf.client.NetconfClientSessionListener;
 import org.opendaylight.netconf.client.conf.NetconfClientConfiguration;
 import org.opendaylight.netconf.client.conf.NetconfClientConfigurationBuilder;
 import org.opendaylight.netconf.client.mdsal.api.BaseNetconfSchemas;
+import org.opendaylight.netconf.client.mdsal.api.NetconfKeystoreAdapter;
 import org.opendaylight.netconf.client.mdsal.api.SchemaResourceManager;
 import org.opendaylight.netconf.nettyutil.ReconnectStrategy;
 import org.opendaylight.netconf.nettyutil.handler.ssh.authentication.AuthenticationHandler;
@@ -56,6 +57,7 @@ public class CallHomeMountDispatcherTest {
     private CallHomeProtocolSessionContext mockProtoSess;
     private AAAEncryptionService mockEncryptionService;
     private BaseNetconfSchemas mockBaseSchemas;
+    private NetconfKeystoreAdapter mockKeystoreAdapter;
 
     @Before
     public void setup() {
@@ -71,10 +73,11 @@ public class CallHomeMountDispatcherTest {
         mockProtoSess = mock(CallHomeProtocolSessionContext.class);
         mockEncryptionService = mock(AAAEncryptionService.class);
         mockBaseSchemas = mock(BaseNetconfSchemas.class);
+        mockKeystoreAdapter = mock(NetconfKeystoreAdapter.class);
 
         instance = new CallHomeMountDispatcher(topologyId, mockExecutor, mockKeepAlive,
                 mockProcessingExecutor, mockSchemaRepoProvider, mockBaseSchemas, mockDataBroker, mockMount,
-                mockEncryptionService) {
+                mockEncryptionService, mockKeystoreAdapter) {
             @Override
             CallHomeMountSessionManager sessionManager() {
                 return mockSessMgr;