Search in sources :

Example 6 with StaticRune

use of no.stelar7.api.r4j.pojo.lol.staticdata.rune.StaticRune in project L4J8 by stelar7.

the class StaticTest method testRuneSingle.

@Test
public void testRuneSingle() {
    DataCall.setCacheProvider(new FileSystemCacheProvider());
    StaticRune rune = api.getRune(5023);
    Assertions.assertEquals(5023, rune.getId(), "missing id?");
    Assertions.assertNotNull(rune.getStats(), "missing stats?");
    Assertions.assertNotNull(rune.getDescription(), "missing desc?");
    Assertions.assertNotNull(rune.getTags(), "missing tags?");
    Assertions.assertNotNull(rune.getImage(), "missing image?");
    Assertions.assertNotNull(rune.getRune(), "missing rune?");
    Assertions.assertNotNull(rune.getName(), "missing name?");
}
Also used : StaticRune(no.stelar7.api.r4j.pojo.lol.staticdata.rune.StaticRune) FileSystemCacheProvider(no.stelar7.api.r4j.basic.cache.impl.FileSystemCacheProvider)

Aggregations

FileSystemCacheProvider (no.stelar7.api.l4j8.basic.cache.impl.FileSystemCacheProvider)3 StaticRune (no.stelar7.api.l4j8.pojo.staticdata.rune.StaticRune)3 FileSystemCacheProvider (no.stelar7.api.r4j.basic.cache.impl.FileSystemCacheProvider)3 StaticRune (no.stelar7.api.r4j.pojo.lol.staticdata.rune.StaticRune)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 StaticMastery (no.stelar7.api.l4j8.pojo.staticdata.mastery.StaticMastery)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 StaticMastery (no.stelar7.api.r4j.pojo.lol.staticdata.mastery.StaticMastery)1 StaticPerk (no.stelar7.api.r4j.pojo.lol.staticdata.perk.StaticPerk)1