From df10d0be06468d55818fa734321c14827fef61bb Mon Sep 17 00:00:00 2001 From: Francis Toth Date: Fri, 26 Jun 2020 19:53:26 -0400 Subject: Clean CsarUtils::MainYamlWithDependencies Signed-off-by: Francis Toth Change-Id: I593dd7bb6a20445899a14da793e8c550e1e14e09 Issue-ID: SDC-2812 --- .../sdc/asdctool/impl/internal/tool/CsarGeneratorTest.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'asdctool/src/test') diff --git a/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/internal/tool/CsarGeneratorTest.java b/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/internal/tool/CsarGeneratorTest.java index c297c23218..b3bd487b55 100644 --- a/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/internal/tool/CsarGeneratorTest.java +++ b/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/internal/tool/CsarGeneratorTest.java @@ -95,9 +95,6 @@ public class CsarGeneratorTest { @Mock private ArtifactDefinition toscaCsar; - @Mock - ToscaRepresentation toscaRepresentation; - private static final String ANSWER = "yes"; private static final String UUID = "123"; private static final String UNIQUE_ID = "321"; @@ -235,9 +232,8 @@ public class CsarGeneratorTest { when(janusGraphDao.getChildVertex(graphVertex, EdgeLabelEnum.TOSCA_ARTIFACTS, JsonParseFlagEnum.ParseJson)).thenReturn(Either.left(graphVertex)); - when(toscaRepresentation.getMainYaml()).thenReturn(PAYLOAD); when(toscaExportHandler.exportComponent(component)) - .thenReturn(Either.left(toscaRepresentation)); + .thenReturn(Either.left(ToscaRepresentation.make(PAYLOAD.getBytes()))); when(csarUtils.createCsar(component, true, true)) .thenReturn(Either.left(PAYLOAD.getBytes())); -- cgit 1.2.3-korg