Skip to content

Commit

Permalink
provide static open method for tinkerpop standard tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mpollmeier committed Dec 7, 2015
1 parent 1a253e6 commit 23c68b0
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ public final class OrientGraph implements Graph {
protected final Configuration configuration;
protected final OPartitionedDatabasePool pool;

// this is mostly just for the standard tinkerpop test suite
public static OrientGraph open(final Configuration config) {
String url = config.getString(CONFIG_URL, "memory:test-" + Math.random());
return new OrientGraphFactory(url).getNoTx();
}

public OrientGraph(final ODatabaseDocumentTx database, final Configuration configuration) {
this.pool = null;
this.database = database;
Expand Down

0 comments on commit 23c68b0

Please sign in to comment.