#1141 Rough version of TOTP commands to add and remove a code for a player

This commit is contained in:
ljacqu
2018-03-07 20:11:53 +01:00
parent 9954c82cb6
commit c3cf9e3ee0
13 changed files with 416 additions and 12 deletions
@@ -332,6 +332,19 @@ public class BukkitServiceTest {
assertThat(event.getPlayer(), equalTo(player));
}
@Test
public void shouldReturnServerIp() {
// given
String ip = "99.99.99.99";
given(server.getIp()).willReturn(ip);
// when
String result = bukkitService.getIp();
// then
assertThat(result, equalTo(ip));
}
// Note: This method is used through reflections
public static Player[] onlinePlayersImpl() {
return new Player[]{