Integrate aai-schema-ingest library into aai-core
[aai/aai-common.git] / aai-schema-ingest / src / test / java / org / onap / aai / validation / edges / CousinDefaultingValidationModuleTest.java
index 86aa61d..a461381 100644 (file)
@@ -2,7 +2,7 @@
  * ============LICENSE_START=======================================================
  * org.onap.aai
  * ================================================================================
- * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+ * Copyright © 2017-18 AT&T Intellectual Property. All rights reserved.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,8 +16,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  * ============LICENSE_END=========================================================
- *
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
  */
 
 package org.onap.aai.validation.edges;
@@ -32,8 +30,7 @@ import java.util.Map;
 import org.junit.BeforeClass;
 import org.junit.Test;
 import org.onap.aai.edges.JsonIngestor;
-import org.onap.aai.setup.Version;
-import org.onap.aai.validation.edges.CousinDefaultingValidationModule;
+import org.onap.aai.setup.SchemaVersion;
 
 import com.jayway.jsonpath.DocumentContext;
 
@@ -43,13 +40,15 @@ public class CousinDefaultingValidationModuleTest {
 
        @BeforeClass
        public static void setUpBeforeClass() {
-               Map<Version, List<String>> testRules = new HashMap<>();
+               Map<SchemaVersion, List<String>> testRules = new HashMap<>();
                List<String> testFiles = new ArrayList<>();
                testFiles.add("src/test/resources/edgeRules/cousinDefaultValidationTest.json");
-               testRules.put(Version.getLatest(), testFiles);
+
+               SchemaVersion LATEST_VERSION = new SchemaVersion("v14");
+               testRules.put(LATEST_VERSION, testFiles);
                
                JsonIngestor ji = new JsonIngestor();
-               ctxs = ji.ingest(testRules).get(Version.getLatest());
+               ctxs = ji.ingest(testRules).get(LATEST_VERSION);
                validator = new CousinDefaultingValidationModule();
        }