Polishing.
Add explicit cast update documentation and rename SubcriptionListener instance to NO_OP_... Fix Java 16 compile error. Original Pull Request: #2052
This commit is contained in:
@@ -39,7 +39,7 @@ import org.springframework.data.redis.connection.RedisInvalidSubscriptionExcepti
|
||||
@ExtendWith(MockitoExtension.class)
|
||||
class JedisSubscriptionUnitTests {
|
||||
|
||||
@Mock JedisMessageListener jedisPubSub;
|
||||
@Mock BinaryJedisPubSub jedisPubSub;
|
||||
|
||||
@Mock MessageListener listener;
|
||||
|
||||
|
||||
@@ -465,6 +465,7 @@ public class ReactiveRedisTemplateIntegrationTests<K, V> {
|
||||
|
||||
redisTemplate.listenToChannelLater(channel) //
|
||||
.doOnNext(it -> redisTemplate.convertAndSend(channel, message).subscribe()).flatMapMany(Function.identity()) //
|
||||
.cast(Message.class) // why? java16 why?
|
||||
.as(StepVerifier::create) //
|
||||
.assertNext(received -> {
|
||||
|
||||
@@ -515,6 +516,7 @@ public class ReactiveRedisTemplateIntegrationTests<K, V> {
|
||||
|
||||
stream.doOnNext(it -> redisTemplate.convertAndSend(channel, message).subscribe()) //
|
||||
.flatMapMany(Function.identity()) //
|
||||
.cast(Message.class) // why? java16 why?
|
||||
.as(StepVerifier::create) //
|
||||
.assertNext(received -> {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user