|
20 | 20 | import static org.springframework.data.domain.Sort.Order.*;
|
21 | 21 |
|
22 | 22 | import org.junit.Test;
|
| 23 | + |
23 | 24 | import org.springframework.data.domain.Sort;
|
24 | 25 | import org.springframework.data.r2dbc.convert.MappingR2dbcConverter;
|
25 | 26 | import org.springframework.data.r2dbc.convert.R2dbcConverter;
|
26 | 27 | import org.springframework.data.r2dbc.dialect.BindMarkersFactory;
|
27 | 28 | import org.springframework.data.r2dbc.dialect.BindTarget;
|
28 | 29 | import org.springframework.data.r2dbc.mapping.SettableValue;
|
29 |
| -import org.springframework.data.r2dbc.query.BoundCondition; |
30 |
| -import org.springframework.data.r2dbc.query.Criteria; |
31 |
| -import org.springframework.data.r2dbc.query.QueryMapper; |
32 | 30 | import org.springframework.data.relational.core.mapping.Column;
|
33 | 31 | import org.springframework.data.relational.core.mapping.RelationalMappingContext;
|
34 | 32 | import org.springframework.data.relational.core.sql.Table;
|
@@ -158,14 +156,14 @@ public void shouldMapIsIn() {
|
158 | 156 | assertThat(bindings.getCondition().toString()).isEqualTo("person.name IN (?[$1], ?[$2], ?[$3])");
|
159 | 157 | }
|
160 | 158 |
|
161 |
| - @Test // gh-64 |
| 159 | + @Test // gh-64, gh-177 |
162 | 160 | public void shouldMapIsNotIn() {
|
163 | 161 |
|
164 | 162 | Criteria criteria = Criteria.where("name").notIn("a", "b", "c");
|
165 | 163 |
|
166 | 164 | BoundCondition bindings = map(criteria);
|
167 | 165 |
|
168 |
| - assertThat(bindings.getCondition().toString()).isEqualTo("NOT person.name IN (?[$1], ?[$2], ?[$3])"); |
| 166 | + assertThat(bindings.getCondition().toString()).isEqualTo("person.name NOT IN (?[$1], ?[$2], ?[$3])"); |
169 | 167 | }
|
170 | 168 |
|
171 | 169 | @Test // gh-64
|
|
0 commit comments