added test case to TestSshConnectionMock.java 53/77853/2
authorSandeep J <sandeejh@in.ibm.com>
Tue, 5 Feb 2019 08:13:51 +0000 (13:43 +0530)
committerJoss Armstrong <joss.armstrong@ericsson.com>
Tue, 5 Feb 2019 14:57:54 +0000 (14:57 +0000)
to increase code coverage

Issue-ID: APPC-1086
Change-Id: Icbfd25c82b28783ea2afb7c6cd0411d72f6db12b
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
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());
+    }
 }