use of com.datastax.dse.driver.api.core.graph.GraphNode in project java-driver by datastax.
the class GraphNodeTest method should_check_if_node_is_vertex_property.
@Test
@UseDataProvider("allGraphProtocols")
public void should_check_if_node_is_vertex_property(GraphProtocol graphProtocol) throws IOException {
// when
GraphNode vertexPropertyNode = serdeAndCreateGraphNode(new DetachedVertexProperty<>("id", "l", "v", null, new DetachedVertex("a", "l", null)), graphProtocol);
// then
assertThat(vertexPropertyNode.isVertexProperty()).isTrue();
assertThat(vertexPropertyNode.isVertexProperty()).isNotNull();
}
Aggregations