Search in sources :

Example 1 with ChampionMasteryBuilder

use of no.stelar7.api.l4j8.impl.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);
}
Also used : ChampionMasteryBuilder(no.stelar7.api.l4j8.impl.builders.championmastery.ChampionMasteryBuilder)

Example 2 with ChampionMasteryBuilder

use of no.stelar7.api.l4j8.impl.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;
}
Also used : ChampionMasteryBuilder(no.stelar7.api.l4j8.impl.builders.championmastery.ChampionMasteryBuilder) ChampionMastery(no.stelar7.api.l4j8.pojo.championmastery.ChampionMastery)

Aggregations

ChampionMasteryBuilder (no.stelar7.api.l4j8.impl.builders.championmastery.ChampionMasteryBuilder)2 ChampionMastery (no.stelar7.api.l4j8.pojo.championmastery.ChampionMastery)1