refactored code in ExecuteNodeActionImpl.java 45/61545/4
authorSandeep J <sandeejh@in.ibm.com>
Tue, 21 Aug 2018 11:18:38 +0000 (16:48 +0530)
committerTakamune Cho <tc012c@att.com>
Fri, 31 Aug 2018 12:42:40 +0000 (12:42 +0000)
commit427428023f01af5ff4d2683ce260b25f58e43865
treeca8f559f1962fe70374a9253b1f8879c387d7935
parent9197e727349f035c9f782f5e841c4b3e2f2ff1f5
refactored code in ExecuteNodeActionImpl.java

created a method a called getVserverRelations(SvcLogicContext vnfCtx,
SvcLogicContext ctx) having the logic for looping through relationship-list
data, to get vserver relations. This piece of code was earlier not
covered by test cases. By putting this logic in a separate method, we
will be able to write a specific test case for this logic and will be
able to increase the code coverage by a big amount.

Issue-ID: APPC-1086
Change-Id: Iffa2a4f04a1fd2b93edc4bcdfef8625f196a305e
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
appc-dg-util/appc-dg-util-bundle/src/main/java/org/onap/appc/dg/util/impl/ExecuteNodeActionImpl.java