diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 1285320..fc0d167 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -16,7 +16,7 @@ jobs:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest ]
- java: [ '11', '17' ]
+ java: [ '11', '17,', '21' ]
steps:
- uses: actions/checkout@v2
@@ -46,7 +46,7 @@ jobs:
fail-fast: false
matrix:
os: [ windows-latest ]
- java: [ '11', '17' ]
+ java: [ '11', '17', '21' ]
steps:
- uses: actions/checkout@v2
diff --git a/client/pom.xml b/client/pom.xml
index f942dd5..75df747 100644
--- a/client/pom.xml
+++ b/client/pom.xml
@@ -256,7 +256,7 @@
logcaptor
- com.nhaarman.mockitokotlin2
+ org.mockito.kotlin
mockito-kotlin
diff --git a/client/src/test/java/nl/altindag/client/service/FuelServiceShould.kt b/client/src/test/java/nl/altindag/client/service/FuelServiceShould.kt
index 647275e..20aec03 100644
--- a/client/src/test/java/nl/altindag/client/service/FuelServiceShould.kt
+++ b/client/src/test/java/nl/altindag/client/service/FuelServiceShould.kt
@@ -17,12 +17,12 @@ package nl.altindag.client.service
import com.github.kittinunf.fuel.core.*
import com.github.kittinunf.fuel.core.requests.DefaultBody
-import com.nhaarman.mockitokotlin2.*
import nl.altindag.client.TestConstants.HEADER_KEY_CLIENT_TYPE
import nl.altindag.client.TestConstants.HTTP_URL
import nl.altindag.client.util.SSLFactoryTestHelper
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
+import org.mockito.kotlin.*
import java.net.URL
diff --git a/client/src/test/java/nl/altindag/client/service/Http4kApache4AsyncHttpClientServiceShould.kt b/client/src/test/java/nl/altindag/client/service/Http4kApache4AsyncHttpClientServiceShould.kt
index 3b983e4..bd25a6f 100644
--- a/client/src/test/java/nl/altindag/client/service/Http4kApache4AsyncHttpClientServiceShould.kt
+++ b/client/src/test/java/nl/altindag/client/service/Http4kApache4AsyncHttpClientServiceShould.kt
@@ -15,8 +15,6 @@
*/
package nl.altindag.client.service
-import com.nhaarman.mockitokotlin2.times
-import com.nhaarman.mockitokotlin2.verify
import nl.altindag.client.ClientType.HTTP4K_APACHE4_ASYNC_HTTP_CLIENT
import nl.altindag.client.TestConstants
import nl.altindag.client.util.MockServerTestHelper
@@ -25,6 +23,8 @@ import org.assertj.core.api.Assertions.assertThat
import org.assertj.core.api.Assertions.assertThatThrownBy
import org.awaitility.core.ConditionTimeoutException
import org.junit.jupiter.api.Test
+import org.mockito.kotlin.times
+import org.mockito.kotlin.verify
import java.util.concurrent.TimeUnit
class Http4kApache4AsyncHttpClientServiceShould {
diff --git a/client/src/test/java/nl/altindag/client/service/Http4kApache4HttpClientServiceShould.kt b/client/src/test/java/nl/altindag/client/service/Http4kApache4HttpClientServiceShould.kt
index b76926a..df66226 100644
--- a/client/src/test/java/nl/altindag/client/service/Http4kApache4HttpClientServiceShould.kt
+++ b/client/src/test/java/nl/altindag/client/service/Http4kApache4HttpClientServiceShould.kt
@@ -15,14 +15,14 @@
*/
package nl.altindag.client.service
-import com.nhaarman.mockitokotlin2.times
-import com.nhaarman.mockitokotlin2.verify
import nl.altindag.client.ClientType.HTTP4K_APACHE4_HTTP_CLIENT
import nl.altindag.client.TestConstants
import nl.altindag.client.util.MockServerTestHelper
import nl.altindag.client.util.SSLFactoryTestHelper
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
+import org.mockito.kotlin.times
+import org.mockito.kotlin.verify
class Http4kApache4HttpClientServiceShould {
diff --git a/client/src/test/java/nl/altindag/client/service/Http4kApache5AsyncHttpClientServiceShould.kt b/client/src/test/java/nl/altindag/client/service/Http4kApache5AsyncHttpClientServiceShould.kt
index 51ec1ca..c4f45d6 100644
--- a/client/src/test/java/nl/altindag/client/service/Http4kApache5AsyncHttpClientServiceShould.kt
+++ b/client/src/test/java/nl/altindag/client/service/Http4kApache5AsyncHttpClientServiceShould.kt
@@ -15,14 +15,14 @@
*/
package nl.altindag.client.service
-import com.nhaarman.mockitokotlin2.times
-import com.nhaarman.mockitokotlin2.verify
import nl.altindag.client.ClientType.HTTP4K_APACHE5_ASYNC_HTTP_CLIENT
import nl.altindag.client.TestConstants
import nl.altindag.client.util.MockServerTestHelper
import nl.altindag.client.util.SSLFactoryTestHelper
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
+import org.mockito.kotlin.times
+import org.mockito.kotlin.verify
class Http4kApache5AsyncHttpClientServiceShould {
diff --git a/client/src/test/java/nl/altindag/client/service/Http4kApache5HttpClientServiceShould.kt b/client/src/test/java/nl/altindag/client/service/Http4kApache5HttpClientServiceShould.kt
index 7437134..657f5a2 100644
--- a/client/src/test/java/nl/altindag/client/service/Http4kApache5HttpClientServiceShould.kt
+++ b/client/src/test/java/nl/altindag/client/service/Http4kApache5HttpClientServiceShould.kt
@@ -15,14 +15,14 @@
*/
package nl.altindag.client.service
-import com.nhaarman.mockitokotlin2.times
-import com.nhaarman.mockitokotlin2.verify
import nl.altindag.client.ClientType.HTTP4K_APACHE5_HTTP_CLIENT
import nl.altindag.client.TestConstants
import nl.altindag.client.util.MockServerTestHelper
import nl.altindag.client.util.SSLFactoryTestHelper
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
+import org.mockito.kotlin.times
+import org.mockito.kotlin.verify
class Http4kApache5HttpClientServiceShould {
diff --git a/client/src/test/java/nl/altindag/client/service/Http4kJavaHttpClientServiceShould.kt b/client/src/test/java/nl/altindag/client/service/Http4kJavaHttpClientServiceShould.kt
index a758b04..140523b 100644
--- a/client/src/test/java/nl/altindag/client/service/Http4kJavaHttpClientServiceShould.kt
+++ b/client/src/test/java/nl/altindag/client/service/Http4kJavaHttpClientServiceShould.kt
@@ -15,14 +15,14 @@
*/
package nl.altindag.client.service
-import com.nhaarman.mockitokotlin2.times
-import com.nhaarman.mockitokotlin2.verify
import nl.altindag.client.ClientType.HTTP4K_JAVA_HTTP_CLIENT
import nl.altindag.client.TestConstants
import nl.altindag.client.util.MockServerTestHelper
import nl.altindag.client.util.SSLFactoryTestHelper
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
+import org.mockito.kotlin.times
+import org.mockito.kotlin.verify
class Http4kJavaHttpClientServiceShould {
diff --git a/client/src/test/java/nl/altindag/client/service/Http4kJettyHttpClientServiceShould.kt b/client/src/test/java/nl/altindag/client/service/Http4kJettyHttpClientServiceShould.kt
index ca6b4d0..f11cf4f 100644
--- a/client/src/test/java/nl/altindag/client/service/Http4kJettyHttpClientServiceShould.kt
+++ b/client/src/test/java/nl/altindag/client/service/Http4kJettyHttpClientServiceShould.kt
@@ -15,14 +15,14 @@
*/
package nl.altindag.client.service
-import com.nhaarman.mockitokotlin2.times
-import com.nhaarman.mockitokotlin2.verify
import nl.altindag.client.ClientType.HTTP4K_JETTY_HTTP_CLIENT
import nl.altindag.client.TestConstants
import nl.altindag.client.util.MockServerTestHelper
import nl.altindag.client.util.SSLFactoryTestHelper
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
+import org.mockito.kotlin.times
+import org.mockito.kotlin.verify
class Http4kJettyHttpClientServiceShould {
diff --git a/client/src/test/java/nl/altindag/client/service/Http4kOkHttpClientServiceShould.kt b/client/src/test/java/nl/altindag/client/service/Http4kOkHttpClientServiceShould.kt
index 67d51e1..dd76ce7 100644
--- a/client/src/test/java/nl/altindag/client/service/Http4kOkHttpClientServiceShould.kt
+++ b/client/src/test/java/nl/altindag/client/service/Http4kOkHttpClientServiceShould.kt
@@ -15,14 +15,14 @@
*/
package nl.altindag.client.service
-import com.nhaarman.mockitokotlin2.times
-import com.nhaarman.mockitokotlin2.verify
import nl.altindag.client.ClientType.HTTP4K_OK_HTTP_CLIENT
import nl.altindag.client.TestConstants
import nl.altindag.client.util.MockServerTestHelper
import nl.altindag.client.util.SSLFactoryTestHelper
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
+import org.mockito.kotlin.times
+import org.mockito.kotlin.verify
class Http4kOkHttpClientServiceShould {
diff --git a/client/src/test/java/nl/altindag/client/service/KohttpServiceShould.kt b/client/src/test/java/nl/altindag/client/service/KohttpServiceShould.kt
index 1bf827f..b9f5162 100644
--- a/client/src/test/java/nl/altindag/client/service/KohttpServiceShould.kt
+++ b/client/src/test/java/nl/altindag/client/service/KohttpServiceShould.kt
@@ -15,7 +15,6 @@
*/
package nl.altindag.client.service
-import com.nhaarman.mockitokotlin2.*
import nl.altindag.client.TestConstants.HEADER_KEY_CLIENT_TYPE
import nl.altindag.client.TestConstants.HTTP_URL
import nl.altindag.client.util.SSLFactoryTestHelper
@@ -25,6 +24,7 @@ import okhttp3.Response
import okhttp3.ResponseBody
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
+import org.mockito.kotlin.*
class KohttpServiceShould {
diff --git a/client/src/test/java/nl/altindag/client/service/KtorAndroidHttpClientServiceShould.kt b/client/src/test/java/nl/altindag/client/service/KtorAndroidHttpClientServiceShould.kt
index 0c6fe2c..1acc270 100644
--- a/client/src/test/java/nl/altindag/client/service/KtorAndroidHttpClientServiceShould.kt
+++ b/client/src/test/java/nl/altindag/client/service/KtorAndroidHttpClientServiceShould.kt
@@ -15,8 +15,6 @@
*/
package nl.altindag.client.service
-import com.nhaarman.mockitokotlin2.times
-import com.nhaarman.mockitokotlin2.verify
import nl.altindag.client.ClientType.KTOR_ANDROID_HTTP_CLIENT
import nl.altindag.client.TestConstants.HTTPS_URL
import nl.altindag.client.TestConstants.HTTP_URL
@@ -25,6 +23,8 @@ import nl.altindag.client.util.SSLFactoryTestHelper
import org.assertj.core.api.Assertions.assertThat
import org.assertj.core.api.Assertions.assertThatThrownBy
import org.junit.jupiter.api.Test
+import org.mockito.kotlin.times
+import org.mockito.kotlin.verify
class KtorAndroidHttpClientServiceShould {
diff --git a/client/src/test/java/nl/altindag/client/service/KtorApacheHttpClientServiceShould.kt b/client/src/test/java/nl/altindag/client/service/KtorApacheHttpClientServiceShould.kt
index fb0512d..9466773 100644
--- a/client/src/test/java/nl/altindag/client/service/KtorApacheHttpClientServiceShould.kt
+++ b/client/src/test/java/nl/altindag/client/service/KtorApacheHttpClientServiceShould.kt
@@ -15,15 +15,14 @@
*/
package nl.altindag.client.service
-import com.nhaarman.mockitokotlin2.times
-import com.nhaarman.mockitokotlin2.verify
import nl.altindag.client.ClientType.KTOR_APACHE_HTTP_CLIENT
import nl.altindag.client.TestConstants.HTTP_URL
import nl.altindag.client.util.MockServerTestHelper
import nl.altindag.client.util.SSLFactoryTestHelper
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
-
+import org.mockito.kotlin.times
+import org.mockito.kotlin.verify
class KtorApacheHttpClientServiceShould {
diff --git a/client/src/test/java/nl/altindag/client/service/KtorJavaHttpClientServiceShould.kt b/client/src/test/java/nl/altindag/client/service/KtorJavaHttpClientServiceShould.kt
index e7339dc..1857f4e 100644
--- a/client/src/test/java/nl/altindag/client/service/KtorJavaHttpClientServiceShould.kt
+++ b/client/src/test/java/nl/altindag/client/service/KtorJavaHttpClientServiceShould.kt
@@ -15,8 +15,6 @@
*/
package nl.altindag.client.service
-import com.nhaarman.mockitokotlin2.times
-import com.nhaarman.mockitokotlin2.verify
import nl.altindag.client.ClientType.KTOR_JAVA_HTTP_CLIENT
import nl.altindag.client.TestConstants.HTTP_URL
import nl.altindag.client.TestConstants.HTTPS_URL
@@ -25,7 +23,8 @@ import nl.altindag.client.util.SSLFactoryTestHelper
import org.assertj.core.api.Assertions.assertThat
import org.assertj.core.api.Assertions.assertThatThrownBy
import org.junit.jupiter.api.Test
-
+import org.mockito.kotlin.times
+import org.mockito.kotlin.verify
class KtorJavaHttpClientServiceShould {
diff --git a/client/src/test/java/nl/altindag/client/service/KtorOkHttpClientServiceShould.kt b/client/src/test/java/nl/altindag/client/service/KtorOkHttpClientServiceShould.kt
index 9a55b3f..85cadc0 100644
--- a/client/src/test/java/nl/altindag/client/service/KtorOkHttpClientServiceShould.kt
+++ b/client/src/test/java/nl/altindag/client/service/KtorOkHttpClientServiceShould.kt
@@ -15,14 +15,14 @@
*/
package nl.altindag.client.service
-import com.nhaarman.mockitokotlin2.times
-import com.nhaarman.mockitokotlin2.verify
import nl.altindag.client.ClientType.KTOR_OK_HTTP
import nl.altindag.client.TestConstants.HTTP_URL
import nl.altindag.client.util.MockServerTestHelper
import nl.altindag.client.util.SSLFactoryTestHelper
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
+import org.mockito.kotlin.times
+import org.mockito.kotlin.verify
class KtorOkHttpClientServiceShould {
diff --git a/pom.xml b/pom.xml
index daec6a3..dc3d757 100644
--- a/pom.xml
+++ b/pom.xml
@@ -18,8 +18,8 @@
11
2.13
- 2.13.9
- 1.6.10
+ 2.13.13
+ 1.9.22
1.6.0-native-mt
8.1.1
2.7.18
@@ -69,18 +69,18 @@
2.13.1
0.8.7
5.8.2
- 4.2.0
+ 4.8.1
3.22.0
2.7.8
- 1.12.7
- 2.2.0
+ 1.14.12
+ 5.2.1
3.2.10
2.0.2
- 1.17.0
+ 1.17.30
5.11.2
3.8.1
3.2.4
- 4.7.2
+ 4.8.1
4.2.rc3
UTF-8
2018
@@ -498,6 +498,12 @@
${version.mockito}
test
+
+ org.mockito
+ mockito-core
+ ${version.mockito}
+ test
+
org.assertj
assertj-core
@@ -536,7 +542,7 @@
test
- com.nhaarman.mockitokotlin2
+ org.mockito.kotlin
mockito-kotlin
${version.mockito-kotlin}
test
@@ -643,7 +649,7 @@ limitations under the License.
kotlin-maven-plugin
${version.kotlin}
- 1.8
+ 11