use of pokeraidbot.infrastructure.jpa.config.UserConfigRepository 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.infrastructure.jpa.config.UserConfigRepository 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