@Test public void deletePlayerData() { repository.setPlayerProxy("proxy-1", PLAYER_NAME); repository.setPlayerServer("bw-1", PLAYER_NAME); repository.deletePlayerData(PLAYER_NAME); assertFalse(repository.getPlayerProxy(PLAYER_NAME).isPresent()); assertFalse(repository.getPlayerServer(PLAYER_NAME).isPresent()); }
@Override public void deletePlayerData(String player) { redisTransactions.runTransaction(jedis -> { jedis.hdel(this.playerHashTable(player), SERVER, PROXY); }); }
RedisPlayerRepository implements PlayerRepository { @Override public void deletePlayerData(String player) { redisTransactions.runTransaction(jedis -> { jedis.hdel(this.playerHashTable(player), SERVER, PROXY); }); } }
RedisPlayerRepository implements PlayerRepository { @Override public void deletePlayerData(String player) { redisTransactions.runTransaction(jedis -> { jedis.hdel(this.playerHashTable(player), SERVER, PROXY); }); }  }
RedisPlayerRepository implements PlayerRepository { @Override public void deletePlayerData(String player) { redisTransactions.runTransaction(jedis -> { jedis.hdel(this.playerHashTable(player), SERVER, PROXY); }); }  @Override void setPlayerServer(String server, String playerName); @Override Map<String, String> getPlayersProxies(Collection<String> playerNames); @Override void setPlayerProxy(String player, String playerName); @Override Optional<String> getPlayerServer(String playerName); @Override Optional<String> getPlayerProxy(String playerName); @Override void deletePlayerData(String player); }
RedisPlayerRepository implements PlayerRepository { @Override public void deletePlayerData(String player) { redisTransactions.runTransaction(jedis -> { jedis.hdel(this.playerHashTable(player), SERVER, PROXY); }); }  @Override void setPlayerServer(String server, String playerName); @Override Map<String, String> getPlayersProxies(Collection<String> playerNames); @Override void setPlayerProxy(String player, String playerName); @Override Optional<String> getPlayerServer(String playerName); @Override Optional<String> getPlayerProxy(String playerName); @Override void deletePlayerData(String player);  }