* ============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.
* 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;
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;
@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();
}