Repository: housepower/ClickHouse-Native-JDBC (java)

Issue:
Migrate to Mockito 3.x
https://github.com/mockito/mockito/wiki/What%27s-new-in-Mockito-2

Pull request description:
Migrate to mockito 3
- migrate to mockito 3
- bump mockito 3.6.0

close #175

Patch:
diff --git a/clickhouse-native-jdbc/pom.xml b/clickhouse-native-jdbc/pom.xml
index 5fe83fb..6b56a2e 100644
--- a/clickhouse-native-jdbc/pom.xml
+++ b/clickhouse-native-jdbc/pom.xml
@@ -52,7 +52,7 @@
         </dependency>
         <dependency>
             <groupId>org.mockito</groupId>
-            <artifactId>mockito-all</artifactId>
+            <artifactId>mockito-core</artifactId>
             <scope>test</scope>
         </dependency>
         <dependency>
diff --git a/pom.xml b/pom.xml
index 1d1df08..75f4b81 100644
--- a/pom.xml
+++ b/pom.xml
@@ -100,7 +100,7 @@
         <lz4.java.version>1.7.1</lz4.java.version>
         <jmh.version>1.26</jmh.version>
         <yandex-clickhouse-jdbc.version>0.2.4</yandex-clickhouse-jdbc.version>
-        <mockito.version>1.10.19</mockito.version>
+        <mockito.version>3.6.0</mockito.version>
         <guava.version>16.0.1</guava.version>
         <slf4j.version>1.7.28</slf4j.version>
         <scala.version>2.11.12</scala.version>
@@ -215,7 +215,7 @@
             </dependency>
             <dependency>
                 <groupId>org.mockito</groupId>
-                <artifactId>mockito-all</artifactId>
+                <artifactId>mockito-core</artifactId>
                 <version>${mockito.version}</version>
             </dependency>
             <dependency>


Test patch:
diff --git a/clickhouse-native-jdbc/src/test/java/com/github/housepower/jdbc/buffer/SocketBuffedReaderTest.java b/clickhouse-native-jdbc/src/test/java/com/github/housepower/jdbc/buffer/SocketBuffedReaderTest.java
index d5d9fa2..a9bef06 100644
--- a/clickhouse-native-jdbc/src/test/java/com/github/housepower/jdbc/buffer/SocketBuffedReaderTest.java
+++ b/clickhouse-native-jdbc/src/test/java/com/github/housepower/jdbc/buffer/SocketBuffedReaderTest.java
@@ -52,8 +52,8 @@ public class SocketBuffedReaderTest {
 
         Mockito.when(in.read(Mockito.any(byte[].class), Mockito.anyInt(), Mockito.anyInt()))
             .thenAnswer((Answer<Integer>) invocation -> {
-                int offset = invocation.getArgumentAt(1, int.class);
-                byte[] bytes = invocation.getArgumentAt(0, byte[].class);
+                int offset = invocation.getArgument(1, Integer.class);
+                byte[] bytes = invocation.getArgument(0, byte[].class);
 
                 byte[] fragment = fragments[position.getAndIncrement()];
                 if (bytes.length < fragment.length) {