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