Skip to content

Commit 1c13ec9

Browse files
committed
test: update population on repository
Signed-off-by: Otavio Santana <otaviopolianasantana@gmail.com>
1 parent 5635cb6 commit 1c13ec9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

jnosql-tinkerpop/src/test/java/org/eclipse/jnosql/databases/tinkerpop/mapping/AbstractTinkerpopTemplateTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ void shouldReturnErrorWhenGetEdgesHasNullId() {
349349

350350
@Test
351351
void shouldReturnErrorWhenGetEdgesHasNullId2() {
352-
Human otavio = Human.builder().withAge().withName("Otavio").build();
352+
Human otavio = Human.builder().withId(0L).withAge().withName("Otavio").build();
353353
Collection<EdgeEntity> edges = getGraphTemplate().edges(otavio, Direction.BOTH);
354354
assertThat(edges).isEmpty();
355355
}

jnosql-tinkerpop/src/test/java/org/eclipse/jnosql/databases/tinkerpop/mapping/Population.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public interface Population extends TinkerPopRepository<Human, String> {
2626
@Gremlin("g.V().hasLabel('Human').order().by('name', Order.asc)")
2727
List<Human> allHumans();
2828

29-
@Gremlin("g.V().hasLabel('Human')")
29+
@Gremlin("g.V().hasLabel('Human').has('name', @name)")
3030
List<Human> findByName (@Param("name") String name);
3131

3232
}

0 commit comments

Comments
 (0)