Skip navigation links
A D E G H N O P R S 

A

Assertions - Class in org.assertj.neo4j.api
The entry point for all Neo4j assertions.
Assertions() - Constructor for class org.assertj.neo4j.api.Assertions
Creates a new Assertions.
assertThat(PropertyContainer) - Static method in class org.assertj.neo4j.api.Assertions
 
assertThat(Node) - Static method in class org.assertj.neo4j.api.Assertions
 
assertThat(Relationship) - Static method in class org.assertj.neo4j.api.Assertions
 
assertThat(Path) - Static method in class org.assertj.neo4j.api.Assertions
 
assertThat(Result) - Static method in class org.assertj.neo4j.api.Assertions
 

D

doesNotEndWithNode(Node) - Method in class org.assertj.neo4j.api.PathAssert
Verifies that the given node is not the last one of the actual Path
Example: GraphDatabaseService graph = new TestGraphDatabaseFactory().newImpermanentDatabase(); // [...]
doesNotEndWithNode(Node) - Method in class org.assertj.neo4j.api.RelationshipAssert
 
doesNotEndWithRelationship(Relationship) - Method in class org.assertj.neo4j.api.PathAssert
Verifies that the given relationship is not the last one of the actual Path
Example: GraphDatabaseService graph = new TestGraphDatabaseFactory().newImpermanentDatabase(); // [...]
doesNotHaveLabel(String) - Method in class org.assertj.neo4j.api.NodeAssert
Verifies that the actual Node does NOT have the given label name
Example: GraphDatabaseService graph = new TestGraphDatabaseFactory().newImpermanentDatabase(); Node node = graph.createNode(); node.addLabel(DynamicLabel.label("DOUGHNUT_LOVER")); assertThat(node).doesNotHaveLabel("FRUIT_LOVER"); If the labelValue is null, an IllegalArgumentException is thrown.
doesNotHaveLabel(Label) - Method in class org.assertj.neo4j.api.NodeAssert
Verifies that the actual Node does NOT have the given label
Example: GraphDatabaseService graph = new TestGraphDatabaseFactory().newImpermanentDatabase(); Node node = graph.createNode(); node.addLabel(DynamicLabel.label("DOUGHNUT_LOVER")); assertThat(node).doesNotHaveLabel(DynamicLabel.label("FRUIT_LOVER")); If the label is null, an IllegalArgumentException is thrown.
doesNotHaveProperty(String, Object) - Method in class org.assertj.neo4j.api.PropertyContainerAssert
Verifies that the actual PropertyContainer does not have a property with given key and value.
doesNotHavePropertyKey(String) - Method in class org.assertj.neo4j.api.PropertyContainerAssert
Verifies that the actual PropertyContainer does not have the given property key
Example: GraphDatabaseService graph = new TestGraphDatabaseFactory().newImpermanentDatabase(); Node node = graph.createNode(); node.setProperty("firstName", "Homer"); assertThat(node).doesNotHavePropertyKey("lastName"); // it also works with relationships: Relationship relationship = homer.createRelationshipTo(donut, DynamicRelationshipType.withName("LOVES")); relationship.setProperty("firstName", "Homer"); assertThat(relationship).doesNotHavePropertyKey("lastName"); If the key is null, an IllegalArgumentException is thrown.
doesNotHaveType(RelationshipType) - Method in class org.assertj.neo4j.api.RelationshipAssert
Verifies that the actual Relationship does not have the given type
Example: GraphDatabaseService graph = new TestGraphDatabaseFactory().newImpermanentDatabase(); // [...] creation of homerNode, doughnutNode Relationship love = homerNode.createRelationshipTo(doughnutNode, DynamicRelationshipType.withName("LOVES")); assertThat(love).doesNotHaveType(DynamicRelationshipType.withName("HATES")); If the node is null, an IllegalArgumentException is thrown.
doesNotHaveType(String) - Method in class org.assertj.neo4j.api.RelationshipAssert
Verifies that the actual Relationship does not have the given type name
Example: GraphDatabaseService graph = new TestGraphDatabaseFactory().newImpermanentDatabase(); // [...] creation of homerNode, doughnutNode Relationship love = homerNode.createRelationshipTo(doughnutNode, DynamicRelationshipType.withName("LOVES")); assertThat(love).doesNotHaveType("HATES"); If the node is null, an IllegalArgumentException is thrown.
doesNotStartWithNode(Node) - Method in class org.assertj.neo4j.api.PathAssert
Verifies that the actual Path does not start with the given node
Example: GraphDatabaseService graph = new TestGraphDatabaseFactory().newImpermanentDatabase(); // [...]
doesNotStartWithNode(Node) - Method in class org.assertj.neo4j.api.RelationshipAssert
Verifies that the actual Relationship does not start with the given node
Example: GraphDatabaseService graph = new TestGraphDatabaseFactory().newImpermanentDatabase(); // [...] creation of homerNode, doughnutNode Relationship love = homerNode.createRelationshipTo(doughnutNode, DynamicRelationshipType.withName("LOVES")); assertThat(love).doesNotStartWithNode(healthyPersonNode); If the node is null, an IllegalArgumentException is thrown.

E

endsWithNode(Node) - Method in class org.assertj.neo4j.api.PathAssert
Verifies that the actual Path ends with the given node
Example: GraphDatabaseService graph = new TestGraphDatabaseFactory().newImpermanentDatabase(); // [...]
endsWithNode(Node) - Method in class org.assertj.neo4j.api.RelationshipAssert
Verifies that the actual Relationship ends with the given node
Example: GraphDatabaseService graph = new TestGraphDatabaseFactory().newImpermanentDatabase(); // [...] creation of homerNode, doughnutNode Relationship love = homerNode.createRelationshipTo(doughnutNode, DynamicRelationshipType.withName("LOVES")); assertThat(love).endsWithNode(doughnutNode); If the node is null, an IllegalArgumentException is thrown.
endsWithRelationship(Relationship) - Method in class org.assertj.neo4j.api.PathAssert
Verifies that the given relationship is the last one of the actual Path
Example: GraphDatabaseService graph = new TestGraphDatabaseFactory().newImpermanentDatabase(); // [...]

G

getActual() - Method in class org.assertj.neo4j.api.NodeAssert
 
getActual() - Method in class org.assertj.neo4j.api.PathAssert
 
getActual() - Method in class org.assertj.neo4j.api.PropertyContainerAssert
 
getActual() - Method in class org.assertj.neo4j.api.RelationshipAssert
 

H

hasLabel(String) - Method in class org.assertj.neo4j.api.NodeAssert
Verifies that the actual Node has the given label name
Example: GraphDatabaseService graph = new TestGraphDatabaseFactory().newImpermanentDatabase(); Node node = graph.createNode(); node.addLabel(DynamicLabel.label("DOUGHNUT_LOVER")); assertThat(node).hasLabel("DOUGHNUT_LOVER"); If the labelValue is null, an IllegalArgumentException is thrown.
hasLabel(Label) - Method in class org.assertj.neo4j.api.NodeAssert
Verifies that the actual Node has the given label
Example: GraphDatabaseService graph = new TestGraphDatabaseFactory().newImpermanentDatabase(); Node node = graph.createNode(); Label doughnutLover = DynamicLabel.label("DOUGHNUT_LOVER"); node.addLabel(doughnutLover); assertThat(node).hasLabel(doughnutLover); If the label is null, an IllegalArgumentException is thrown.
hasLength(int) - Method in class org.assertj.neo4j.api.PathAssert
Verifies that the path length equals the given one
Example: GraphDatabaseService graph = new TestGraphDatabaseFactory().newImpermanentDatabase(); // [...]
hasProperty(String, Object) - Method in class org.assertj.neo4j.api.PropertyContainerAssert
Verifies that the actual PropertyContainer has the given property key with the given value
Example: GraphDatabaseService graph = new TestGraphDatabaseFactory().newImpermanentDatabase(); ResourceIterator<String> loveLevelIterator = myExecutionEngine.execute( "MATCH (:CHARACTER)-[l:LOVES]->(:DOUGHNUT) RETURN l.level AS level").columnAs("level"); assertThat(loveLevelIterator).hasSize(3); If the given size is negative, an IllegalArgumentException is thrown.
hasPropertyKey(String) - Method in class org.assertj.neo4j.api.PropertyContainerAssert
Verifies that the actual PropertyContainer has the given property key
Example: GraphDatabaseService graph = new TestGraphDatabaseFactory().newImpermanentDatabase(); Node node = graph.createNode(); node.setProperty("firstName", "Homer"); assertThat(node).hasPropertyKey("firstName"); // it also works with relationships: Relationship relationship = homer.createRelationshipTo(donut, DynamicRelationshipType.withName("LOVES")); relationship.setProperty("firstName", "Homer"); assertThat(relationship).hasPropertyKey("firstName"); If the given key is null, an IllegalArgumentException is thrown.
hasType(RelationshipType) - Method in class org.assertj.neo4j.api.RelationshipAssert
Verifies that the actual Relationship has the given type
Example: GraphDatabaseService graph = new TestGraphDatabaseFactory().newImpermanentDatabase(); // [...] creation of homerNode, doughnutNode RelationshipType loveType = DynamicRelationshipType.withName("LOVES"); Relationship love = homerNode.createRelationshipTo(doughnutNode, loveType); assertThat(love).hasType(loveType); If the relationshipType is null, an IllegalArgumentException is thrown.
hasType(String) - Method in class org.assertj.neo4j.api.RelationshipAssert
Verifies that the actual Relationship has the given type name
Example: GraphDatabaseService graph = new TestGraphDatabaseFactory().newImpermanentDatabase(); // [...] creation of homerNode, doughnutNode RelationshipType loveType = DynamicRelationshipType.withName("LOVES"); Relationship love = homerNode.createRelationshipTo(doughnutNode, loveType); assertThat(love).hasType("LOVES"); If the relationshipTypeName is null, an IllegalArgumentException is thrown.

N

NodeAssert - Class in org.assertj.neo4j.api
Assertions for Neo4J Node
NodeAssert(Node) - Constructor for class org.assertj.neo4j.api.NodeAssert
 

O

org.assertj.neo4j.api - package org.assertj.neo4j.api
 
org.assertj.neo4j.error - package org.assertj.neo4j.error
 

P

PathAssert - Class in org.assertj.neo4j.api
Assertions for Neo4J Path
PathAssert(Path) - Constructor for class org.assertj.neo4j.api.PathAssert
 
PropertyContainerAssert<A extends PropertyContainerAssert<A,T>,T extends org.neo4j.graphdb.PropertyContainer> - Class in org.assertj.neo4j.api
Assertions for Neo4J PropertyContainer
PropertyContainerAssert(T, Class<? extends A>) - Constructor for class org.assertj.neo4j.api.PropertyContainerAssert
 

R

RelationshipAssert - Class in org.assertj.neo4j.api
Assertions for Neo4J Relationship
RelationshipAssert(Relationship) - Constructor for class org.assertj.neo4j.api.RelationshipAssert
 
ResultAssert - Class in org.assertj.neo4j.api
 
ResultAssert(Result) - Constructor for class org.assertj.neo4j.api.ResultAssert
 

S

ShouldEndWithNode - Class in org.assertj.neo4j.error
 
shouldEndWithNode(Relationship, Node) - Static method in class org.assertj.neo4j.error.ShouldEndWithNode
Creates a new ShouldEndWithNode.
shouldEndWithNode(Path, Node) - Static method in class org.assertj.neo4j.error.ShouldEndWithNode
Creates a new ShouldEndWithNode.
ShouldEndWithRelationship - Class in org.assertj.neo4j.error
 
shouldEndWithRelationship(Path, Relationship) - Static method in class org.assertj.neo4j.error.ShouldEndWithRelationship
ShouldHaveLabel - Class in org.assertj.neo4j.error
 
shouldHaveLabel(Node, String) - Static method in class org.assertj.neo4j.error.ShouldHaveLabel
Creates a new ShouldHaveLabel.
ShouldHaveLength - Class in org.assertj.neo4j.error
 
shouldHaveLength(Path, int) - Static method in class org.assertj.neo4j.error.ShouldHaveLength
Creates a new ShouldHaveLength.
ShouldHaveProperty - Class in org.assertj.neo4j.error
 
shouldHaveProperty(PropertyContainer, String, Object) - Static method in class org.assertj.neo4j.error.ShouldHaveProperty
Creates a new ShouldHaveProperty.
ShouldHavePropertyKey - Class in org.assertj.neo4j.error
 
shouldHavePropertyKey(PropertyContainer, String) - Static method in class org.assertj.neo4j.error.ShouldHavePropertyKey
Creates a new ShouldHavePropertyKey.
ShouldHaveRelationshipType - Class in org.assertj.neo4j.error
 
shouldHaveRelationshipType(Relationship, String) - Static method in class org.assertj.neo4j.error.ShouldHaveRelationshipType
ShouldNotEndWithNode - Class in org.assertj.neo4j.error
 
shouldNotEndWithNode(Relationship, Node) - Static method in class org.assertj.neo4j.error.ShouldNotEndWithNode
Creates a new ShouldNotEndWithNode.
shouldNotEndWithNode(Path, Node) - Static method in class org.assertj.neo4j.error.ShouldNotEndWithNode
Creates a new ShouldNotEndWithNode.
ShouldNotEndWithRelationship - Class in org.assertj.neo4j.error
 
shouldNotEndWithRelationship(Path, Relationship) - Static method in class org.assertj.neo4j.error.ShouldNotEndWithRelationship
ShouldNotHaveLabel - Class in org.assertj.neo4j.error
 
shouldNotHaveLabel(Node, String) - Static method in class org.assertj.neo4j.error.ShouldNotHaveLabel
Creates a new ShouldNotHaveLabel.
ShouldNotHaveProperty - Class in org.assertj.neo4j.error
 
shouldNotHaveProperty(PropertyContainer, String, Object) - Static method in class org.assertj.neo4j.error.ShouldNotHaveProperty
Creates a new ShouldNotHaveProperty.
ShouldNotHavePropertyKey - Class in org.assertj.neo4j.error
 
shouldNotHavePropertyKey(PropertyContainer, String) - Static method in class org.assertj.neo4j.error.ShouldNotHavePropertyKey
ShouldNotHaveRelationshipType - Class in org.assertj.neo4j.error
 
shouldNotHaveRelationshipType(Relationship, String) - Static method in class org.assertj.neo4j.error.ShouldNotHaveRelationshipType
ShouldNotStartWithNode - Class in org.assertj.neo4j.error
 
shouldNotStartWithNode(Relationship, Node) - Static method in class org.assertj.neo4j.error.ShouldNotStartWithNode
Creates a new ShouldNotStartWithNode.
shouldNotStartWithNode(Path, Node) - Static method in class org.assertj.neo4j.error.ShouldNotStartWithNode
Creates a new ShouldNotStartWithNode.
ShouldStartOrEndWithNode - Class in org.assertj.neo4j.error
 
shouldStartOrEndWithNode(Relationship, Node) - Static method in class org.assertj.neo4j.error.ShouldStartOrEndWithNode
ShouldStartWithNode - Class in org.assertj.neo4j.error
 
shouldStartWithNode(Relationship, Node) - Static method in class org.assertj.neo4j.error.ShouldStartWithNode
Creates a new ShouldStartWithNode.
shouldStartWithNode(Path, Node) - Static method in class org.assertj.neo4j.error.ShouldStartWithNode
Creates a new ShouldStartWithNode.
startsOrEndsWithNode(Node) - Method in class org.assertj.neo4j.api.RelationshipAssert
Verifies that the actual Relationship either starts or ends with the given node
Example: GraphDatabaseService graph = new TestGraphDatabaseFactory().newImpermanentDatabase(); // [...] creation of homerNode, doughnutNode Relationship love = homerNode.createRelationshipTo(doughnutNode, DynamicRelationshipType.withName("LOVES")); assertThat(love).startsOrEndsWithNode(homerNode); assertThat(love).startsOrEndsWithNode(doughnutNode); If the node is null, an IllegalArgumentException is thrown.
startsWithNode(Node) - Method in class org.assertj.neo4j.api.PathAssert
Verifies that the actual Path starts with the given node
Example: GraphDatabaseService graph = new TestGraphDatabaseFactory().newImpermanentDatabase(); // [...]
startsWithNode(Node) - Method in class org.assertj.neo4j.api.RelationshipAssert
Verifies that the actual Relationship starts with the given node
Example: GraphDatabaseService graph = new TestGraphDatabaseFactory().newImpermanentDatabase(); // [...] creation of homerNode, doughnutNode Relationship love = homerNode.createRelationshipTo(doughnutNode, DynamicRelationshipType.withName("LOVES")); assertThat(love).startsWithNode(homerNode); If the node is null, an IllegalArgumentException is thrown.
A D E G H N O P R S 
Skip navigation links

Copyright © 2017 AssertJ. All rights reserved.