X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=aai-schema-ingest%2Fsrc%2Ftest%2Fjava%2Forg%2Fonap%2Faai%2Ftestutils%2FConfigTranslatorForWiringTest.java;h=a71131252c8b835ea896e95ecbd431b41195907a;hb=b7ad55e5d91527b259cb9189237b3f01915c31f8;hp=5e1b6c8264b3043556c3127a477d46577a0009a0;hpb=1fc5ce5b48f8c270d5d044356843b8a8566bdccc;p=aai%2Faai-common.git diff --git a/aai-schema-ingest/src/test/java/org/onap/aai/testutils/ConfigTranslatorForWiringTest.java b/aai-schema-ingest/src/test/java/org/onap/aai/testutils/ConfigTranslatorForWiringTest.java index 5e1b6c82..a7113125 100644 --- a/aai-schema-ingest/src/test/java/org/onap/aai/testutils/ConfigTranslatorForWiringTest.java +++ b/aai-schema-ingest/src/test/java/org/onap/aai/testutils/ConfigTranslatorForWiringTest.java @@ -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,45 +16,45 @@ * 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.testutils; import java.util.ArrayList; -import java.util.EnumMap; import java.util.List; import java.util.Map; +import java.util.TreeMap; import org.onap.aai.setup.ConfigTranslator; +import org.onap.aai.setup.SchemaConfigVersions; import org.onap.aai.setup.SchemaLocationsBean; -import org.onap.aai.setup.Version; +import org.onap.aai.setup.SchemaVersion; public class ConfigTranslatorForWiringTest extends ConfigTranslator { - public ConfigTranslatorForWiringTest(SchemaLocationsBean bean) { - super(bean); - } - - @Override - public Map> getNodeFiles() { - String f = bean.getNodeDirectory() + "test_business_v10.xml"; - List files = new ArrayList<>(); - files.add(f); - Map> mp = new EnumMap<>(Version.class); - mp.put(Version.V10, files); - return mp; - } - - @Override - public Map> getEdgeFiles() { - String f = bean.getEdgeDirectory() + "test.json"; - List files = new ArrayList<>(); - files.add(f); - Map> mp = new EnumMap<>(Version.class); - mp.put(Version.V10, files); - return mp; - } + public ConfigTranslatorForWiringTest(SchemaLocationsBean schemaLocationsBean, SchemaConfigVersions schemaVersions) { + super(schemaLocationsBean, schemaVersions); + } + + @Override + public Map> getNodeFiles() { + + String f = schemaLocationsBean.getNodeDirectory() + "test_business_v10.xml"; + List files = new ArrayList<>(); + files.add(f); + Map> mp = new TreeMap<>(); + mp.put(new SchemaVersion("v10"), files); + return mp; + } + + @Override + public Map> getEdgeFiles() { + String f = schemaLocationsBean.getEdgeDirectory() + "test.json"; + List files = new ArrayList<>(); + files.add(f); + Map> mp = new TreeMap<>(); + mp.put(new SchemaVersion("v10"), files); + return mp; + } }