}
try {
- handLcmMsbServiceInfo();
+ handleLcmMsbServiceInfo();
} catch (Exception e) {
- logger.error("handLcmMsbServiceInfo error", e);
+ logger.error("handleLcmMsbServiceInfo error", e);
}
try {
- handCatalogMsbServiceInfo();
+ handleCatalogMsbServiceInfo();
} catch (Exception e) {
- logger.error("handCatalogMsbServiceInfo error", e);
+ logger.error("handleCatalogMsbServiceInfo error", e);
}
}
return CommonConstants.SCHEMA_HTTP + "://" + adaptorEnv.getMsbIp() + ":" + adaptorEnv.getMsbPort();
}
- private void handLcmMsbServiceInfo() throws ClientProtocolException, IOException {
+ private void handleLcmMsbServiceInfo() throws ClientProtocolException, IOException {
String urlInMsb = msbMgmr.getServiceUrlInMsbBySeriveNameAndVersion(adaptorEnv.getLcmServiceNameInMsb(), adaptorEnv.getLcmVersionInMsb());
adaptorEnv.setLcmUrlInMsb(urlInMsb);
adaptorEnv.setLcmApiUriFront(generateApiUriFront(urlInMsb));
}
- private void handCatalogMsbServiceInfo() throws ClientProtocolException, IOException {
+ private void handleCatalogMsbServiceInfo() throws ClientProtocolException, IOException {
String urlInMsb = msbMgmr.getServiceUrlInMsbBySeriveNameAndVersion(adaptorEnv.getCatalogServiceNameInMsb(), adaptorEnv.getCatalogVersionInMsb());
adaptorEnv.setCatalogUrlInMsb(urlInMsb);
adaptorEnv.setCatalogApiUriFront(generateApiUriFront(urlInMsb));
--- /dev/null
+/*
+ * Copyright 2016-2017, Nokia Corporation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.onap.vfc.nfvo.driver.vnfm.svnfm.http.client;
+
+import java.io.IOException;
+
+import org.apache.http.client.ClientProtocolException;
+import org.junit.Test;
+
+public class HttpClientProcessorImplTest {
+
+ @Test
+ public void testMultiClient() throws ClientProtocolException, IOException
+ {
+ HttpClientProcessorImpl processor = new HttpClientProcessorImpl();
+ processor.setHttpClientBuilder(HttpClientUtils.createHttpClientBuilder());
+ }
+}