@@ -68,7 +68,7 @@ void before() {
6868 @ Test // DATAREDIS-612
6969 void shouldSubscribeChannels () {
7070
71- when (pubSubMock .subscribe (any ())).thenReturn (Mono .empty ());
71+ when (pubSubMock .subscribe (any (ByteBuffer []. class ))).thenReturn (Mono .empty ());
7272
7373 Mono <Void > subscribe = subscription .subscribe (getByteBuffer ("foo" ), getByteBuffer ("bar" ));
7474
@@ -83,7 +83,7 @@ void shouldSubscribeChannels() {
8383 @ Test // DATAREDIS-612
8484 void shouldSubscribeChannelsShouldFail () {
8585
86- when (pubSubMock .subscribe (any ())).thenReturn (Mono .error (new RedisConnectionException ("Foo" )));
86+ when (pubSubMock .subscribe (any (ByteBuffer []. class ))).thenReturn (Mono .error (new RedisConnectionException ("Foo" )));
8787
8888 Mono <Void > subscribe = subscription .subscribe (getByteBuffer ("foo" ), getByteBuffer ("bar" ));
8989
@@ -93,7 +93,7 @@ void shouldSubscribeChannelsShouldFail() {
9393 @ Test // DATAREDIS-612
9494 void shouldSubscribePatterns () {
9595
96- when (pubSubMock .pSubscribe (any ())).thenReturn (Mono .empty ());
96+ when (pubSubMock .pSubscribe (any (ByteBuffer []. class ))).thenReturn (Mono .empty ());
9797
9898 Mono <Void > subscribe = subscription .pSubscribe (getByteBuffer ("foo" ), getByteBuffer ("bar" ));
9999
@@ -108,33 +108,33 @@ void shouldSubscribePatterns() {
108108 @ Test // DATAREDIS-612
109109 void shouldUnsubscribeChannels () {
110110
111- when (pubSubMock .subscribe (any ())).thenReturn (Mono .empty ());
112- when (pubSubMock .unsubscribe (any ())).thenReturn (Mono .empty ());
111+ when (pubSubMock .subscribe (any (ByteBuffer []. class ))).thenReturn (Mono .empty ());
112+ when (pubSubMock .unsubscribe (any (ByteBuffer []. class ))).thenReturn (Mono .empty ());
113113 subscription .subscribe (getByteBuffer ("foo" ), getByteBuffer ("bar" )).as (StepVerifier ::create ).verifyComplete ();
114114
115115 subscription .unsubscribe ().as (StepVerifier ::create ).verifyComplete ();
116116
117117 assertThat (subscription .getChannels ()).isEmpty ();
118- verify (pubSubMock ).unsubscribe (any ());
118+ verify (pubSubMock ).unsubscribe (any (ByteBuffer []. class ));
119119 }
120120
121121 @ Test // DATAREDIS-612
122122 void shouldUnsubscribePatterns () {
123123
124- when (pubSubMock .pSubscribe (any ())).thenReturn (Mono .empty ());
125- when (pubSubMock .pUnsubscribe (any ())).thenReturn (Mono .empty ());
124+ when (pubSubMock .pSubscribe (any (ByteBuffer []. class ))).thenReturn (Mono .empty ());
125+ when (pubSubMock .pUnsubscribe (any (ByteBuffer []. class ))).thenReturn (Mono .empty ());
126126 subscription .pSubscribe (getByteBuffer ("foo" ), getByteBuffer ("bar" )).as (StepVerifier ::create ).verifyComplete ();
127127
128128 subscription .pUnsubscribe ().as (StepVerifier ::create ).verifyComplete ();
129129
130130 assertThat (subscription .getPatterns ()).isEmpty ();
131- verify (pubSubMock ).pUnsubscribe (any ());
131+ verify (pubSubMock ).pUnsubscribe (any (ByteBuffer []. class ));
132132 }
133133
134134 @ Test // DATAREDIS-612
135135 void shouldEmitChannelMessage () {
136136
137- when (pubSubMock .subscribe (any ())).thenReturn (Mono .empty ());
137+ when (pubSubMock .subscribe (any (ByteBuffer []. class ))).thenReturn (Mono .empty ());
138138 subscription .subscribe (getByteBuffer ("foo" ), getByteBuffer ("bar" )).as (StepVerifier ::create ).verifyComplete ();
139139
140140 Sinks .Many <io .lettuce .core .pubsub .api .reactive .ChannelMessage <ByteBuffer , ByteBuffer >> sink = Sinks .many ().unicast ()
@@ -154,7 +154,7 @@ void shouldEmitChannelMessage() {
154154 @ Test // DATAREDIS-612
155155 void shouldEmitPatternMessage () {
156156
157- when (pubSubMock .pSubscribe (any ())).thenReturn (Mono .empty ());
157+ when (pubSubMock .pSubscribe (any (ByteBuffer []. class ))).thenReturn (Mono .empty ());
158158 subscription .pSubscribe (getByteBuffer ("foo*" ), getByteBuffer ("bar*" )).as (StepVerifier ::create ).verifyComplete ();
159159
160160 Sinks .Many <io .lettuce .core .pubsub .api .reactive .PatternMessage <ByteBuffer , ByteBuffer >> sink = Sinks .many ().unicast ()
@@ -176,7 +176,7 @@ void shouldEmitPatternMessage() {
176176 @ Test // DATAREDIS-612
177177 void shouldEmitError () {
178178
179- when (pubSubMock .subscribe (any ())).thenReturn (Mono .empty ());
179+ when (pubSubMock .subscribe (any (ByteBuffer []. class ))).thenReturn (Mono .empty ());
180180 subscription .subscribe (getByteBuffer ("foo" ), getByteBuffer ("bar" )).as (StepVerifier ::create ).verifyComplete ();
181181
182182 Sinks .Many <io .lettuce .core .pubsub .api .reactive .ChannelMessage <ByteBuffer , ByteBuffer >> sink = Sinks .many ().unicast ()
0 commit comments