I'm new to unit testing . How to write unit test for these type of methods?
private boolean fn(Vertex vertex) {
return vertex.id().toString().split(":").length > 1;
}
Here Vertex is the element of gremlin query . I have tried to create instance of graph and pass a new Vertex object to the function but not working . i.e
Vertex vertex = (Vertex) graphTraversalSource.addV("Test").property(id,"Profile:TEST");
Can anyone suggest the ways to test these types of method?