Search in sources :

Example 1 with TraversalStrategy

use of org.apache.tinkerpop.gremlin.process.traversal.TraversalStrategy in project janusgraph by JanusGraph.

the class JanusGraphStepStrategyTest method doTest.

@Test
public void doTest() {
    final TraversalStrategies strategies = new DefaultTraversalStrategies();
    strategies.addStrategies(JanusGraphStepStrategy.instance());
    for (final TraversalStrategy strategy : this.otherStrategies) {
        strategies.addStrategies(strategy);
    }
    this.original.asAdmin().setStrategies(strategies);
    this.original.asAdmin().applyStrategies();
    assertEquals(this.optimized, this.original);
}
Also used : TraversalStrategies(org.apache.tinkerpop.gremlin.process.traversal.TraversalStrategies) DefaultTraversalStrategies(org.apache.tinkerpop.gremlin.process.traversal.util.DefaultTraversalStrategies) TraversalStrategy(org.apache.tinkerpop.gremlin.process.traversal.TraversalStrategy) DefaultTraversalStrategies(org.apache.tinkerpop.gremlin.process.traversal.util.DefaultTraversalStrategies) Test(org.junit.Test)

Aggregations

TraversalStrategies (org.apache.tinkerpop.gremlin.process.traversal.TraversalStrategies)1 TraversalStrategy (org.apache.tinkerpop.gremlin.process.traversal.TraversalStrategy)1 DefaultTraversalStrategies (org.apache.tinkerpop.gremlin.process.traversal.util.DefaultTraversalStrategies)1 Test (org.junit.Test)1