Search in sources :

Example 6 with StaticMastery

use of no.stelar7.api.r4j.pojo.lol.staticdata.mastery.StaticMastery in project L4J8 by stelar7.

the class StaticTest method testMasterySingleOneFlag.

@Test
public void testMasterySingleOneFlag() {
    DataCall.setCacheProvider(new FileSystemCacheProvider());
    DataCall.setLogLevel(LogLevel.DEBUG);
    EnumSet<MasteryDataFlags> dataFlags = EnumSet.of(MasteryDataFlags.ALL);
    StaticMastery list = api.getMastery(Platform.EUW1, 6131, dataFlags, null, null);
    Assert.assertTrue("ok?", list.getId() == 6131);
}
Also used : StaticMastery(no.stelar7.api.l4j8.pojo.staticdata.mastery.StaticMastery) FileSystemCacheProvider(no.stelar7.api.l4j8.basic.cache.impl.FileSystemCacheProvider)

Example 7 with StaticMastery

use of no.stelar7.api.r4j.pojo.lol.staticdata.mastery.StaticMastery in project L4J8 by stelar7.

the class StaticTest method testMasterySingle.

@Test
public void testMasterySingle() {
    DataCall.setCacheProvider(new FileSystemCacheProvider());
    StaticMastery list = api.getMastery(6131);
    Assertions.assertEquals(6131, list.getId());
}
Also used : StaticMastery(no.stelar7.api.r4j.pojo.lol.staticdata.mastery.StaticMastery) FileSystemCacheProvider(no.stelar7.api.r4j.basic.cache.impl.FileSystemCacheProvider)

Example 8 with StaticMastery

use of no.stelar7.api.r4j.pojo.lol.staticdata.mastery.StaticMastery in project L4J8 by stelar7.

the class StaticTest method testMasteryList.

@Test
public void testMasteryList() {
    DataCall.setCacheProvider(new FileSystemCacheProvider());
    Map<Integer, StaticMastery> list = api.getMasteries();
}
Also used : StaticMastery(no.stelar7.api.r4j.pojo.lol.staticdata.mastery.StaticMastery) FileSystemCacheProvider(no.stelar7.api.r4j.basic.cache.impl.FileSystemCacheProvider)

Aggregations

FileSystemCacheProvider (no.stelar7.api.l4j8.basic.cache.impl.FileSystemCacheProvider)5 StaticMastery (no.stelar7.api.l4j8.pojo.staticdata.mastery.StaticMastery)5 FileSystemCacheProvider (no.stelar7.api.r4j.basic.cache.impl.FileSystemCacheProvider)3 StaticMastery (no.stelar7.api.r4j.pojo.lol.staticdata.mastery.StaticMastery)3 java.util (java.util)1 Collectors (java.util.stream.Collectors)1 L4J8 (no.stelar7.api.l4j8.impl.L4J8)1 SummonerBuilder (no.stelar7.api.l4j8.impl.builders.summoner.SummonerBuilder)1 ChampionMastery (no.stelar7.api.l4j8.pojo.championmastery.ChampionMastery)1 StaticChampion (no.stelar7.api.l4j8.pojo.staticdata.champion.StaticChampion)1 StaticRune (no.stelar7.api.l4j8.pojo.staticdata.rune.StaticRune)1 Summoner (no.stelar7.api.l4j8.pojo.summoner.Summoner)1 DataCall (no.stelar7.api.r4j.basic.calling.DataCall)1 LeagueShard (no.stelar7.api.r4j.basic.constants.api.regions.LeagueShard)1 R4J (no.stelar7.api.r4j.impl.R4J)1 ChampionMastery (no.stelar7.api.r4j.pojo.lol.championmastery.ChampionMastery)1 no.stelar7.api.r4j.pojo.lol.match.v5 (no.stelar7.api.r4j.pojo.lol.match.v5)1 StaticChampion (no.stelar7.api.r4j.pojo.lol.staticdata.champion.StaticChampion)1 StaticPerk (no.stelar7.api.r4j.pojo.lol.staticdata.perk.StaticPerk)1 StaticRune (no.stelar7.api.r4j.pojo.lol.staticdata.rune.StaticRune)1