From 5291fa8d2b0929e89c76ee6239864fa205f559b5 Mon Sep 17 00:00:00 2001 From: Sandeep J Date: Thu, 7 Feb 2019 12:45:14 +0530 Subject: added test cases to TestSshConnectionMock.java to increase code coverage Issue-ID: APPC-1086 Change-Id: Iea79d58378564cb0ab847a9ff55a30b8d20833c7 Signed-off-by: Sandeep J --- .../org/onap/appc/adapter/ssh/TestSshConnectionMock.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'appc-adapters/appc-ssh-adapter/appc-ssh-adapter-tests/src') 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()); + } } -- cgit 1.2.3-korg