diff options
author | 2019-02-05 13:43:51 +0530 | |
---|---|---|
committer | 2019-02-05 14:57:54 +0000 | |
commit | 02eadec15d96ce2245cead47120d9170a7a4a51f (patch) | |
tree | 8ed82425015e00fa61d728abcccab9d90f446d80 /appc-adapters/appc-ssh-adapter/appc-ssh-adapter-tests/src | |
parent | e635553f8f4e535c4d1fce889a7d0986d6c0268c (diff) |
added test case to TestSshConnectionMock.java
to increase code coverage
Issue-ID: APPC-1086
Change-Id: Icbfd25c82b28783ea2afb7c6cd0411d72f6db12b
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
Diffstat (limited to 'appc-adapters/appc-ssh-adapter/appc-ssh-adapter-tests/src')
-rw-r--r-- | appc-adapters/appc-ssh-adapter/appc-ssh-adapter-tests/src/test/java/org/onap/appc/adapter/ssh/TestSshConnectionMock.java | 9 |
1 files changed, 9 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 750a3bafa..2d157f128 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 @@ -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()); + } } |