|
34 | 34 | import org.springframework.data.redis.connection.jedis.extension.JedisConnectionFactoryExtension;
|
35 | 35 | import org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory;
|
36 | 36 | import org.springframework.data.redis.connection.lettuce.extension.LettuceConnectionFactoryExtension;
|
37 |
| -import org.springframework.data.redis.connection.stream.*; |
| 37 | +import org.springframework.data.redis.connection.stream.Consumer; |
| 38 | +import org.springframework.data.redis.connection.stream.MapRecord; |
| 39 | +import org.springframework.data.redis.connection.stream.ObjectRecord; |
| 40 | +import org.springframework.data.redis.connection.stream.PendingMessages; |
| 41 | +import org.springframework.data.redis.connection.stream.PendingMessagesSummary; |
| 42 | +import org.springframework.data.redis.connection.stream.ReadOffset; |
| 43 | +import org.springframework.data.redis.connection.stream.RecordId; |
| 44 | +import org.springframework.data.redis.connection.stream.StreamOffset; |
| 45 | +import org.springframework.data.redis.connection.stream.StreamReadOptions; |
| 46 | +import org.springframework.data.redis.connection.stream.StreamRecords; |
38 | 47 | import org.springframework.data.redis.test.condition.EnabledOnCommand;
|
39 | 48 | import org.springframework.data.redis.test.condition.EnabledOnRedisDriver;
|
40 | 49 | import org.springframework.data.redis.test.condition.EnabledOnRedisVersion;
|
@@ -204,12 +213,12 @@ void exclusiveRangeShouldReportMessages() {
|
204 | 213 | List<MapRecord<K, HK, HV>> messages = streamOps.range(key,
|
205 | 214 | Range.from(Bound.exclusive(messageId1.getValue())).to(Bound.inclusive(messageId2.getValue())));
|
206 | 215 |
|
207 |
| - assertThat(messages).hasSize(1).extracting(Record::getId).contains(messageId2); |
| 216 | + assertThat(messages).hasSize(1).extracting(MapRecord::getId).contains(messageId2); |
208 | 217 |
|
209 | 218 | messages = streamOps.range(key,
|
210 | 219 | Range.from(Bound.inclusive(messageId1.getValue())).to(Bound.exclusive(messageId2.getValue())));
|
211 | 220 |
|
212 |
| - assertThat(messages).hasSize(1).extracting(Record::getId).contains(messageId1); |
| 221 | + assertThat(messages).hasSize(1).extracting(MapRecord::getId).contains(messageId1); |
213 | 222 | }
|
214 | 223 |
|
215 | 224 | @ParameterizedRedisTest // DATAREDIS-864
|
@@ -242,12 +251,12 @@ void exclusiveReverseRangeShouldReportMessages() {
|
242 | 251 | List<MapRecord<K, HK, HV>> messages = streamOps.reverseRange(key,
|
243 | 252 | Range.from(Bound.exclusive(messageId1.getValue())).to(Bound.inclusive(messageId3.getValue())));
|
244 | 253 |
|
245 |
| - assertThat(messages).hasSize(2).extracting(Record::getId).containsSequence(messageId3, messageId2); |
| 254 | + assertThat(messages).hasSize(2).extracting(MapRecord::getId).containsSequence(messageId3, messageId2); |
246 | 255 |
|
247 | 256 | messages = streamOps.reverseRange(key,
|
248 | 257 | Range.from(Bound.inclusive(messageId1.getValue())).to(Bound.exclusive(messageId3.getValue())));
|
249 | 258 |
|
250 |
| - assertThat(messages).hasSize(2).extracting(Record::getId).containsSequence(messageId2, messageId1); |
| 259 | + assertThat(messages).hasSize(2).extracting(MapRecord::getId).containsSequence(messageId2, messageId1); |
251 | 260 | }
|
252 | 261 |
|
253 | 262 | @ParameterizedRedisTest // DATAREDIS-864
|
|
0 commit comments