Refactor CsarUtils::writeComponentInterface 40/108540/3
authorFrancis Toth <francis.toth@yoppworks.com>
Wed, 20 May 2020 16:19:26 +0000 (12:19 -0400)
committerOfir Sonsino <ofir.sonsino@intl.att.com>
Tue, 2 Jun 2020 07:53:20 +0000 (07:53 +0000)
commitb6dc72ad96d5194fb7529ac39ec239ff92e3e7a2
tree4f6a1f09851bed98cdeb98a7c963f801c979b54b
parent6c16c0b33dcfeaf781e7ebfcd1bc2ee2fd38f5f0
Refactor CsarUtils::writeComponentInterface

This commit aims to decouple the zip file writing logic from the CsarUtils::writeComponentInterface function. This should provide a higher level of testability and maintenance thanks to inversion of control. An extra helper has also been added to help the migration from the FJ library to VAVR.

Signed-off-by: Francis Toth <francis.toth@yoppworks.com>
Change-Id: I4f2df4749cae3082906a80acc39045ac8887ec39
Issue-ID: SDC-2812
catalog-be/src/main/java/org/openecomp/sdc/be/tosca/CsarUtils.java
catalog-be/src/main/java/org/openecomp/sdc/be/tosca/FJToVavrHelper.java [new file with mode: 0644]
catalog-be/src/main/java/org/openecomp/sdc/be/tosca/ZipWriter.java [new file with mode: 0644]