From 8230f5424945bdfcb65a7d3df2c2e6b06ca80ef7 Mon Sep 17 00:00:00 2001 From: Sandeep J Date: Thu, 17 Jan 2019 16:25:05 +0530 Subject: added test cases to ConfigComponentAdaptorTest to increase code coverage Issue-ID: APPC-1086 Change-Id: I41734fcfc86da21114daacedaab02fbb2de86504 Signed-off-by: Sandeep J --- .../onap/appc/ccadaptor/ConfigComponentAdaptorTest.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/appc-config/appc-config-adaptor/provider/src/test/java/org/onap/appc/ccadaptor/ConfigComponentAdaptorTest.java b/appc-config/appc-config-adaptor/provider/src/test/java/org/onap/appc/ccadaptor/ConfigComponentAdaptorTest.java index eae53a836..8e8c156ed 100644 --- a/appc-config/appc-config-adaptor/provider/src/test/java/org/onap/appc/ccadaptor/ConfigComponentAdaptorTest.java +++ b/appc-config/appc-config-adaptor/provider/src/test/java/org/onap/appc/ccadaptor/ConfigComponentAdaptorTest.java @@ -6,7 +6,7 @@ * ================================================================================ * Copyright (C) 2017 Amdocs * ============================================================================= - * Modification Copyright (C) 2018 IBM. + * Modifications Copyright (C) 2018-2019 IBM. * ============================================================================= * Modifications Copyright (C) 2018 Ericsson * ============================================================================= @@ -407,6 +407,18 @@ public class ConfigComponentAdaptorTest { CoreMatchers.containsString("")); } + @Test + public void testActivateMethod() { + ConfigComponentAdaptor config= new ConfigComponentAdaptor(new Properties()); + assertEquals(ConfigStatus.SUCCESS, config.activate("test", new SvcLogicContext())); + } + + @Test + public void testDeactivateMethod() { + ConfigComponentAdaptor config= new ConfigComponentAdaptor(new Properties()); + assertEquals(ConfigStatus.SUCCESS, config.deactivate("test", new SvcLogicContext())); + } + @Test public void testStaticReadFileExceptionFlow() { assertEquals("", ConfigComponentAdaptor._readFile("NON_EXISTENT_FILE")); -- cgit 1.2.3-korg