Search in sources :

Example 6 with PokemonRepository

use of pokeraidbot.domain.pokemon.PokemonRepository in project pokeraidbot by magnusmickelsson.

the class CounterTextFileParserText method assertPokemonHasCorrectNumberOfCounters.

private void assertPokemonHasCorrectNumberOfCounters(String pokemonName, int goodCounters, int supremeCounters) {
    CounterTextFileParser parser = new CounterTextFileParser("/counters", pokemonName, new PokemonRepository("/pokemons.csv", localeService));
    assertThat(parser.getBestCounters().size(), is(supremeCounters));
    assertThat(parser.getGoodCounters().size(), is(goodCounters));
}
Also used : PokemonRepository(pokeraidbot.domain.pokemon.PokemonRepository)

Aggregations

PokemonRepository (pokeraidbot.domain.pokemon.PokemonRepository)6 Before (org.junit.Before)4 LocaleService (pokeraidbot.domain.config.LocaleService)3 UserConfigRepository (pokeraidbot.infrastructure.jpa.config.UserConfigRepository)2 Test (org.junit.Test)1 Pokemon (pokeraidbot.domain.pokemon.Pokemon)1