use of no.stelar7.api.l4j8.basic.cache.impl.FileSystemCacheProvider in project L4J8 by stelar7.
the class StaticTest method testMasterySingleNoFlags.
@Test
public void testMasterySingleNoFlags() {
DataCall.setCacheProvider(new FileSystemCacheProvider());
DataCall.setLogLevel(LogLevel.DEBUG);
StaticMastery list = api.getMastery(Platform.EUW1, 6131, null, 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 testPerkPathId.
@Test
public void testPerkPathId() {
DataCall.setCacheProvider(new FileSystemCacheProvider());
DataCall.setLogLevel(LogLevel.DEBUG);
PerkPath paths = api.getPerkPath(Platform.EUW1, 8000, null, null);
}
use of no.stelar7.api.l4j8.basic.cache.impl.FileSystemCacheProvider in project L4J8 by stelar7.
the class SummonerTest method before.
@Before
public void before() {
DataCall.setCacheProvider(new FileSystemCacheProvider());
DataCall.setLogLevel(LogLevel.DEBUG);
}
use of no.stelar7.api.l4j8.basic.cache.impl.FileSystemCacheProvider in project L4J8 by stelar7.
the class CacheTest method testCacheStuff.
@Test
public void testCacheStuff() throws InterruptedException {
DataCall.setLogLevel(LogLevel.INFO);
DataCall.setCacheProvider(new FileSystemCacheProvider());
new SummonerBuilder().withPlatform(Constants.TEST_PLATFORM[0]).withSummonerId(Constants.TEST_SUMMONER_IDS[0]).get();
new SummonerBuilder().withPlatform(Constants.TEST_PLATFORM[0]).withSummonerId(Constants.TEST_SUMMONER_IDS[0]).get();
Thread.sleep(6000);
new SummonerBuilder().withPlatform(Constants.TEST_PLATFORM[0]).withSummonerId(Constants.TEST_SUMMONER_IDS[0]).get();
new SummonerBuilder().withPlatform(Constants.TEST_PLATFORM[0]).withSummonerId(Constants.TEST_SUMMONER_IDS[0]).get();
}
use of no.stelar7.api.l4j8.basic.cache.impl.FileSystemCacheProvider in project L4J8 by stelar7.
the class FrameToImageTest method testStuff.
@Test
@Ignore
public void testStuff() {
DataCall.setCacheProvider(new FileSystemCacheProvider());
Summoner sum = new SummonerBuilder().withPlatform(Platform.EUW1).withName("stelar7").get();
LazyList<MatchReference> refs = new MatchListBuilder().withPlatform(sum.getPlatform()).withAccountId(sum.getAccountId()).getLazy();
Match full = refs.get(0).getFullMatch();
TowerLocationType.getTowersMap(MapType.SUMMONERS_RIFT).forEach((k, v) -> v.forEach((k2, v2) -> v2.forEach((t, p) -> turretTeam.put(p, t))));
turretTeam.forEach((k, v) -> turrets.add(k));
InhibitorLocationType.getInhibMap(MapType.SUMMONERS_RIFT).forEach((k, v) -> v.forEach((t, p) -> inhibTeam.put(p, t)));
inhibTeam.forEach((k, v) -> inhib.add(k));
generateMinimap(full);
}
Aggregations