Skip to content

Commit

Permalink
fix: SpannerQueryLookupStrategyTests.java
Browse files Browse the repository at this point in the history
  • Loading branch information
williamlin0825 committed Oct 11, 2024
1 parent 05ad3ef commit 8326293
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 8326293

Please sign in to comment.