use of no.stelar7.api.r4j.impl.lol.builders.championmastery.ChampionMasteryBuilder in project L4J8 by stelar7.
the class ChampionMasteryTest method testChampionMastery.
@Test
public void testChampionMastery() {
String id = new SpectatorBuilder().withPlatform(LeagueShard.EUW1).getFeaturedGames().get(0).getParticipants().get(0).getSummonerName();
Summoner s = new SummonerBuilder().withPlatform(LeagueShard.EUW1).withName(id).get();
ChampionMastery mastery;
ChampionMasteryBuilder bu = new ChampionMasteryBuilder().withPlatform(s.getPlatform()).withSummonerId(s.getSummonerId());
mastery = bu.withChampionId(1).getChampionMastery();
assert mastery != null;
mastery = bu.withChampionId(2).getChampionMastery();
assert mastery != null;
}
Aggregations