Search in sources :

Example 31 with JanusGraphDBEngine

use of org.onap.aai.serialization.engines.JanusGraphDBEngine in project aai-aai-common by onap.

the class DataCopyTest method initMock.

@Before
public void initMock() {
    loader = loaderFactory.createLoaderForVersion(introspectorFactoryType, schemaVersions.getDefaultVersion());
    MockitoAnnotations.initMocks(this);
    dbEngine = new JanusGraphDBEngine(queryStyle, loader);
}
Also used : JanusGraphDBEngine(org.onap.aai.serialization.engines.JanusGraphDBEngine)

Example 32 with JanusGraphDBEngine

use of org.onap.aai.serialization.engines.JanusGraphDBEngine in project aai-aai-common by onap.

the class DataLinkTest method initMock.

@Before
public void initMock() {
    loader = loaderFactory.createLoaderForVersion(introspectorFactoryType, schemaVersions.getDefaultVersion());
    MockitoAnnotations.initMocks(this);
    dbEngine = new JanusGraphDBEngine(queryStyle, loader);
}
Also used : JanusGraphDBEngine(org.onap.aai.serialization.engines.JanusGraphDBEngine)

Example 33 with JanusGraphDBEngine

use of org.onap.aai.serialization.engines.JanusGraphDBEngine in project aai-aai-common by onap.

the class OneToOneEdgeUpdateTest method setup.

@Before
public void setup() throws UnsupportedEncodingException, AAIException, URISyntaxException {
    version = schemaVersions.getDefaultVersion();
    loader = loaderFactory.createLoaderForVersion(introspectorFactoryType, version);
    engine = new JanusGraphDBEngine(queryStyle, loader);
    initData();
}
Also used : JanusGraphDBEngine(org.onap.aai.serialization.engines.JanusGraphDBEngine)

Example 34 with JanusGraphDBEngine

use of org.onap.aai.serialization.engines.JanusGraphDBEngine in project aai-aai-common by onap.

the class VersionedScenariosTest method setup.

@Before
public void setup() throws UnsupportedEncodingException, AAIException, URISyntaxException {
    version = schemaVersions.getDefaultVersion();
    loader = loaderFactory.createLoaderForVersion(introspectorFactoryType, version);
    engine = new JanusGraphDBEngine(queryStyle, loader);
    initData();
}
Also used : JanusGraphDBEngine(org.onap.aai.serialization.engines.JanusGraphDBEngine)

Example 35 with JanusGraphDBEngine

use of org.onap.aai.serialization.engines.JanusGraphDBEngine in project aai-aai-common by onap.

the class DbAliasTest method setup.

@Before
public void setup() {
    version = schemaVersions.getDepthVersion();
    graph = JanusGraphFactory.build().set("storage.backend", "inmemory").open();
    loader = loaderFactory.createLoaderForVersion(introspectorFactoryType, version);
    dbEngine = new JanusGraphDBEngine(queryStyle, loader);
}
Also used : JanusGraphDBEngine(org.onap.aai.serialization.engines.JanusGraphDBEngine) Before(org.junit.Before)

Aggregations

JanusGraphDBEngine (org.onap.aai.serialization.engines.JanusGraphDBEngine)78 TransactionalGraphEngine (org.onap.aai.serialization.engines.TransactionalGraphEngine)51 GraphTraversalSource (org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource)45 Before (org.junit.Before)40 Vertex (org.apache.tinkerpop.gremlin.structure.Vertex)27 DBSerializer (org.onap.aai.serialization.db.DBSerializer)10 JanusGraphManagement (org.janusgraph.core.schema.JanusGraphManagement)8 SchemaVersion (org.onap.aai.setup.SchemaVersion)8 Loader (org.onap.aai.introspection.Loader)7 AAIException (org.onap.aai.exceptions.AAIException)5 ModelType (org.onap.aai.introspection.ModelType)3 QueryStyle (org.onap.aai.serialization.engines.QueryStyle)3 UrlBuilder (org.onap.aai.serialization.queryformats.utils.UrlBuilder)3 Properties (java.util.Properties)2 Test (org.junit.Test)2 NotificationHelper (org.onap.aai.migration.NotificationHelper)2 UEBNotification (org.onap.aai.rest.ueb.UEBNotification)2 JCommander (com.beust.jcommander.JCommander)1 InvocationTargetException (java.lang.reflect.InvocationTargetException)1 URI (java.net.URI)1