|
15 | 15 | */ |
16 | 16 | package org.springframework.data.cassandra.repository; |
17 | 17 |
|
18 | | -import reactor.core.publisher.Flux; |
19 | | -import reactor.core.publisher.Mono; |
20 | | -import reactor.test.StepVerifier; |
21 | | - |
22 | 18 | import java.util.Arrays; |
23 | 19 | import java.util.HashSet; |
24 | 20 | import java.util.Set; |
25 | 21 |
|
| 22 | +import reactor.core.publisher.Flux; |
| 23 | +import reactor.core.publisher.Mono; |
| 24 | +import reactor.test.StepVerifier; |
| 25 | + |
26 | 26 | import org.junit.Before; |
27 | 27 | import org.junit.Test; |
28 | 28 | import org.junit.runner.RunWith; |
| 29 | + |
29 | 30 | import org.reactivestreams.Publisher; |
30 | 31 | import org.springframework.beans.BeansException; |
31 | 32 | import org.springframework.beans.factory.BeanClassLoaderAware; |
|
46 | 47 | import org.springframework.data.domain.Pageable; |
47 | 48 | import org.springframework.data.domain.Slice; |
48 | 49 | import org.springframework.data.domain.Sort; |
49 | | -import org.springframework.data.domain.Sort.Direction; |
50 | 50 | import org.springframework.data.repository.query.QueryMethodEvaluationContextProvider; |
51 | 51 | import org.springframework.data.util.Streamable; |
52 | 52 | import org.springframework.test.context.ContextConfiguration; |
@@ -187,13 +187,12 @@ public void shouldFindByLastNameAndSort() { |
187 | 187 |
|
188 | 188 | StepVerifier |
189 | 189 | .create(groupRepostitory.findByIdGroupnameAndIdHashPrefix("Simpsons", "hash", |
190 | | -new Sort(Direction.ASC, "id.username"))) // |
| 190 | +Sort.by("id.username").ascending())) // |
191 | 191 | .expectNext(new Group(key1), new Group(key2)) // |
192 | 192 | .verifyComplete(); |
193 | 193 |
|
194 | | -StepVerifier |
195 | | -.create(groupRepostitory.findByIdGroupnameAndIdHashPrefix("Simpsons", "hash", |
196 | | -new Sort(Direction.DESC, "id.username"))) // |
| 194 | +StepVerifier.create(groupRepostitory.findByIdGroupnameAndIdHashPrefix("Simpsons", "hash", |
| 195 | +Sort.by("id.username").descending())) |
197 | 196 | .expectNext(new Group(key2), new Group(key1)) // |
198 | 197 | .verifyComplete(); |
199 | 198 | } |
|
0 commit comments