X-Git-Url: https://gerrit.onap.org/r/gitweb?p=aai%2Fmodel-loader.git;a=blobdiff_plain;f=src%2Ftest%2Fjava%2Forg%2Fonap%2Faai%2Fmodelloader%2Fservice%2FMockBabelServiceClientFactory.java;fp=src%2Fmain%2Fjava%2Forg%2Fonap%2Faai%2Fmodelloader%2Frestclient%2FBabelServiceClientFactory.java;h=fa369ce9b09153f4105eaa6c44c4a4ddf97ed3c7;hp=4354710686985d0cb4621844a3968d8826a2932e;hb=c5aea4a8bc398fc1c6220875e55b9520fd7f7524;hpb=ce332032dd208c5c769a2297409d8aca3f780fa8 diff --git a/src/main/java/org/onap/aai/modelloader/restclient/BabelServiceClientFactory.java b/src/test/java/org/onap/aai/modelloader/service/MockBabelServiceClientFactory.java similarity index 63% rename from src/main/java/org/onap/aai/modelloader/restclient/BabelServiceClientFactory.java rename to src/test/java/org/onap/aai/modelloader/service/MockBabelServiceClientFactory.java index 4354710..fa369ce 100644 --- a/src/main/java/org/onap/aai/modelloader/restclient/BabelServiceClientFactory.java +++ b/src/test/java/org/onap/aai/modelloader/service/MockBabelServiceClientFactory.java @@ -1,5 +1,5 @@ /** - * ============LICENSE_START======================================================= + * ============LICENSE_START======================================================= * org.onap.aai * ================================================================================ * Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved. @@ -18,21 +18,20 @@ * limitations under the License. * ============LICENSE_END========================================================= */ -package org.onap.aai.modelloader.restclient; +package org.onap.aai.modelloader.service; -import java.io.IOException; -import java.security.KeyManagementException; -import java.security.KeyStoreException; -import java.security.NoSuchAlgorithmException; -import java.security.UnrecoverableKeyException; -import java.security.cert.CertificateException; import org.onap.aai.modelloader.config.ModelLoaderConfig; +import org.onap.aai.modelloader.restclient.BabelServiceClient; +import org.onap.aai.modelloader.restclient.BabelServiceClientException; +import org.onap.aai.modelloader.restclient.MockBabelServiceClient; +import org.springframework.stereotype.Service; -public class BabelServiceClientFactory { +@Service +public class MockBabelServiceClientFactory implements BabelServiceClientFactory { - public BabelServiceClient create(ModelLoaderConfig config) throws UnrecoverableKeyException, KeyManagementException, - NoSuchAlgorithmException, KeyStoreException, CertificateException, IOException { - return new BabelServiceClient(config); + @Override + public BabelServiceClient create(ModelLoaderConfig config) throws BabelServiceClientException { + return new MockBabelServiceClient(config); } }