@@ -67,7 +67,7 @@ void before() {
67
67
@ Test // DATAREDIS-612
68
68
void shouldSubscribeChannels () {
69
69
70
- when (commandsMock .subscribe (any ())).thenReturn (Mono .empty ());
70
+ when (commandsMock .subscribe (any (ByteBuffer []. class ))).thenReturn (Mono .empty ());
71
71
72
72
Mono <Void > subscribe = subscription .subscribe (getByteBuffer ("foo" ), getByteBuffer ("bar" ));
73
73
@@ -82,7 +82,7 @@ void shouldSubscribeChannels() {
82
82
@ Test // DATAREDIS-612
83
83
void shouldSubscribeChannelsShouldFail () {
84
84
85
- when (commandsMock .subscribe (any ())).thenReturn (Mono .error (new RedisConnectionException ("Foo" )));
85
+ when (commandsMock .subscribe (any (ByteBuffer []. class ))).thenReturn (Mono .error (new RedisConnectionException ("Foo" )));
86
86
87
87
Mono <Void > subscribe = subscription .subscribe (getByteBuffer ("foo" ), getByteBuffer ("bar" ));
88
88
@@ -92,7 +92,7 @@ void shouldSubscribeChannelsShouldFail() {
92
92
@ Test // DATAREDIS-612
93
93
void shouldSubscribePatterns () {
94
94
95
- when (commandsMock .psubscribe (any ())).thenReturn (Mono .empty ());
95
+ when (commandsMock .psubscribe (any (ByteBuffer []. class ))).thenReturn (Mono .empty ());
96
96
97
97
Mono <Void > subscribe = subscription .pSubscribe (getByteBuffer ("foo" ), getByteBuffer ("bar" ));
98
98
@@ -107,33 +107,33 @@ void shouldSubscribePatterns() {
107
107
@ Test // DATAREDIS-612
108
108
void shouldUnsubscribeChannels () {
109
109
110
- when (commandsMock .subscribe (any ())).thenReturn (Mono .empty ());
111
- when (commandsMock .unsubscribe (any ())).thenReturn (Mono .empty ());
110
+ when (commandsMock .subscribe (any (ByteBuffer []. class ))).thenReturn (Mono .empty ());
111
+ when (commandsMock .unsubscribe (any (ByteBuffer []. class ))).thenReturn (Mono .empty ());
112
112
subscription .subscribe (getByteBuffer ("foo" ), getByteBuffer ("bar" )).as (StepVerifier ::create ).verifyComplete ();
113
113
114
114
subscription .unsubscribe ().as (StepVerifier ::create ).verifyComplete ();
115
115
116
116
assertThat (subscription .getChannels ()).isEmpty ();
117
- verify (commandsMock ).unsubscribe (any ());
117
+ verify (commandsMock ).unsubscribe (any (ByteBuffer []. class ));
118
118
}
119
119
120
120
@ Test // DATAREDIS-612
121
121
void shouldUnsubscribePatterns () {
122
122
123
- when (commandsMock .psubscribe (any ())).thenReturn (Mono .empty ());
124
- when (commandsMock .punsubscribe (any ())).thenReturn (Mono .empty ());
123
+ when (commandsMock .psubscribe (any (ByteBuffer []. class ))).thenReturn (Mono .empty ());
124
+ when (commandsMock .punsubscribe (any (ByteBuffer []. class ))).thenReturn (Mono .empty ());
125
125
subscription .pSubscribe (getByteBuffer ("foo" ), getByteBuffer ("bar" )).as (StepVerifier ::create ).verifyComplete ();
126
126
127
127
subscription .pUnsubscribe ().as (StepVerifier ::create ).verifyComplete ();
128
128
129
129
assertThat (subscription .getPatterns ()).isEmpty ();
130
- verify (commandsMock ).punsubscribe (any ());
130
+ verify (commandsMock ).punsubscribe (any (ByteBuffer []. class ));
131
131
}
132
132
133
133
@ Test // DATAREDIS-612
134
134
void shouldEmitChannelMessage () {
135
135
136
- when (commandsMock .subscribe (any ())).thenReturn (Mono .empty ());
136
+ when (commandsMock .subscribe (any (ByteBuffer []. class ))).thenReturn (Mono .empty ());
137
137
subscription .subscribe (getByteBuffer ("foo" ), getByteBuffer ("bar" )).as (StepVerifier ::create ).verifyComplete ();
138
138
139
139
DirectProcessor <io .lettuce .core .pubsub .api .reactive .ChannelMessage <ByteBuffer , ByteBuffer >> emitter = DirectProcessor
@@ -153,7 +153,7 @@ void shouldEmitChannelMessage() {
153
153
@ Test // DATAREDIS-612
154
154
void shouldEmitPatternMessage () {
155
155
156
- when (commandsMock .psubscribe (any ())).thenReturn (Mono .empty ());
156
+ when (commandsMock .psubscribe (any (ByteBuffer []. class ))).thenReturn (Mono .empty ());
157
157
subscription .pSubscribe (getByteBuffer ("foo*" ), getByteBuffer ("bar*" )).as (StepVerifier ::create ).verifyComplete ();
158
158
159
159
DirectProcessor <io .lettuce .core .pubsub .api .reactive .PatternMessage <ByteBuffer , ByteBuffer >> emitter = DirectProcessor
@@ -175,7 +175,7 @@ void shouldEmitPatternMessage() {
175
175
@ Test // DATAREDIS-612
176
176
void shouldEmitError () {
177
177
178
- when (commandsMock .subscribe (any ())).thenReturn (Mono .empty ());
178
+ when (commandsMock .subscribe (any (ByteBuffer []. class ))).thenReturn (Mono .empty ());
179
179
subscription .subscribe (getByteBuffer ("foo" ), getByteBuffer ("bar" )).as (StepVerifier ::create ).verifyComplete ();
180
180
181
181
DirectProcessor <io .lettuce .core .pubsub .api .reactive .ChannelMessage <ByteBuffer , ByteBuffer >> emitter = DirectProcessor
0 commit comments