diff options
author | 2018-09-02 10:06:41 +0300 | |
---|---|---|
committer | 2018-09-02 10:06:41 +0300 | |
commit | 62cfb88262a300e57fb6d4780c066ca15cdc3aea (patch) | |
tree | fbf5b2c0519551bbc10baf5c9abe2e0fb7095317 /workflow-designer-be/src/test | |
parent | cebbe0144bce9b2e9ee1b390dc02389e9ce015d1 (diff) |
Associate Artifact Test
Change-Id: I263865dc628876823d1bdba36a130c1445399e96
Issue-ID: SDC-1535
Signed-off-by: ayalaben <ayala.benzvi@amdocs.com>
Diffstat (limited to 'workflow-designer-be/src/test')
-rw-r--r-- | workflow-designer-be/src/test/java/org/onap/sdc/workflow/api/ArtifactAssociationHandlerTest.java | 10 |
1 files changed, 4 insertions, 6 deletions
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; |