mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-06 18:49:39 +01:00
Fix failing test
This commit is contained in:
parent
83d6d92a5c
commit
f21605bbb1
@ -172,6 +172,7 @@ public class TempbanManagerTest {
|
|||||||
public void shouldBanPlayerIpCustom() {
|
public void shouldBanPlayerIpCustom() {
|
||||||
// given
|
// given
|
||||||
Player player = mock(Player.class);
|
Player player = mock(Player.class);
|
||||||
|
given(player.getName()).willReturn("Bob");
|
||||||
String ip = "143.45.77.89";
|
String ip = "143.45.77.89";
|
||||||
TestHelper.mockPlayerIp(player, ip);
|
TestHelper.mockPlayerIp(player, ip);
|
||||||
String banCommand = "banip %ip% 15d IP ban too many logins";
|
String banCommand = "banip %ip% 15d IP ban too many logins";
|
||||||
|
Loading…
Reference in New Issue
Block a user