This commit is contained in:
redkale
2023-12-19 00:07:40 +08:00
parent 1a49db8a1b
commit d3a6f46c6c
13 changed files with 34 additions and 30 deletions

View File

@@ -7,7 +7,7 @@ import java.time.Duration;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.atomic.AtomicInteger;
import org.junit.jupiter.api.*;
import org.redkale.cache.DefaultCacheManager;
import org.redkale.cache.spi.CacheManagerService;
import org.redkale.convert.json.JsonConvert;
import org.redkale.source.CacheMemorySource;
import org.redkale.util.Utility;
@@ -18,7 +18,7 @@ import org.redkale.util.Utility;
*/
public class CacheManagerTest {
private static DefaultCacheManager manager;
private static CacheManagerService manager;
public static void main(String[] args) throws Throwable {
CacheManagerTest test = new CacheManagerTest();
@@ -31,7 +31,7 @@ public class CacheManagerTest {
public static void init() throws Exception {
CacheMemorySource remoteSource = new CacheMemorySource("cache-remote");
remoteSource.init(null);
manager = DefaultCacheManager.create(remoteSource);
manager = CacheManagerService.create(remoteSource);
manager.init(null);
}

View File

@@ -4,7 +4,7 @@
package org.redkale.test.schedule;
import org.junit.jupiter.api.Test;
import org.redkale.schedule.DefaultScheduleManager;
import org.redkale.schedule.spi.ScheduleManagerService;
import org.redkale.util.Utility;
/**
@@ -20,7 +20,7 @@ public class SchedulingTest {
@Test
public void run() throws Exception {
DefaultScheduleManager manager = DefaultScheduleManager.create(null);
ScheduleManagerService manager = ScheduleManagerService.create(null);
manager.init(null);
ScheduleService service = new ScheduleService();
manager.schedule(service);