use of pokeraidbot.domain.config.LocaleService in project pokeraidbot by magnusmickelsson.
the class LocaleServiceTest method setUp.
@Before
public void setUp() throws Exception {
UserConfigRepository userConfigRepository = Mockito.mock(UserConfigRepository.class);
when(userConfigRepository.findOne(any(String.class))).thenReturn(null);
localeService = new LocaleService("sv", userConfigRepository);
}
use of pokeraidbot.domain.config.LocaleService in project pokeraidbot by magnusmickelsson.
the class RaidPokemonsTest method setUp.
@Before
public void setUp() throws Exception {
UserConfigRepository userConfigRepository = Mockito.mock(UserConfigRepository.class);
when(userConfigRepository.findOne(any(String.class))).thenReturn(null);
localeService = new LocaleService("sv", userConfigRepository);
pokemonRepository = new PokemonRepository("/pokemons.csv", localeService);
strategyService = new PokemonRaidStrategyService(pokemonRepository);
}
use of pokeraidbot.domain.config.LocaleService in project pokeraidbot by magnusmickelsson.
the class TestServerMain method getLocaleService.
@Bean
public LocaleService getLocaleService() {
// Emulate no user configuration, which means server config is always used unless explicitly specified in a test
UserConfigRepository userConfigRepository = Mockito.mock(UserConfigRepository.class);
when(userConfigRepository.findOne(any(String.class))).thenReturn(null);
return new LocaleService("sv", userConfigRepository);
}
use of pokeraidbot.domain.config.LocaleService in project pokeraidbot by magnusmickelsson.
the class PokemonRepositoryTest method setUp.
@Before
public void setUp() throws Exception {
UserConfigRepository userConfigRepository = Mockito.mock(UserConfigRepository.class);
when(userConfigRepository.findOne(any(String.class))).thenReturn(null);
localeService = new LocaleService("sv", userConfigRepository);
pokemonRepository = new PokemonRepository("/pokemons.csv", localeService);
}
Aggregations