-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
1,540 additions
and
533 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
237 changes: 149 additions & 88 deletions
237
src/main/java/org/assertj/neo4j/api/beta/AbstractEntitiesAssert.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
src/main/java/org/assertj/neo4j/api/beta/error/ElementsShouldHavePropertyInstanceOf.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package org.assertj.neo4j.api.beta.error; | ||
|
||
import org.assertj.core.error.ErrorMessageFactory; | ||
import org.assertj.neo4j.api.beta.type.DbEntity; | ||
import org.assertj.neo4j.api.beta.type.RecordType; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* @author patouche - 30/01/2021 | ||
*/ | ||
public class ElementsShouldHavePropertyInstanceOf<E extends DbEntity<E>> | ||
extends DbEntitiesMessageFactory<E, Class<?>, E> { | ||
|
||
protected ElementsShouldHavePropertyInstanceOf(RecordType recordType, List<E> actual, | ||
String key, Class<?> expectedClass) { | ||
super(recordType, "title", "but", actual, expectedClass, actual, (e, v) -> "TODO"); | ||
} | ||
|
||
public static <E extends DbEntity<E>> ErrorMessageFactory create(RecordType recordType, List<E> actual, | ||
String key, Class<?> expectedClass) { | ||
return new ElementsShouldHavePropertyInstanceOf<>(recordType, actual, key, expectedClass); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/main/java/org/assertj/neo4j/api/beta/error/ElementsShouldHavePropertySize.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package org.assertj.neo4j.api.beta.error; | ||
|
||
import org.assertj.core.error.ErrorMessageFactory; | ||
import org.assertj.neo4j.api.beta.type.DbEntity; | ||
import org.assertj.neo4j.api.beta.type.RecordType; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* @author patouche - 01/02/2021 | ||
*/ | ||
public class ElementsShouldHavePropertySize<E extends DbEntity<E>> | ||
extends DbEntitiesMessageFactory<E, Integer, E> { | ||
|
||
public ElementsShouldHavePropertySize(RecordType recordType, List<E> actual, List<E> notSatisfies, int size) { | ||
super(recordType, "title", "but", actual, size, notSatisfies, (e, v) -> "todo"); | ||
} | ||
|
||
public static <E extends DbEntity<E>> ErrorMessageFactory create( | ||
RecordType recordType, List<E> actual, List<E> notSatisfies, int size) { | ||
return new ElementsShouldHavePropertySize<>(recordType, actual, notSatisfies, size); | ||
} | ||
} |
Oops, something went wrong.