diff options
author | Fiete Ostkamp <Fiete.Ostkamp@telekom.de> | 2024-02-26 14:03:09 +0100 |
---|---|---|
committer | Fiete Ostkamp <fiete.ostkamp@telekom.de> | 2024-02-26 13:08:47 +0000 |
commit | b7ad55e5d91527b259cb9189237b3f01915c31f8 (patch) | |
tree | 4fe3a6f134411450f6b19e07a4b965db580cd912 /aai-schema-ingest/src/test | |
parent | e190b0b67803241ad3a94a6c6396fc47a94e7fac (diff) |
Only load SchemaService related beans in aai-common when schema.translator.list=schema-service
- conditionally load schema-service related config, otherwise use the ConfigTranslator
- this prepares locally running traversal via mvn spring-boot:run
Issue-ID: AAI-3787
Change-Id: I9415802fb708933e8596b62e7540fa8a156e4cd6
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
Diffstat (limited to 'aai-schema-ingest/src/test')
-rw-r--r-- | aai-schema-ingest/src/test/java/org/onap/aai/testutils/ConfigTranslatorForWiringTest.java | 8 |
1 files changed, 4 insertions, 4 deletions
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 1d8e4bcb..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 @@ -32,14 +32,14 @@ import org.onap.aai.setup.SchemaVersion; public class ConfigTranslatorForWiringTest extends ConfigTranslator { - public ConfigTranslatorForWiringTest(SchemaLocationsBean bean, SchemaConfigVersions schemaVersions) { - super(bean, schemaVersions); + public ConfigTranslatorForWiringTest(SchemaLocationsBean schemaLocationsBean, SchemaConfigVersions schemaVersions) { + super(schemaLocationsBean, schemaVersions); } @Override public Map<SchemaVersion, List<String>> getNodeFiles() { - String f = bean.getNodeDirectory() + "test_business_v10.xml"; + String f = schemaLocationsBean.getNodeDirectory() + "test_business_v10.xml"; List<String> files = new ArrayList<>(); files.add(f); Map<SchemaVersion, List<String>> mp = new TreeMap<>(); @@ -49,7 +49,7 @@ public class ConfigTranslatorForWiringTest extends ConfigTranslator { @Override public Map<SchemaVersion, List<String>> getEdgeFiles() { - String f = bean.getEdgeDirectory() + "test.json"; + String f = schemaLocationsBean.getEdgeDirectory() + "test.json"; List<String> files = new ArrayList<>(); files.add(f); Map<SchemaVersion, List<String>> mp = new TreeMap<>(); |