From c5fa0665f76e2f5483b5d15e6bd9f8f63e304ef0 Mon Sep 17 00:00:00 2001 From: Gerrit Meier Date: Thu, 24 Aug 2023 12:59:20 +0200 Subject: [PATCH] Don't rely on db ids for testing. --- .../session/capability/QueryCapabilityGH952Test.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/neo4j-ogm-tests/neo4j-ogm-integration-tests/src/test/java/org/neo4j/ogm/persistence/session/capability/QueryCapabilityGH952Test.java b/neo4j-ogm-tests/neo4j-ogm-integration-tests/src/test/java/org/neo4j/ogm/persistence/session/capability/QueryCapabilityGH952Test.java index e9405b45d..972beb674 100644 --- a/neo4j-ogm-tests/neo4j-ogm-integration-tests/src/test/java/org/neo4j/ogm/persistence/session/capability/QueryCapabilityGH952Test.java +++ b/neo4j-ogm-tests/neo4j-ogm-integration-tests/src/test/java/org/neo4j/ogm/persistence/session/capability/QueryCapabilityGH952Test.java @@ -76,13 +76,13 @@ public void shouldCorrectlyMapNodesAndRelsWithSameId() { Collections.emptyMap()); // verify that we reached the expected setup - BDDAssertions.assertThat(session.queryForObject(Long.class, "MATCH (n{uuid:'AAAA0001'}) RETURN id(n)", Collections.emptyMap())).isEqualTo(0L); - BDDAssertions.assertThat(session.queryForObject(Long.class, "MATCH (n{uuid:'AAAA0002'}) RETURN id(n)", Collections.emptyMap())).isEqualTo(1L); - BDDAssertions.assertThat(session.queryForObject(Long.class, "MATCH (n{uuid:'AAAA0003'}) RETURN id(n)", Collections.emptyMap())).isEqualTo(2L); + BDDAssertions.assertThat(session.queryForObject(Long.class, "MATCH (n{uuid:'AAAA0001'}) RETURN id(n)", Collections.emptyMap())).isNotNull(); + BDDAssertions.assertThat(session.queryForObject(Long.class, "MATCH (n{uuid:'AAAA0002'}) RETURN id(n)", Collections.emptyMap())).isNotNull(); + BDDAssertions.assertThat(session.queryForObject(Long.class, "MATCH (n{uuid:'AAAA0003'}) RETURN id(n)", Collections.emptyMap())).isNotNull(); BDDAssertions.assertThat(session.queryForObject(Long.class, "MATCH ()-[r{uuid:'BBBB0001'}]->() RETURN id(r)", Collections.emptyMap())) - .isEqualTo(0L); + .isNotNull(); BDDAssertions.assertThat(session.queryForObject(Long.class, "MATCH ()-[r{uuid:'BBBB0002'}]->() RETURN id(r)", Collections.emptyMap())) - .isEqualTo(1L); + .isNotNull(); // load the relationship entity between Moby-Dick and Jane Doe including the children of Jane BDDAssertions.assertThat(//