From 62cfb88262a300e57fb6d4780c066ca15cdc3aea Mon Sep 17 00:00:00 2001 From: ayalaben Date: Sun, 2 Sep 2018 10:06:41 +0300 Subject: Associate Artifact Test Change-Id: I263865dc628876823d1bdba36a130c1445399e96 Issue-ID: SDC-1535 Signed-off-by: ayalaben --- .../onap/sdc/workflow/api/ArtifactAssociationHandlerTest.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'workflow-designer-be/src/test') diff --git a/workflow-designer-be/src/test/java/org/onap/sdc/workflow/api/ArtifactAssociationHandlerTest.java b/workflow-designer-be/src/test/java/org/onap/sdc/workflow/api/ArtifactAssociationHandlerTest.java index b4fe7d39..b4d1180b 100644 --- a/workflow-designer-be/src/test/java/org/onap/sdc/workflow/api/ArtifactAssociationHandlerTest.java +++ b/workflow-designer-be/src/test/java/org/onap/sdc/workflow/api/ArtifactAssociationHandlerTest.java @@ -58,14 +58,12 @@ public class ArtifactAssociationHandlerTest { @Bean public RestTemplateBuilder templateBuilder() { - restTemplateBuilderMock = Mockito.mock(RestTemplateBuilder.class); - return restTemplateBuilderMock; + return Mockito.mock(RestTemplateBuilder.class); } @Bean public RestTemplate restTemplate() { - restClientMock = Mockito.mock(RestTemplate.class); - return restClientMock; + return Mockito.mock(RestTemplate.class); } } @@ -87,9 +85,9 @@ public class ArtifactAssociationHandlerTest { @Value("${sdc.be.external.password}") private String sdcPassword; - private static RestTemplate restClientMock; + @Autowired + private RestTemplate restClientMock; - private static RestTemplateBuilder restTemplateBuilderMock; @Autowired private ArtifactAssociationService associationService; -- cgit 1.2.3-korg