diff options
author | Oren Kleks <orenkle@amdocs.com> | 2018-09-03 06:22:52 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-09-03 06:22:52 +0000 |
commit | 1542e7fc6e3572af4c815a8eef71709c91a3920d (patch) | |
tree | 04537747d9cd7e3c4af9fb7df3c2c97429269942 /workflow-designer-be/src/test/java | |
parent | 00f2f289f36dcdef8b71ad33abeea03a1e622497 (diff) | |
parent | 62cfb88262a300e57fb6d4780c066ca15cdc3aea (diff) |
Merge "Associate Artifact Test"
Diffstat (limited to 'workflow-designer-be/src/test/java')
-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; |