From d0f6747e336038b87a23b07dac8986d9c92312da Mon Sep 17 00:00:00 2001 From: Sandeep J Date: Mon, 8 Apr 2019 20:37:02 +0530 Subject: added test case to TestRestartServer.java to increase code coverage Issue-ID: APPC-1086 Change-Id: Id64f507cb3cb4102c79dfb5c454785ac2814cec5 Signed-off-by: Sandeep J --- .../iaas/provider/operation/impl/TestRestartServer.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/test/java/org/onap/appc/adapter/iaas/provider/operation/impl/TestRestartServer.java b/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/test/java/org/onap/appc/adapter/iaas/provider/operation/impl/TestRestartServer.java index 850f72ad5..08361b256 100644 --- a/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/test/java/org/onap/appc/adapter/iaas/provider/operation/impl/TestRestartServer.java +++ b/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/test/java/org/onap/appc/adapter/iaas/provider/operation/impl/TestRestartServer.java @@ -76,4 +76,14 @@ public class TestRestartServer { InOrder inOrderTest = inOrder(server); inOrderTest.verify(server).start(); } + + @Test + public void pauseServerError() throws ZoneException, UnknownProviderException { + MockGenerator mg = new MockGenerator(Status.ERROR); + Server server = mg.getServer(); + RestartServer rbs = new RestartServer(); + rbs.setProviderCache(mg.getProviderCacheMap()); + rbs.executeProviderOperation(mg.getParams(), mg.getSvcLogicContext()); + + } } \ No newline at end of file -- cgit 1.2.3-korg