private String getGameName(final String gameTypeId) { for (final GameTypeInformation gameTypeInformation : gameTypeRepository.getGameTypes().values()) { if (gameTypeInformation.getGameType().getId().equals(gameTypeId)) { return gameTypeInformation.getGameType().getName(); } } return gameTypeId; }
@Before public void setup() { Map<String, GameTypeInformation> gameTypes = new HashMap<String, GameTypeInformation>(); gameTypes.put( "SLOTS", new GameTypeInformation( new GameType("SLOTS", "SLOTS", Collections.<String>emptySet()), true)); when(gameTypeRepository.getGameTypes()).thenReturn(gameTypes); }