Remove unnecessary stubbing in SetPasswordCommandTest
This commit is contained in:
parent
2214fa5839
commit
cfbb3f9a7f
@ -89,8 +89,6 @@ public class SetPasswordCommandTest {
|
|||||||
public void shouldDoNothingCantChangePass() {
|
public void shouldDoNothingCantChangePass() {
|
||||||
// given
|
// given
|
||||||
Player player = mock(Player.class);
|
Player player = mock(Player.class);
|
||||||
String name = "Carol";
|
|
||||||
given(player.getName()).willReturn(name);
|
|
||||||
|
|
||||||
// when
|
// when
|
||||||
command.runCommand(player, Collections.singletonList("abc123"));
|
command.runCommand(player, Collections.singletonList("abc123"));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user