Integrate aai-schema-ingest library into aai-core
[aai/aai-common.git] / aai-core / src / test / java / org / onap / aai / introspection / PropertyPredicatesTest.java
index 13a4ea3..72b5d31 100644 (file)
@@ -20,6 +20,7 @@
 package org.onap.aai.introspection;
 
 import org.junit.Before;
+
 import org.junit.Test;
 import org.onap.aai.AAISetup;
 import org.onap.aai.introspection.exceptions.AAIUnknownObjectException;
@@ -27,21 +28,18 @@ import org.onap.aai.introspection.exceptions.AAIUnknownObjectException;
 import java.util.Set;
 
 import static org.hamcrest.Matchers.hasItems;
-import static org.hamcrest.Matchers.is;
 import static org.hamcrest.Matchers.not;
 import static org.junit.Assert.assertThat;
 
 public class PropertyPredicatesTest extends AAISetup {
 
-       private final Version version = Version.getLatest();
-
        private Loader loader;
        private ModelType introspectorFactoryType = ModelType.MOXY;
        private Introspector obj;
        
        @Before
        public void setup() throws Exception {
-               loader = LoaderFactory.createLoaderForVersion(introspectorFactoryType, version);
+               loader = loaderFactory.createLoaderForVersion(introspectorFactoryType, schemaVersions.getDefaultVersion());
                obj = loader.introspectorFromName("generic-vnf");
        }