Search in sources :

Example 1 with ElasticGraphProvider

use of test.ElasticGraphProvider in project unipop by unipop-graph.

the class PerformanceTests method startUp.

@Before
public void startUp() throws Exception {
    UnipopGraphProvider unipopGraphProvider = new ElasticGraphProvider();
    final Configuration configuration = unipopGraphProvider.newGraphConfiguration("testGraph", this.getClass(), "performanceTests", LoadGraphWith.GraphData.MODERN);
    this.graph = unipopGraphProvider.openTestGraph(configuration);
}
Also used : ElasticGraphProvider(test.ElasticGraphProvider) Configuration(org.apache.commons.configuration.Configuration) UnipopGraphProvider(org.unipop.test.UnipopGraphProvider) Before(org.junit.Before)

Example 2 with ElasticGraphProvider

use of test.ElasticGraphProvider in project unipop by unipop-graph.

the class ConfigurationTests method startUp.

@Before
public void startUp() throws Exception {
    UnipopGraphProvider unipopGraphProvider = new ElasticGraphProvider();
    HashMap<String, Object> config = new HashMap<>();
    config.put("elasticsearch.upsert", true);
    final Configuration configuration = unipopGraphProvider.newGraphConfiguration("testGraph", this.getClass(), "spatialTests", config, LoadGraphWith.GraphData.MODERN);
    this.graph = unipopGraphProvider.openTestGraph(configuration);
}
Also used : ElasticGraphProvider(test.ElasticGraphProvider) Configuration(org.apache.commons.configuration.Configuration) HashMap(java.util.HashMap) UnipopGraphProvider(org.unipop.test.UnipopGraphProvider) Before(org.junit.Before)

Aggregations

Configuration (org.apache.commons.configuration.Configuration)2 Before (org.junit.Before)2 UnipopGraphProvider (org.unipop.test.UnipopGraphProvider)2 ElasticGraphProvider (test.ElasticGraphProvider)2 HashMap (java.util.HashMap)1