Search in sources :

Example 36 with FileSystemCacheProvider

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

the class StaticTest method testPerkPath.

@Test
public void testPerkPath() {
    DataCall.setCacheProvider(new FileSystemCacheProvider());
    DataCall.setLogLevel(LogLevel.DEBUG);
    List<PerkPath> paths = api.getPerkPaths(Platform.EUW1, null, null);
}
Also used : FileSystemCacheProvider(no.stelar7.api.l4j8.basic.cache.impl.FileSystemCacheProvider)

Example 37 with FileSystemCacheProvider

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

the class StaticTest method testPerkId.

@Test
public void testPerkId() {
    DataCall.setCacheProvider(new FileSystemCacheProvider());
    DataCall.setLogLevel(LogLevel.DEBUG);
    StaticPerk paths = api.getPerk(Platform.EUW1, 8005, null, null);
    System.out.println();
}
Also used : FileSystemCacheProvider(no.stelar7.api.l4j8.basic.cache.impl.FileSystemCacheProvider)

Example 38 with FileSystemCacheProvider

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

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

the class StaticTest method testChampionSingle.

@Test
public void testChampionSingle() {
    DataCall.setCacheProvider(new FileSystemCacheProvider());
    DataCall.setLogLevel(LogLevel.DEBUG);
    EnumSet<ChampDataFlags> dataFlags = EnumSet.of(ChampDataFlags.ALL, ChampDataFlags.IMAGE);
    StaticChampion list = api.getChampion(Platform.EUW1, Constants.TEST_CHAMPION_IDS[0], dataFlags, null, null);
    Assert.assertTrue("ok?", list.getId() == Constants.TEST_CHAMPION_IDS[0]);
}
Also used : StaticChampion(no.stelar7.api.l4j8.pojo.staticdata.champion.StaticChampion) FileSystemCacheProvider(no.stelar7.api.l4j8.basic.cache.impl.FileSystemCacheProvider)

Example 40 with FileSystemCacheProvider

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

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