Hi,
Shown below is the code I am trying and not getting anywhere, must be missing something simple.
g.V().has('name',not(within('josh','marko'))).valueMap() //(5)
Version:'3.1.1-incubating'
Code:
import org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerFactory
import spock.lang.Specification
class SampleTest extends Specification {
def findMultiple() {
def graph = TinkerFactory.createModern();
def g = graph.traversal()
expect:
g.V().has("name", within("marko", "vadas")).count() == 2
}
}
Error:
groovy.lang.MissingMethodException: No signature of method: SampleTest.within() is applicable for argument types: (java.lang.String, java.lang.String) values: [marko, vadas]
Possible solutions: with(java.lang.Object, groovy.lang.Closure), with(groovy.lang.Closure), wait(), with(java.lang.Object, java.lang.Class, groovy.lang.Closure)
at SampleTest.findMultiple(SampleTest.groovy:10)
Any help would be great.
Thanks.