use of no.stelar7.api.l4j8.basic.cache.impl.FileSystemCacheProvider in project L4J8 by stelar7.
the class StaticTest method testChampionList.
@Test
public void testChampionList() {
DataCall.setCacheProvider(new FileSystemCacheProvider());
DataCall.setLogLevel(LogLevel.DEBUG);
EnumSet<ChampDataFlags> dataFlags = EnumSet.of(ChampDataFlags.ALL, ChampDataFlags.IMAGE);
Map<Integer, StaticChampion> list = api.getChampions(Platform.EUW1, dataFlags, null, null);
Assert.assertTrue("less than 100?", list.size() > 100);
}
use of no.stelar7.api.l4j8.basic.cache.impl.FileSystemCacheProvider in project L4J8 by stelar7.
the class StaticTest method testItemSingle.
@Test
public void testItemSingle() {
DataCall.setCacheProvider(new FileSystemCacheProvider());
DataCall.setLogLevel(LogLevel.DEBUG);
EnumSet<ItemDataFlags> dataFlags = EnumSet.of(ItemDataFlags.ALL, ItemDataFlags.IMAGE);
Item list = api.getItem(Platform.EUW1, 3147, dataFlags, null, null);
Assert.assertTrue("ok?", list.getId() == 3147);
}
use of no.stelar7.api.l4j8.basic.cache.impl.FileSystemCacheProvider in project L4J8 by stelar7.
the class StaticTest method testMasteryList.
@Test
public void testMasteryList() {
DataCall.setCacheProvider(new FileSystemCacheProvider());
DataCall.setLogLevel(LogLevel.DEBUG);
EnumSet<MasteryDataFlags> dataFlags = EnumSet.of(MasteryDataFlags.ALL, MasteryDataFlags.IMAGE);
Map<Integer, StaticMastery> list = api.getMasteries(Platform.EUW1, dataFlags, null, null);
}
use of no.stelar7.api.l4j8.basic.cache.impl.FileSystemCacheProvider in project L4J8 by stelar7.
the class StaticTest method testMasterySingleMultipleFlags.
@Test
public void testMasterySingleMultipleFlags() {
DataCall.setCacheProvider(new FileSystemCacheProvider());
DataCall.setLogLevel(LogLevel.DEBUG);
EnumSet<MasteryDataFlags> dataFlags = EnumSet.of(MasteryDataFlags.ALL, MasteryDataFlags.IMAGE);
StaticMastery list = api.getMastery(Platform.EUW1, 6131, dataFlags, null, null);
Assert.assertTrue("ok?", list.getId() == 6131);
}
use of no.stelar7.api.l4j8.basic.cache.impl.FileSystemCacheProvider in project L4J8 by stelar7.
the class StaticTest method testLanguages.
@Test
public void testLanguages() {
DataCall.setCacheProvider(new FileSystemCacheProvider());
DataCall.setLogLevel(LogLevel.DEBUG);
List<String> strings = api.getLanguages(Platform.EUW1);
}
Aggregations