Search in sources :

Example 41 with FileSystemCacheProvider

use of no.stelar7.api.r4j.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 42 with FileSystemCacheProvider

use of no.stelar7.api.r4j.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 43 with FileSystemCacheProvider

use of no.stelar7.api.r4j.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)

Example 44 with FileSystemCacheProvider

use of no.stelar7.api.r4j.basic.cache.impl.FileSystemCacheProvider 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)

Example 45 with FileSystemCacheProvider

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

the class StaticTest method testItemSingle.

@Test
public void testItemSingle() {
    DataCall.setCacheProvider(new FileSystemCacheProvider());
    Item list = api.getItem(1001);
    Assertions.assertEquals(1001, list.getId());
}
Also used : Item(no.stelar7.api.r4j.pojo.lol.staticdata.item.Item) FileSystemCacheProvider(no.stelar7.api.r4j.basic.cache.impl.FileSystemCacheProvider)

Aggregations

FileSystemCacheProvider (no.stelar7.api.l4j8.basic.cache.impl.FileSystemCacheProvider)28 FileSystemCacheProvider (no.stelar7.api.r4j.basic.cache.impl.FileSystemCacheProvider)27 StaticMastery (no.stelar7.api.l4j8.pojo.staticdata.mastery.StaticMastery)5 Summoner (no.stelar7.api.r4j.pojo.lol.summoner.Summoner)5 SummonerBuilder (no.stelar7.api.l4j8.impl.builders.summoner.SummonerBuilder)4 StaticChampion (no.stelar7.api.l4j8.pojo.staticdata.champion.StaticChampion)4 java.util (java.util)3 StaticRune (no.stelar7.api.l4j8.pojo.staticdata.rune.StaticRune)3 Summoner (no.stelar7.api.l4j8.pojo.summoner.Summoner)3 R4J (no.stelar7.api.r4j.impl.R4J)3 Item (no.stelar7.api.r4j.pojo.lol.staticdata.item.Item)3 StaticMastery (no.stelar7.api.r4j.pojo.lol.staticdata.mastery.StaticMastery)3 StaticRune (no.stelar7.api.r4j.pojo.lol.staticdata.rune.StaticRune)3 java.awt (java.awt)2 AffineTransform (java.awt.geom.AffineTransform)2 java.awt.image (java.awt.image)2 java.io (java.io)2 URL (java.net.URL)2 List (java.util.List)2 Predicate (java.util.function.Predicate)2