use of pokeraidbot.domain.pokemon.PokemonRepository in project pokeraidbot by magnusmickelsson.
the class RaidRepositoryTest method setUp.
@Before
public void setUp() throws Exception {
Utils.setClockService(clockService);
gymRepository = TestServerMain.getGymRepositoryForConfig(localeService, serverConfigRepository);
pokemonRepository = new PokemonRepository("/pokemons.csv", localeService);
raidEntityRepository.deleteAllInBatch();
}
use of pokeraidbot.domain.pokemon.PokemonRepository in project pokeraidbot by magnusmickelsson.
the class UtilsTest method testPrintWeaknesses.
@Test
public void testPrintWeaknesses() throws Exception {
PokemonRepository pokemonRepository = new PokemonRepository("/pokemons.csv", new LocaleService("sv", userConfigRepository));
Pokemon pokemon = pokemonRepository.search("Tyranitar", null);
assertThat(Utils.printWeaknesses(pokemon), is("Water, **Fighting**, Ground, Grass, Steel, Bug, Fairy"));
}
use of pokeraidbot.domain.pokemon.PokemonRepository in project pokeraidbot by magnusmickelsson.
the class RaidStatisticsTest method setUp.
@Before
public void setUp() throws Exception {
clockService.setMockTime(currentTime);
Utils.setClockService(clockService);
gymRepository = TestServerMain.getGymRepositoryForConfig(localeService, serverConfigRepository);
pokemonRepository = new PokemonRepository("/pokemons.csv", localeService);
}
use of pokeraidbot.domain.pokemon.PokemonRepository 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.pokemon.PokemonRepository 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