Search in sources :

Example 26 with FileSystemCacheProvider

use of no.stelar7.api.l4j8.basic.cache.impl.FileSystemCacheProvider in project L4J8 by stelar7.

the class StaticTest method testSummonerSpellSingle.

@Test
public void testSummonerSpellSingle() {
    DataCall.setCacheProvider(new FileSystemCacheProvider());
    DataCall.setLogLevel(LogLevel.DEBUG);
    EnumSet<SpellDataFlags> dataFlags = EnumSet.of(SpellDataFlags.ALL, SpellDataFlags.IMAGE);
    StaticSummonerSpell list = api.getSummonerSpell(Platform.EUW1, 21, dataFlags, null, null);
    Assert.assertTrue("ok?", list.getId() == 21);
}
Also used : FileSystemCacheProvider(no.stelar7.api.l4j8.basic.cache.impl.FileSystemCacheProvider) StaticSummonerSpell(no.stelar7.api.l4j8.pojo.staticdata.summonerspell.StaticSummonerSpell)

Example 27 with FileSystemCacheProvider

use of no.stelar7.api.l4j8.basic.cache.impl.FileSystemCacheProvider in project L4J8 by stelar7.

the class StaticTest method testVersions.

@Test
public void testVersions() {
    DataCall.setCacheProvider(new FileSystemCacheProvider());
    DataCall.setLogLevel(LogLevel.DEBUG);
    List<String> data = api.getVersions(Platform.EUW1);
}
Also used : FileSystemCacheProvider(no.stelar7.api.l4j8.basic.cache.impl.FileSystemCacheProvider)

Example 28 with FileSystemCacheProvider

use of no.stelar7.api.l4j8.basic.cache.impl.FileSystemCacheProvider in project L4J8 by stelar7.

the class StaticTest method testItemList.

@Test
public void testItemList() {
    DataCall.setCacheProvider(new FileSystemCacheProvider());
    DataCall.setLogLevel(LogLevel.DEBUG);
    EnumSet<ItemDataFlags> dataFlags = EnumSet.of(ItemDataFlags.ALL, ItemDataFlags.IMAGE);
    ItemList list = api.getItems(Platform.EUW1, dataFlags, null, null);
    Assert.assertTrue("less than 100?", list.getData().size() > 100);
}
Also used : FileSystemCacheProvider(no.stelar7.api.l4j8.basic.cache.impl.FileSystemCacheProvider)

Example 29 with FileSystemCacheProvider

use of no.stelar7.api.l4j8.basic.cache.impl.FileSystemCacheProvider in project L4J8 by stelar7.

the class StaticTest method testProfileIcons.

@Test
public void testProfileIcons() {
    DataCall.setCacheProvider(new FileSystemCacheProvider());
    DataCall.setLogLevel(LogLevel.DEBUG);
    Map<Long, ProfileIconDetails> data = api.getProfileIcons(Platform.EUW1, null, null);
}
Also used : ProfileIconDetails(no.stelar7.api.l4j8.pojo.staticdata.profileicon.ProfileIconDetails) FileSystemCacheProvider(no.stelar7.api.l4j8.basic.cache.impl.FileSystemCacheProvider)

Aggregations

FileSystemCacheProvider (no.stelar7.api.l4j8.basic.cache.impl.FileSystemCacheProvider)28 StaticMastery (no.stelar7.api.l4j8.pojo.staticdata.mastery.StaticMastery)5 SummonerBuilder (no.stelar7.api.l4j8.impl.builders.summoner.SummonerBuilder)4 StaticChampion (no.stelar7.api.l4j8.pojo.staticdata.champion.StaticChampion)4 StaticRune (no.stelar7.api.l4j8.pojo.staticdata.rune.StaticRune)3 Summoner (no.stelar7.api.l4j8.pojo.summoner.Summoner)3 L4J8 (no.stelar7.api.l4j8.impl.L4J8)2 StaticSummonerSpell (no.stelar7.api.l4j8.pojo.staticdata.summonerspell.StaticSummonerSpell)2 java.awt (java.awt)1 AffineTransform (java.awt.geom.AffineTransform)1 java.awt.image (java.awt.image)1 java.io (java.io)1 URL (java.net.URL)1 java.util (java.util)1 List (java.util.List)1 Predicate (java.util.function.Predicate)1 IntStream (java.util.stream.IntStream)1 ImageIO (javax.imageio.ImageIO)1 DataCall (no.stelar7.api.l4j8.basic.calling.DataCall)1 Platform (no.stelar7.api.l4j8.basic.constants.api.Platform)1