fix sonar blocker try-with-resources 63/78763/1
authork.kazak <k.kazak@samsung.com>
Tue, 19 Feb 2019 14:39:56 +0000 (15:39 +0100)
committerk.kazak <k.kazak@samsung.com>
Tue, 19 Feb 2019 14:39:56 +0000 (15:39 +0100)
commit76845918c0e8a7739444ba8333f1581c33385a54
treeb5c75990b5df57d3bacc3eed5d60a8cbc964d58f
parentac892330d55c6a33f376f217fa6ec4464e361b02
fix sonar blocker try-with-resources

BpmnInstaller: use try-with-resources in containsWorkflows
remove unnecessary type casting to ZipEntry
BpmnInstallerTest: add tests for containsWorkflows
fix test for installBpmn (was silently failing with file not found)

Change-Id: I3122bcd19204bf498fe1a9b10630076e2df9d70b
Issue-ID: SO-1516
Signed-off-by: k.kazak <k.kazak@samsung.com>
asdc-controller/src/main/java/org/onap/so/asdc/installer/bpmn/BpmnInstaller.java
asdc-controller/src/test/java/org/onap/so/asdc/installer/bpmn/BpmnInstallerTest.java