From cf65b483f546a9ed3e08f9417670d10122f46ab8 Mon Sep 17 00:00:00 2001 From: jjia Date: Mon, 31 Dec 2018 10:54:12 -0500 Subject: Update router core new schema ingest lib Issue-ID: AAI-2043 Change-Id: I609f548cf7fd6a28f041d39b1a68f7a2f01095fb Signed-off-by: jjia --- .../java/org/onap/aai/schema/OxmModelLoaderTest.java | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'src/test/java/org/onap') diff --git a/src/test/java/org/onap/aai/schema/OxmModelLoaderTest.java b/src/test/java/org/onap/aai/schema/OxmModelLoaderTest.java index f3e9091..6c221f7 100644 --- a/src/test/java/org/onap/aai/schema/OxmModelLoaderTest.java +++ b/src/test/java/org/onap/aai/schema/OxmModelLoaderTest.java @@ -32,6 +32,7 @@ import org.eclipse.persistence.jaxb.dynamic.DynamicJAXBContext; import org.eclipse.persistence.mappings.DatabaseMapping; import org.junit.Test; import org.junit.runner.RunWith; +import org.onap.aai.nodes.NodeIngestor; import org.onap.aai.setup.SchemaLocationsBean; import org.onap.aai.setup.SchemaVersions; import org.onap.aai.util.EntityOxmReferenceHelper; @@ -44,17 +45,20 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; @ContextConfiguration("file:src/test/resources/spring-beans/data-router-oxm.xml") public class OxmModelLoaderTest { - @Autowired - private SchemaVersions schemaVersions; - @Autowired - private SchemaLocationsBean schemaLocationsBean; - + @Autowired + private SchemaVersions schemaVersions; + @Autowired + private SchemaLocationsBean schemaLocationsBean; + @Autowired + private NodeIngestor nodeIngestor; + @Test public void testLoadingMultipleOxmFiles() { - + ArrayList externalOxmModelProcessors = new ArrayList(); externalOxmModelProcessors.add(EntityOxmReferenceHelper.getInstance()); OxmModelLoader.registerExternalOxmModelProcessors(externalOxmModelProcessors); + OxmModelLoader.setNodeIngestor(nodeIngestor); OxmModelLoader.loadModels(schemaVersions, schemaLocationsBean); DynamicJAXBContext jaxbContext = OxmModelLoader.getContextForVersion("v13", schemaVersions, schemaLocationsBean); -- cgit 1.2.3-korg