From 83262938ba252508eb89284276f834705ea3dafe Mon Sep 17 00:00:00 2001 From: williamlin0825 Date: Fri, 11 Oct 2024 00:08:46 -0500 Subject: [PATCH] fix: SpannerQueryLookupStrategyTests.java --- .../query/SpannerQueryLookupStrategyTests.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/spring-cloud-gcp-data-spanner/src/test/java/com/google/cloud/spring/data/spanner/repository/query/SpannerQueryLookupStrategyTests.java b/spring-cloud-gcp-data-spanner/src/test/java/com/google/cloud/spring/data/spanner/repository/query/SpannerQueryLookupStrategyTests.java index 1d1745819e..e9d0d884bb 100644 --- a/spring-cloud-gcp-data-spanner/src/test/java/com/google/cloud/spring/data/spanner/repository/query/SpannerQueryLookupStrategyTests.java +++ b/spring-cloud-gcp-data-spanner/src/test/java/com/google/cloud/spring/data/spanner/repository/query/SpannerQueryLookupStrategyTests.java @@ -174,9 +174,13 @@ void getChildrenRowsQueryTest() { new SpannerWriteConverter(), this.spannerMappingContext); assertThat(statement.getSql()) - .isEqualTo( - "SELECT deleted, id3, id, id_2 FROM child_test_table WHERE ((id = @tag0 AND id_2 =" - + " @tag1)) AND (deleted = false)"); + .contains("SELECT ") + .contains("deleted") + .contains("id3") + .contains("id_2") + .contains("id") + .contains( + " FROM child_test_table WHERE ((id = @tag0 AND id_2 = @tag1)) AND (deleted = false)"); assertThat(statement.getParameters()).hasSize(2); assertThat(statement.getParameters().get("tag0").getString()).isEqualTo("key"); assertThat(statement.getParameters().get("tag1").getString()).isEqualTo("key2");