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);
}
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);
}
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);
}
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);
}
Aggregations