Extract artifact component belonging logic 23/107223/8
authorFrancis Toth <francis.toth@yoppworks.com>
Mon, 4 May 2020 22:42:58 +0000 (18:42 -0400)
committerOfir Sonsino <ofir.sonsino@intl.att.com>
Thu, 28 May 2020 07:48:14 +0000 (07:48 +0000)
commit1de7b75829b3bf0c06ee7a8b3006b0edfb239420
tree7c45b2830a80d92de1b5d2f1d65a0b84984f52d4
parent9f7430db214092bba954fa07fd3e72e333116cfa
Extract artifact component belonging logic

This commit extracts checkArtifactInComponent and checkArtifactInResourceInstance from ArtifactsBusinessLogic. Tests have been added along with a some utility functions designed to generate randomized test data. The former tests were deleted as they were not doing any assertions.

Signed-off-by: Francis Toth <francis.toth@yoppworks.com>
Change-Id: I1b27c55d064cf4e9a40cd7b152e7ea6032a09276
Issue-ID: SDC-2961
catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ArtifactsBusinessLogic.java
catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/utils/ComponentUtils.java [new file with mode: 0644]
catalog-be/src/test/java/org/openecomp/sdc/be/components/impl/ArtifactsBusinessLogicTest.java
catalog-be/src/test/java/org/openecomp/sdc/be/components/impl/utils/ComponentUtilsTest.java [new file with mode: 0644]
catalog-be/src/test/java/org/openecomp/sdc/be/components/impl/utils/TestDataUtils.java [new file with mode: 0644]