summaryrefslogtreecommitdiffstats
path: root/appc-adapters
diff options
context:
space:
mode:
authorSandeep J <sandeejh@in.ibm.com>2019-02-07 12:45:14 +0530
committerJoss Armstrong <joss.armstrong@ericsson.com>2019-02-07 15:37:38 +0000
commit5291fa8d2b0929e89c76ee6239864fa205f559b5 (patch)
tree69c2ab05ed310c05ec0425beb0c05aa8429e6ffe /appc-adapters
parenta7c2d9c05b86c797cd2df007ca7c461b9956b47b (diff)
added test cases to TestSshConnectionMock.java
to increase code coverage Issue-ID: APPC-1086 Change-Id: Iea79d58378564cb0ab847a9ff55a30b8d20833c7 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
Diffstat (limited to 'appc-adapters')
-rw-r--r--appc-adapters/appc-ssh-adapter/appc-ssh-adapter-tests/src/test/java/org/onap/appc/adapter/ssh/TestSshConnectionMock.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/appc-adapters/appc-ssh-adapter/appc-ssh-adapter-tests/src/test/java/org/onap/appc/adapter/ssh/TestSshConnectionMock.java b/appc-adapters/appc-ssh-adapter/appc-ssh-adapter-tests/src/test/java/org/onap/appc/adapter/ssh/TestSshConnectionMock.java
index 2d157f128..9443f3d8e 100644
--- a/appc-adapters/appc-ssh-adapter/appc-ssh-adapter-tests/src/test/java/org/onap/appc/adapter/ssh/TestSshConnectionMock.java
+++ b/appc-adapters/appc-ssh-adapter/appc-ssh-adapter-tests/src/test/java/org/onap/appc/adapter/ssh/TestSshConnectionMock.java
@@ -88,4 +88,16 @@ public class TestSshConnectionMock {
sshConnectionMock.setExecTimeout(20);
assertEquals(20,sshConnectionMock.getExecTimeout());
}
+
+ @Test
+ public void testConnectCallCount()
+ {
+ assertEquals(0, sshConnectionMock.getConnectCallCount());
+ }
+
+ @Test
+ public void testDisconnectCallCount()
+ {
+ assertEquals(0, sshConnectionMock.getDisconnectCallCount());
+ }
}