diff options
author | liamfallon <liam.fallon@est.tech> | 2019-10-14 16:29:10 +0100 |
---|---|---|
committer | liamfallon <liam.fallon@est.tech> | 2019-10-14 16:31:19 +0100 |
commit | 0403963b1b602962be626b7dea647aceb9152479 (patch) | |
tree | 11fbceec7b079a5cf0cbd68c7acb29e87d48c010 | |
parent | d9910ab36a8e13fafe00bbba3467504f986f4be2 (diff) |
Fix for change of interface in SDC client
SDC changed their interface for the SDC client, this change caused a
compile error.
Issue-ID: POLICY-2169
Change-Id: Ia6d134e9dacbbcf98081c6e71a1be87dd82fd55b
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 files changed, 4 insertions, 4 deletions
diff --git a/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/handling/sdc/SdcReceptionHandler.java b/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/handling/sdc/SdcReceptionHandler.java index c3d7e43b..9c336327 100644 --- a/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/handling/sdc/SdcReceptionHandler.java +++ b/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/handling/sdc/SdcReceptionHandler.java @@ -42,7 +42,7 @@ import org.onap.sdc.api.notification.IArtifactInfo; import org.onap.sdc.api.notification.INotificationData; import org.onap.sdc.api.results.IDistributionClientDownloadResult; import org.onap.sdc.api.results.IDistributionClientResult; -import org.onap.sdc.impl.DistributionClientFactory; +import org.onap.sdc.impl.DistributionClientImpl; import org.onap.sdc.utils.DistributionActionResultEnum; import org.onap.sdc.utils.DistributionStatusEnum; import org.slf4j.Logger; @@ -122,7 +122,7 @@ public class SdcReceptionHandler extends AbstractReceptionHandler implements INo * @return the {@link IDistributionClient} instance */ protected IDistributionClient createSdcDistributionClient() { - return DistributionClientFactory.createDistributionClient(); + return new DistributionClientImpl(); } /** diff --git a/plugins/reception-plugins/src/test/java/org/onap/policy/distribution/reception/handling/sdc/TestSdcReceptionHandler.java b/plugins/reception-plugins/src/test/java/org/onap/policy/distribution/reception/handling/sdc/TestSdcReceptionHandler.java index 57fbf1cc..4f64550b 100644 --- a/plugins/reception-plugins/src/test/java/org/onap/policy/distribution/reception/handling/sdc/TestSdcReceptionHandler.java +++ b/plugins/reception-plugins/src/test/java/org/onap/policy/distribution/reception/handling/sdc/TestSdcReceptionHandler.java @@ -56,11 +56,11 @@ import org.onap.policy.distribution.reception.handling.PluginHandler; import org.onap.policy.distribution.reception.parameters.PluginHandlerParameters; import org.onap.policy.distribution.reception.parameters.PolicyDecoderParameters; import org.onap.policy.distribution.reception.statistics.DistributionStatisticsManager; +import org.onap.sdc.api.IDistributionClient; import org.onap.sdc.api.notification.IArtifactInfo; import org.onap.sdc.api.notification.INotificationData; import org.onap.sdc.api.results.IDistributionClientDownloadResult; import org.onap.sdc.api.results.IDistributionClientResult; -import org.onap.sdc.impl.mock.DistributionClientStubImpl; import org.onap.sdc.utils.DistributionActionResultEnum; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -81,7 +81,7 @@ public class TestSdcReceptionHandler { @Mock private IDistributionClientResult failureClientInitResult; @Mock - private DistributionClientStubImpl distributionClient; + private IDistributionClient distributionClient; @Mock private IDistributionClientDownloadResult successfulClientDownloadResult; @Mock |