public final class GraphTestUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static Iterable<org.neo4j.graphdb.Node> |
allNodes(org.neo4j.graphdb.GraphDatabaseService graphDatabaseService) |
static Iterable<org.neo4j.graphdb.Relationship> |
allRelationships(org.neo4j.graphdb.GraphDatabaseService graphDatabaseService) |
static boolean |
areSame(org.neo4j.graphdb.Node node1,
org.neo4j.graphdb.Node node2) |
static boolean |
areSame(org.neo4j.graphdb.Relationship relationship1,
org.neo4j.graphdb.Relationship relationship2) |
static void |
assertSameGraph(org.neo4j.graphdb.GraphDatabaseService graphDatabase,
String sameGraphCypher)
Checks that the graph in the specified
GraphDatabaseService is the same as the graph that the given cypher
produces. |
static Iterable<org.neo4j.graphdb.Node> |
findSameNodes(org.neo4j.graphdb.GraphDatabaseService database,
org.neo4j.graphdb.Node node) |
static Iterable<org.neo4j.graphdb.Node> |
findSameNodesByLabel(org.neo4j.graphdb.GraphDatabaseService database,
org.neo4j.graphdb.Node node,
org.neo4j.graphdb.Label label) |
static Iterable<org.neo4j.graphdb.Node> |
findSameNodesWithoutLabel(org.neo4j.graphdb.GraphDatabaseService database,
org.neo4j.graphdb.Node node) |
static boolean |
haveSameLabels(org.neo4j.graphdb.Node node1,
org.neo4j.graphdb.Node node2) |
static boolean |
haveSameProperties(org.neo4j.graphdb.PropertyContainer pc1,
org.neo4j.graphdb.PropertyContainer pc2) |
static boolean |
haveSameType(org.neo4j.graphdb.Relationship relationship1,
org.neo4j.graphdb.Relationship relationship2) |
static Iterable<org.neo4j.graphdb.Node> |
nodesWithLabel(org.neo4j.graphdb.GraphDatabaseService database,
org.neo4j.graphdb.Label label) |
public static void assertSameGraph(org.neo4j.graphdb.GraphDatabaseService graphDatabase,
String sameGraphCypher)
GraphDatabaseService is the same as the graph that the given cypher
produces.graphDatabase - The GraphDatabaseService to checksameGraphCypher - The Cypher create statement, which communicates the desired state of the databaseAssertionError - if the cypher doesn't produce a graph that matches the state of the given databasepublic static Iterable<org.neo4j.graphdb.Node> allNodes(org.neo4j.graphdb.GraphDatabaseService graphDatabaseService)
public static Iterable<org.neo4j.graphdb.Relationship> allRelationships(org.neo4j.graphdb.GraphDatabaseService graphDatabaseService)
public static Iterable<org.neo4j.graphdb.Node> findSameNodes(org.neo4j.graphdb.GraphDatabaseService database, org.neo4j.graphdb.Node node)
public static Iterable<org.neo4j.graphdb.Node> findSameNodesWithoutLabel(org.neo4j.graphdb.GraphDatabaseService database, org.neo4j.graphdb.Node node)
public static Iterable<org.neo4j.graphdb.Node> nodesWithLabel(org.neo4j.graphdb.GraphDatabaseService database, org.neo4j.graphdb.Label label)
public static Iterable<org.neo4j.graphdb.Node> findSameNodesByLabel(org.neo4j.graphdb.GraphDatabaseService database, org.neo4j.graphdb.Node node, org.neo4j.graphdb.Label label)
public static boolean areSame(org.neo4j.graphdb.Node node1,
org.neo4j.graphdb.Node node2)
public static boolean areSame(org.neo4j.graphdb.Relationship relationship1,
org.neo4j.graphdb.Relationship relationship2)
public static boolean haveSameLabels(org.neo4j.graphdb.Node node1,
org.neo4j.graphdb.Node node2)
public static boolean haveSameType(org.neo4j.graphdb.Relationship relationship1,
org.neo4j.graphdb.Relationship relationship2)
public static boolean haveSameProperties(org.neo4j.graphdb.PropertyContainer pc1,
org.neo4j.graphdb.PropertyContainer pc2)
Copyright © 2015–2019 Neo Technology, Inc.. All rights reserved.