@@ -46,7 +46,7 @@ public void testSendCommandWithProtocolCommandAndByteArrayArgs() {
4646 byte [][] args = { "arg1" .getBytes (), "arg2" .getBytes () };
4747 CommandArguments commandArguments = mock (CommandArguments .class );
4848 CommandArguments commandArgumentsWithArgs = mock (CommandArguments .class );
49- when (commandArguments .addObjects (args )).thenReturn (commandArgumentsWithArgs );
49+ when (commandArguments .addObjects (( Object []) args )).thenReturn (commandArgumentsWithArgs );
5050
5151 when (commandObjects .commandArguments (cmd )).thenReturn (commandArguments );
5252 when (commandExecutor .executeCommand (any ())).thenReturn ("OK" );
@@ -74,7 +74,7 @@ public void testSendBlockingCommandWithProtocolCommandAndByteArrayArgs() {
7474 CommandArguments commandArgumentsWithArgs = mock (CommandArguments .class );
7575 when (commandArgumentsWithArgs .blocking ()).thenReturn (commandArgumentsBlocking );
7676
77- when (commandArguments .addObjects (args )).thenReturn (commandArgumentsWithArgs );
77+ when (commandArguments .addObjects (( Object []) args )).thenReturn (commandArgumentsWithArgs );
7878
7979 when (commandObjects .commandArguments (cmd )).thenReturn (commandArguments );
8080 when (commandExecutor .executeCommand (any ())).thenReturn ("OK" );
@@ -98,7 +98,7 @@ public void testSendCommandWithProtocolCommandAndStringArgs() {
9898 String [] args = { "arg1" , "arg2" };
9999 CommandArguments commandArguments = mock (CommandArguments .class );
100100 CommandArguments commandArgumentsWithArgs = mock (CommandArguments .class );
101- when (commandArguments .addObjects (args )).thenReturn (commandArgumentsWithArgs );
101+ when (commandArguments .addObjects (( Object []) args )).thenReturn (commandArgumentsWithArgs );
102102
103103 when (commandObjects .commandArguments (cmd )).thenReturn (commandArguments );
104104 when (commandExecutor .executeCommand (any ())).thenReturn ("OK" );
@@ -126,7 +126,7 @@ public void testSendBlockingCommandWithProtocolCommandAndStringArgs() {
126126 CommandArguments commandArgumentsWithArgs = mock (CommandArguments .class );
127127 when (commandArgumentsWithArgs .blocking ()).thenReturn (commandArgumentsBlocking );
128128
129- when (commandArguments .addObjects (args )).thenReturn (commandArgumentsWithArgs );
129+ when (commandArguments .addObjects (( Object []) args )).thenReturn (commandArgumentsWithArgs );
130130
131131 when (commandObjects .commandArguments (cmd )).thenReturn (commandArguments );
132132 when (commandExecutor .executeCommand (any ())).thenReturn ("OK" );
0 commit comments