use of no.stelar7.api.r4j.impl.lol.builders.championmastery.ChampionMasteryBuilder in project L4J8 by stelar7.
the class ChampionMasteryTest method testChampionMasteryScore.
@Test
public void testChampionMasteryScore() {
Integer score = new ChampionMasteryBuilder().withPlatform(Constants.TEST_PLATFORM[0]).withSummonerId(Constants.TEST_SUMMONER_IDS[0]).getMasteryScore();
Assert.assertNotNull("no data", score);
}
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() {
ChampionMastery mastery;
ChampionMasteryBuilder bu = new ChampionMasteryBuilder().withPlatform(Constants.TEST_PLATFORM[0]).withSummonerId(Constants.TEST_SUMMONER_IDS[0]);
mastery = bu.withChampionId(Constants.TEST_CHAMPION_IDS[0]).getChampionMastery();
assert mastery != null;
mastery = bu.withChampionId(Constants.TEST_CHAMPION_IDS[1]).getChampionMastery();
assert mastery != null;
}
use of no.stelar7.api.r4j.impl.lol.builders.championmastery.ChampionMasteryBuilder in project L4J8 by stelar7.
the class ChampionMasteryTest method testChampionMasteryScore.
@Test
public void testChampionMasteryScore() {
String id = new SpectatorBuilder().withPlatform(LeagueShard.EUW1).getFeaturedGames().get(0).getParticipants().get(0).getSummonerName();
Summoner s = new SummonerBuilder().withPlatform(LeagueShard.EUW1).withName(id).get();
Integer score = new ChampionMasteryBuilder().withPlatform(s.getPlatform()).withSummonerId(s.getSummonerId()).getMasteryScore();
Assertions.assertNotNull(score, "no data");
}
use of no.stelar7.api.r4j.impl.lol.builders.championmastery.ChampionMasteryBuilder in project L4J8 by stelar7.
the class ChampionMasteryTest method testChampionMasteryAll.
@Test
public void testChampionMasteryAll() {
String id = new SpectatorBuilder().withPlatform(LeagueShard.EUW1).getFeaturedGames().get(0).getParticipants().get(0).getSummonerName();
Summoner s = new SummonerBuilder().withPlatform(LeagueShard.EUW1).withName(id).get();
List<ChampionMastery> all = new ChampionMasteryBuilder().withPlatform(s.getPlatform()).withSummonerId(s.getSummonerId()).getChampionMasteries();
assert all != null;
}
use of no.stelar7.api.r4j.impl.lol.builders.championmastery.ChampionMasteryBuilder in project L4J8 by stelar7.
the class ChampionMasteryTest method testChampionMasteryTop.
@Test
public void testChampionMasteryTop() {
String id = new SpectatorBuilder().withPlatform(LeagueShard.EUW1).getFeaturedGames().get(0).getParticipants().get(0).getSummonerName();
Summoner s = new SummonerBuilder().withPlatform(LeagueShard.EUW1).withName(id).get();
List<ChampionMastery> all = new ChampionMasteryBuilder().withPlatform(s.getPlatform()).withSummonerId(s.getSummonerId()).getTopChampions(null);
assert all != null;
}
Aggregations