@@ -67,7 +67,7 @@ void before() {
6767 @ Test // DATAREDIS-612
6868 void shouldSubscribeChannels () {
6969
70- when (commandsMock .subscribe (any ())).thenReturn (Mono .empty ());
70+ when (commandsMock .subscribe (any (ByteBuffer []. class ))).thenReturn (Mono .empty ());
7171
7272 Mono <Void > subscribe = subscription .subscribe (getByteBuffer ("foo" ), getByteBuffer ("bar" ));
7373
@@ -82,7 +82,7 @@ void shouldSubscribeChannels() {
8282 @ Test // DATAREDIS-612
8383 void shouldSubscribeChannelsShouldFail () {
8484
85- when (commandsMock .subscribe (any ())).thenReturn (Mono .error (new RedisConnectionException ("Foo" )));
85+ when (commandsMock .subscribe (any (ByteBuffer []. class ))).thenReturn (Mono .error (new RedisConnectionException ("Foo" )));
8686
8787 Mono <Void > subscribe = subscription .subscribe (getByteBuffer ("foo" ), getByteBuffer ("bar" ));
8888
@@ -92,7 +92,7 @@ void shouldSubscribeChannelsShouldFail() {
9292 @ Test // DATAREDIS-612
9393 void shouldSubscribePatterns () {
9494
95- when (commandsMock .psubscribe (any ())).thenReturn (Mono .empty ());
95+ when (commandsMock .psubscribe (any (ByteBuffer []. class ))).thenReturn (Mono .empty ());
9696
9797 Mono <Void > subscribe = subscription .pSubscribe (getByteBuffer ("foo" ), getByteBuffer ("bar" ));
9898
@@ -107,33 +107,33 @@ void shouldSubscribePatterns() {
107107 @ Test // DATAREDIS-612
108108 void shouldUnsubscribeChannels () {
109109
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 ());
112112 subscription .subscribe (getByteBuffer ("foo" ), getByteBuffer ("bar" )).as (StepVerifier ::create ).verifyComplete ();
113113
114114 subscription .unsubscribe ().as (StepVerifier ::create ).verifyComplete ();
115115
116116 assertThat (subscription .getChannels ()).isEmpty ();
117- verify (commandsMock ).unsubscribe (any ());
117+ verify (commandsMock ).unsubscribe (any (ByteBuffer []. class ));
118118 }
119119
120120 @ Test // DATAREDIS-612
121121 void shouldUnsubscribePatterns () {
122122
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 ());
125125 subscription .pSubscribe (getByteBuffer ("foo" ), getByteBuffer ("bar" )).as (StepVerifier ::create ).verifyComplete ();
126126
127127 subscription .pUnsubscribe ().as (StepVerifier ::create ).verifyComplete ();
128128
129129 assertThat (subscription .getPatterns ()).isEmpty ();
130- verify (commandsMock ).punsubscribe (any ());
130+ verify (commandsMock ).punsubscribe (any (ByteBuffer []. class ));
131131 }
132132
133133 @ Test // DATAREDIS-612
134134 void shouldEmitChannelMessage () {
135135
136- when (commandsMock .subscribe (any ())).thenReturn (Mono .empty ());
136+ when (commandsMock .subscribe (any (ByteBuffer []. class ))).thenReturn (Mono .empty ());
137137 subscription .subscribe (getByteBuffer ("foo" ), getByteBuffer ("bar" )).as (StepVerifier ::create ).verifyComplete ();
138138
139139 DirectProcessor <io .lettuce .core .pubsub .api .reactive .ChannelMessage <ByteBuffer , ByteBuffer >> emitter = DirectProcessor
@@ -153,7 +153,7 @@ void shouldEmitChannelMessage() {
153153 @ Test // DATAREDIS-612
154154 void shouldEmitPatternMessage () {
155155
156- when (commandsMock .psubscribe (any ())).thenReturn (Mono .empty ());
156+ when (commandsMock .psubscribe (any (ByteBuffer []. class ))).thenReturn (Mono .empty ());
157157 subscription .pSubscribe (getByteBuffer ("foo*" ), getByteBuffer ("bar*" )).as (StepVerifier ::create ).verifyComplete ();
158158
159159 DirectProcessor <io .lettuce .core .pubsub .api .reactive .PatternMessage <ByteBuffer , ByteBuffer >> emitter = DirectProcessor
@@ -175,7 +175,7 @@ void shouldEmitPatternMessage() {
175175 @ Test // DATAREDIS-612
176176 void shouldEmitError () {
177177
178- when (commandsMock .subscribe (any ())).thenReturn (Mono .empty ());
178+ when (commandsMock .subscribe (any (ByteBuffer []. class ))).thenReturn (Mono .empty ());
179179 subscription .subscribe (getByteBuffer ("foo" ), getByteBuffer ("bar" )).as (StepVerifier ::create ).verifyComplete ();
180180
181181 DirectProcessor <io .lettuce .core .pubsub .api .reactive .ChannelMessage <ByteBuffer , ByteBuffer >> emitter = DirectProcessor
0 commit comments