diff options
author | 2019-04-09 21:04:15 +0000 | |
---|---|---|
committer | 2019-04-09 21:04:15 +0000 | |
commit | 4bba3fc57cddd367ee472b2007b37ff568416c7b (patch) | |
tree | 11e6735895967ca4d09213cbc7109a124bf78f26 /aai-traversal/src/test/java/org | |
parent | 341ccc32f1d6ad31849ccb902e490765643b965d (diff) | |
parent | 4dcbab601ce4d89416193441a0443a717868846c (diff) |
Merge "Update traversal to use schema ingest changes"
Diffstat (limited to 'aai-traversal/src/test/java/org')
4 files changed, 9 insertions, 9 deletions
diff --git a/aai-traversal/src/test/java/org/onap/aai/AAISetup.java b/aai-traversal/src/test/java/org/onap/aai/AAISetup.java index 42964eb..d43cde9 100644 --- a/aai-traversal/src/test/java/org/onap/aai/AAISetup.java +++ b/aai-traversal/src/test/java/org/onap/aai/AAISetup.java @@ -51,8 +51,7 @@ import org.springframework.test.context.junit4.rules.SpringClassRule; import org.springframework.test.context.junit4.rules.SpringMethodRule; @ContextConfiguration(classes = { - SchemaLocationsBean.class, - SchemaVersions.class, + ConfigConfiguration.class, AAIConfigTranslator.class, EdgeIngestor.class, EdgeSerializer.class, diff --git a/aai-traversal/src/test/java/org/onap/aai/HttpTestUtil.java b/aai-traversal/src/test/java/org/onap/aai/HttpTestUtil.java index 79e6cac..cfe15a1 100644 --- a/aai-traversal/src/test/java/org/onap/aai/HttpTestUtil.java +++ b/aai-traversal/src/test/java/org/onap/aai/HttpTestUtil.java @@ -39,6 +39,7 @@ import org.onap.aai.setup.SchemaVersion; import org.onap.aai.setup.SchemaVersions; import javax.ws.rs.core.*; +import javax.xml.validation.Schema; import java.io.UnsupportedEncodingException; import java.net.URI; import java.util.*; @@ -68,7 +69,7 @@ public class HttpTestUtil extends RESTAPI { public void init(){ - schemaVersions = SpringContextAware.getBean(SchemaVersions.class); + schemaVersions = (SchemaVersions) SpringContextAware.getBean("schemaVersions"); httpHeaders = Mockito.mock(HttpHeaders.class); uriInfo = Mockito.mock(UriInfo.class); diff --git a/aai-traversal/src/test/java/org/onap/aai/rest/search/OnapQueryTest.java b/aai-traversal/src/test/java/org/onap/aai/rest/search/OnapQueryTest.java index 838489f..d92b902 100644 --- a/aai-traversal/src/test/java/org/onap/aai/rest/search/OnapQueryTest.java +++ b/aai-traversal/src/test/java/org/onap/aai/rest/search/OnapQueryTest.java @@ -34,6 +34,7 @@ import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import org.mockito.Mock; import org.mockito.MockitoAnnotations; +import org.onap.aai.config.ConfigConfiguration; import org.onap.aai.config.IntrospectionConfig; import org.onap.aai.config.SearchConfiguration; import org.onap.aai.config.SpringContextAware; @@ -71,8 +72,7 @@ import static org.mockito.Mockito.when; @RunWith(Parameterized.class) @ContextConfiguration(classes = { - SchemaLocationsBean.class, - SchemaVersions.class, + ConfigConfiguration.class, AAIConfigTranslator.class, EdgeIngestor.class, EdgeSerializer.class, diff --git a/aai-traversal/src/test/java/org/onap/aai/rest/search/QueryTest.java b/aai-traversal/src/test/java/org/onap/aai/rest/search/QueryTest.java index 0bc4dbe..005b5e7 100644 --- a/aai-traversal/src/test/java/org/onap/aai/rest/search/QueryTest.java +++ b/aai-traversal/src/test/java/org/onap/aai/rest/search/QueryTest.java @@ -34,6 +34,7 @@ import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import org.mockito.Mock; import org.mockito.MockitoAnnotations; +import org.onap.aai.config.ConfigConfiguration; import org.onap.aai.config.IntrospectionConfig; import org.onap.aai.config.SearchConfiguration; import org.onap.aai.config.SpringContextAware; @@ -48,7 +49,7 @@ import org.onap.aai.nodes.NodeIngestor; import org.onap.aai.setup.AAIConfigTranslator; import org.onap.aai.setup.SchemaLocationsBean; import org.onap.aai.setup.SchemaVersion; -import org.onap.aai.setup.SchemaVersions; +import org.onap.aai.setup.SchemaConfigVersions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.TestPropertySource; @@ -71,8 +72,7 @@ import static org.mockito.Mockito.when; @RunWith(Parameterized.class) @ContextConfiguration(classes = { - SchemaLocationsBean.class, - SchemaVersions.class, + ConfigConfiguration.class, AAIConfigTranslator.class, EdgeIngestor.class, EdgeSerializer.class, @@ -109,7 +109,7 @@ public abstract class QueryTest { protected LoaderFactory loaderFactory; @Autowired - protected SchemaVersions schemaVersions; + protected SchemaConfigVersions schemaVersions; @Autowired protected GremlinServerSingleton gremlinServerSingleton; |