[AAI-2531] | Update springboot to 2.1.12.RELEASE
[aai/sparky-be.git] / sparkybe-onap-service / src / test / java / org / onap / aai / sparky / synchronizer / GizmoEntitySummarizer.java
index 5ea5280..6669dbc 100644 (file)
@@ -1,3 +1,24 @@
+/**
+ * ============LICENSE_START=======================================================
+ * org.onap.aai
+ * ================================================================================
+ * Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
+ * Copyright © 2017-2018 Amdocs
+ * ================================================================================
+ * 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.
+ * ============LICENSE_END=========================================================
+ */
+
 package org.onap.aai.sparky.synchronizer;
 
 import static java.util.concurrent.CompletableFuture.supplyAsync;
@@ -19,6 +40,7 @@ import org.onap.aai.restclient.enums.RestAuthenticationMode;
 import org.onap.aai.sparky.config.oxm.OxmModelLoader;
 import org.onap.aai.sparky.dal.GizmoAdapter;
 import org.onap.aai.sparky.dal.exception.ElasticSearchOperationException;
+import org.onap.aai.sparky.dal.exception.ElasticSearchOperationExceptionTest;
 import org.onap.aai.sparky.dal.rest.RestClientConstructionException;
 import org.onap.aai.sparky.dal.rest.config.RestEndpointConfig;
 import org.onap.aai.sparky.logging.AaiUiMsgs;
@@ -44,9 +66,9 @@ public class GizmoEntitySummarizer {
         */
 
        public GizmoEntitySummarizer()
-                       throws ElasticSearchOperationException, IOException, RestClientConstructionException {
+                       throws ElasticSearchOperationExceptionTest, IOException, RestClientConstructionException, ElasticSearchOperationException {
 
-               OxmModelAndProcessorHelper.API_VERSION_OVERRIDE = 11;
+               OxmModelAndProcessorHelper.API_VERSION_OVERRIDE = "v11";
 
                this.gizmoExecutor = NodeUtils.createNamedExecutor("GIZMO-WORKER", 5, logger);
 
@@ -70,7 +92,6 @@ public class GizmoEntitySummarizer {
                gizmoConfig.setValidateServerHostname(false);
 
                gizmoAdapter = new GizmoAdapter(oxmModelLoader, gizmoConfig);
-
                gizmoAdapter.setInventoryBasePath("/services/inventory/v12/");
                gizmoAdapter.setRelationshipsBasePath("/services/inventory/relationships/v12/");
 
@@ -219,7 +240,7 @@ public class GizmoEntitySummarizer {
        }
 
        public static void main(String[] args)
-                       throws ElasticSearchOperationException, IOException, RestClientConstructionException {
+                       throws ElasticSearchOperationExceptionTest, IOException, RestClientConstructionException, ElasticSearchOperationException {
 
                System.setProperty("CONFIG_HOME", "X:\\2018_dev\\OSEAAI\\gizmo_integration\\onap_sparky-be\\appconfig-local\\");
                GizmoEntitySummarizer gizmoSummarizer = new GizmoEntitySummarizer();