Skip to content

Commit

Permalink
Update dependency that are no longer maintained
Browse files Browse the repository at this point in the history
  • Loading branch information
Pil0tXia committed May 27, 2024
1 parent a301b31 commit f19ff38
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit f19ff38

Please sign in to comment.