added test case to TestSshConnectionMock.java
[appc.git] / appc-adapters / appc-ssh-adapter / appc-ssh-adapter-tests / src / test / java / org / onap / appc / adapter / ssh / TestSshConnectionMock.java
index 750a3ba..2d157f1 100644 (file)
@@ -4,6 +4,8 @@
 * ================================================================================
 * Copyright 2018 TechMahindra
 *=================================================================================
+* Modifications Copyright 2019 IBM.
+*=================================================================================
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
@@ -79,4 +81,11 @@ public class TestSshConnectionMock {
         assertNotNull(sshConnectionMock.getExecutedCommands());
         assertEquals(false, sshConnectionMock.getExecutedCommands().isEmpty());
     }
+    
+    @Test
+    public void testExecTimeout()
+    {
+        sshConnectionMock.setExecTimeout(20);
+        assertEquals(20,sshConnectionMock.getExecTimeout());
+    }
 }