Skip to content

Commit

Permalink
OGM-1225 Improve several comments in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideD authored and gsmet committed Dec 20, 2016
1 parent 34269e7 commit 7dbd5b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -122,7 +122,7 @@ public void testManyToManyCompositeId() throws Exception {

private int expectedAssociationNumber() {
if ( TestHelper.getCurrentDialectType().equals( GridDialectType.NEO4J ) ) {
// In Neo4j relationships are bidirectional
// Neo4j maps an association as one unique relationship either if it's a bidirectional or an unidirectional one.
return 1;
}
else {
Expand Down
Expand Up @@ -118,7 +118,7 @@ public void canPersistAssociationToDetachedEntity() throws Exception {

private Long expectedAssociations() {
if ( TestHelper.getCurrentDialectType() == GridDialectType.NEO4J ) {
// A relationship is created in Neo4j that will result in the count
// *-to-one associations are mapped with a relationship in Neo4j that will result in the count
return 2L;
}
return 0L;
Expand Down

0 comments on commit 7dbd5b0

Please sign in to comment.