From f19ff38ed86de1cdb916952378e3e6b4fd7448e7 Mon Sep 17 00:00:00 2001 From: Pil0tXia Date: Mon, 27 May 2024 19:39:56 +0800 Subject: [PATCH] Update dependency that are no longer maintained --- .../eventmesh-storage-redis/build.gradle | 2 +- .../eventmesh/storage/redis/AbstractRedisServer.java | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/eventmesh-storage-plugin/eventmesh-storage-redis/build.gradle b/eventmesh-storage-plugin/eventmesh-storage-redis/build.gradle index 5405b63032..06b6827c6c 100644 --- a/eventmesh-storage-plugin/eventmesh-storage-redis/build.gradle +++ b/eventmesh-storage-plugin/eventmesh-storage-redis/build.gradle @@ -29,7 +29,7 @@ dependencies { api 'io.cloudevents:cloudevents-json-jackson' // test dependencies - testImplementation 'ai.grakn:redis-mock:0.1.6' + testImplementation 'com.github.fppt:jedis-mock:1.1.1' testImplementation "org.mockito:mockito-core" compileOnly 'org.projectlombok:lombok' diff --git a/eventmesh-storage-plugin/eventmesh-storage-redis/src/test/java/org/apache/eventmesh/storage/redis/AbstractRedisServer.java b/eventmesh-storage-plugin/eventmesh-storage-redis/src/test/java/org/apache/eventmesh/storage/redis/AbstractRedisServer.java index 7aab9737d4..3719eeb428 100644 --- a/eventmesh-storage-plugin/eventmesh-storage-redis/src/test/java/org/apache/eventmesh/storage/redis/AbstractRedisServer.java +++ b/eventmesh-storage-plugin/eventmesh-storage-redis/src/test/java/org/apache/eventmesh/storage/redis/AbstractRedisServer.java @@ -17,23 +17,25 @@ package org.apache.eventmesh.storage.redis; +import java.io.IOException; + import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; -import ai.grakn.redismock.RedisServer; +import com.github.fppt.jedismock.RedisServer; public abstract class AbstractRedisServer { private static RedisServer redisServer; @BeforeAll - public static void setupRedisServer() throws Exception { + public static void setupRedisServer() throws IOException { redisServer = RedisServer.newRedisServer(6379); redisServer.start(); } @AfterAll - public static void shutdownRedisServer() { + public static void shutdownRedisServer() throws IOException { if (redisServer != null) { redisServer.stop(); }