Skip to content

Commit

Permalink
fixes in the tck mapper
Browse files Browse the repository at this point in the history
  • Loading branch information
otaviojava committed May 28, 2020
1 parent b263e77 commit e5a3f7e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Expand Up @@ -104,7 +104,7 @@ public void shouldDeleteWhereNameBetween() {
public void shouldDeleteWhereNameIn() {
ColumnDeleteQuery query = mapperBuilder.deleteFrom(Person.class).where("name")
.in(Arrays.asList("Ada", "Poliana")).build();
ColumnDeleteQuery queryExpected = delete().from("Person").where("_id")
ColumnDeleteQuery queryExpected = delete().from("Person").where("name")
.in(Arrays.asList("Ada", "Poliana")).build();
assertEquals(queryExpected, query);
}
Expand Down
Expand Up @@ -142,7 +142,7 @@ public void shouldSelectWhereNameBetween() {
public void shouldSelectWhereNameIn() {
ColumnQuery query = mapperBuilder.selectFrom(Person.class).where("name")
.in(Arrays.asList("Ada", "Poliana")).build();
ColumnQuery queryExpected = select().from("Person").where("_id")
ColumnQuery queryExpected = select().from("Person").where("name")
.in(Arrays.asList("Ada", "Poliana")).build();
assertEquals(queryExpected, query);
}
Expand Down
Expand Up @@ -104,7 +104,7 @@ public void shouldDeleteWhereNameBetween() {
public void shouldDeleteWhereNameIn() {
DocumentDeleteQuery query = mapperBuilder.deleteFrom(Person.class).where("name")
.in(Arrays.asList("Ada", "Poliana")).build();
DocumentDeleteQuery queryExpected = delete().from("Person").where("_id")
DocumentDeleteQuery queryExpected = delete().from("Person").where("name")
.in(Arrays.asList("Ada", "Poliana")).build();
assertEquals(queryExpected, query);
}
Expand Down
Expand Up @@ -143,7 +143,7 @@ public void shouldSelectWhereNameBetween() {
public void shouldSelectWhereNameIn() {
DocumentQuery query = mapperBuilder.selectFrom(Person.class).where("name")
.in(Arrays.asList("Ada", "Poliana")).build();
DocumentQuery queryExpected = select().from("Person").where("_id")
DocumentQuery queryExpected = select().from("Person").where("name")
.in(Arrays.asList("Ada", "Poliana")).build();
assertEquals(queryExpected, query);
}
Expand Down

0 comments on commit e5a3f7e

Please sign in to comment.