@@ -46,7 +46,7 @@ public void testSendCommandWithProtocolCommandAndByteArrayArgs() {
46
46
byte [][] args = { "arg1" .getBytes (), "arg2" .getBytes () };
47
47
CommandArguments commandArguments = mock (CommandArguments .class );
48
48
CommandArguments commandArgumentsWithArgs = mock (CommandArguments .class );
49
- when (commandArguments .addObjects (args )).thenReturn (commandArgumentsWithArgs );
49
+ when (commandArguments .addObjects (( Object []) args )).thenReturn (commandArgumentsWithArgs );
50
50
51
51
when (commandObjects .commandArguments (cmd )).thenReturn (commandArguments );
52
52
when (commandExecutor .executeCommand (any ())).thenReturn ("OK" );
@@ -74,7 +74,7 @@ public void testSendBlockingCommandWithProtocolCommandAndByteArrayArgs() {
74
74
CommandArguments commandArgumentsWithArgs = mock (CommandArguments .class );
75
75
when (commandArgumentsWithArgs .blocking ()).thenReturn (commandArgumentsBlocking );
76
76
77
- when (commandArguments .addObjects (args )).thenReturn (commandArgumentsWithArgs );
77
+ when (commandArguments .addObjects (( Object []) args )).thenReturn (commandArgumentsWithArgs );
78
78
79
79
when (commandObjects .commandArguments (cmd )).thenReturn (commandArguments );
80
80
when (commandExecutor .executeCommand (any ())).thenReturn ("OK" );
@@ -98,7 +98,7 @@ public void testSendCommandWithProtocolCommandAndStringArgs() {
98
98
String [] args = { "arg1" , "arg2" };
99
99
CommandArguments commandArguments = mock (CommandArguments .class );
100
100
CommandArguments commandArgumentsWithArgs = mock (CommandArguments .class );
101
- when (commandArguments .addObjects (args )).thenReturn (commandArgumentsWithArgs );
101
+ when (commandArguments .addObjects (( Object []) args )).thenReturn (commandArgumentsWithArgs );
102
102
103
103
when (commandObjects .commandArguments (cmd )).thenReturn (commandArguments );
104
104
when (commandExecutor .executeCommand (any ())).thenReturn ("OK" );
@@ -126,7 +126,7 @@ public void testSendBlockingCommandWithProtocolCommandAndStringArgs() {
126
126
CommandArguments commandArgumentsWithArgs = mock (CommandArguments .class );
127
127
when (commandArgumentsWithArgs .blocking ()).thenReturn (commandArgumentsBlocking );
128
128
129
- when (commandArguments .addObjects (args )).thenReturn (commandArgumentsWithArgs );
129
+ when (commandArguments .addObjects (( Object []) args )).thenReturn (commandArgumentsWithArgs );
130
130
131
131
when (commandObjects .commandArguments (cmd )).thenReturn (commandArguments );
132
132
when (commandExecutor .executeCommand (any ())).thenReturn ("OK" );
0 commit comments