@@ -406,7 +406,7 @@ public void testRunCommandsSudoUserOnlinePerformCommand() {
406406 when (user .getName ()).thenReturn ("tastybento" );
407407 when (user .isOnline ()).thenReturn (true );
408408 when (user .performCommand (anyString ())).thenReturn (true );
409- Util .runCommands (user , "tasty" , Collections .singletonList ("[SUDO]help" ), "test" );
409+ Util .runCommands (user , Collections .singletonList ("[SUDO]help" ), "test" );
410410 verify (plugin , never ()).logError (anyString ());
411411 }
412412
@@ -418,7 +418,7 @@ public void testRunCommandsSudoUserOnlineFailCommand() {
418418 when (user .getName ()).thenReturn ("tastybento" );
419419 when (user .isOnline ()).thenReturn (true );
420420 when (user .performCommand (anyString ())).thenReturn (false );
421- Util .runCommands (user , "tasty" , Collections .singletonList ("[SUDO]help" ), "test" );
421+ Util .runCommands (user , Collections .singletonList ("[SUDO]help" ), "test" );
422422 verify (plugin ).logError (eq ("Could not execute test command for tastybento: help" ));
423423 }
424424
@@ -430,7 +430,7 @@ public void testRunCommandsSudoUserOfflineCommand() {
430430 when (user .getName ()).thenReturn ("tastybento" );
431431 when (user .isOnline ()).thenReturn (false );
432432 when (user .performCommand (anyString ())).thenReturn (true );
433- Util .runCommands (user , "tasty" , Collections .singletonList ("[SUDO]help" ), "test" );
433+ Util .runCommands (user , Collections .singletonList ("[SUDO]help" ), "test" );
434434 verify (plugin ).logError (eq ("Could not execute test command for tastybento: help" ));
435435 }
436436
@@ -441,13 +441,13 @@ public void testRunCommandsSudoUserOfflineCommand() {
441441 public void testRunCommandsConsoleCommand () {
442442 when (user .getName ()).thenReturn ("tastybento" );
443443 when (Bukkit .dispatchCommand (eq (sender ), anyString ())).thenReturn (true );
444- Util .runCommands (user , "tasty" , List .of ("replace [player]" , "replace owner [owner]" , "[owner] [player]" ), "test" );
444+ Util .runCommands (user , List .of ("replace [player]" , "replace owner [owner]" , "[owner] [player]" ), "test" );
445445 PowerMockito .verifyStatic (Bukkit .class );
446446 Bukkit .dispatchCommand (sender , "replace tastybento" );
447447 PowerMockito .verifyStatic (Bukkit .class );
448- Bukkit .dispatchCommand (sender , "replace owner tasty " );
448+ Bukkit .dispatchCommand (sender , "replace owner tastybento " );
449449 PowerMockito .verifyStatic (Bukkit .class );
450- Bukkit .dispatchCommand (sender , "tasty tastybento" );
450+ Bukkit .dispatchCommand (sender , "tastybento tastybento" );
451451 verify (plugin , never ()).logError (anyString ());
452452 }
453453
@@ -458,7 +458,7 @@ public void testRunCommandsConsoleCommand() {
458458 public void testRunCommandsConsoleCommandFail () {
459459 when (user .getName ()).thenReturn ("tastybento" );
460460 when (Bukkit .dispatchCommand (eq (sender ), anyString ())).thenReturn (false );
461- Util .runCommands (user , "" , Collections .singletonList ("replace [player]" ), "test" );
461+ Util .runCommands (user , Collections .singletonList ("replace [player]" ), "test" );
462462 PowerMockito .verifyStatic (Bukkit .class );
463463 Bukkit .dispatchCommand (sender , "replace tastybento" );
464464 verify (plugin ).logError ("Could not execute test command as console: replace tastybento" );
0 commit comments