You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ratis.apache.org by sz...@apache.org on 2020/12/30 09:48:41 UTC

[incubator-ratis] branch master updated: RATIS-1275. Add slf4j-log4j12 runtime dependency to ratis-example. (#386)

This is an automated email from the ASF dual-hosted git repository.

szetszwo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ratis.git


The following commit(s) were added to refs/heads/master by this push:
     new f0d0e73  RATIS-1275. Add slf4j-log4j12 runtime dependency to ratis-example. (#386)
f0d0e73 is described below

commit f0d0e734b32d6dd69b0058934f7492385a8bb551
Author: Tsz-Wo Nicholas Sze <sz...@apache.org>
AuthorDate: Wed Dec 30 17:48:36 2020 +0800

    RATIS-1275. Add slf4j-log4j12 runtime dependency to ratis-example. (#386)
---
 ratis-examples/pom.xml                                               | 5 +++++
 .../test/java/org/apache/ratis/server/impl/RetryCacheTestUtil.java   | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/ratis-examples/pom.xml b/ratis-examples/pom.xml
index 7334f95..75230dd 100644
--- a/ratis-examples/pom.xml
+++ b/ratis-examples/pom.xml
@@ -123,6 +123,11 @@
       <groupId>org.slf4j</groupId>
       <artifactId>slf4j-api</artifactId>
     </dependency>
+    <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>slf4j-log4j12</artifactId>
+      <scope>runtime</scope>
+    </dependency>
 
     <dependency>
       <groupId>junit</groupId>
diff --git a/ratis-server/src/test/java/org/apache/ratis/server/impl/RetryCacheTestUtil.java b/ratis-server/src/test/java/org/apache/ratis/server/impl/RetryCacheTestUtil.java
index a6688ce..9ab814c 100644
--- a/ratis-server/src/test/java/org/apache/ratis/server/impl/RetryCacheTestUtil.java
+++ b/ratis-server/src/test/java/org/apache/ratis/server/impl/RetryCacheTestUtil.java
@@ -31,7 +31,7 @@ import org.junit.Assert;
 
 import java.util.concurrent.TimeUnit;
 
-import static org.mockito.Matchers.any;
+import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.Mockito.doCallRealMethod;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;