From 91aa9368aa7cd88571d718166057500b61fddbf7 Mon Sep 17 00:00:00 2001 From: Alexande B Date: Tue, 14 Nov 2023 23:57:59 +0100 Subject: [PATCH] chore: fix checkstyle issues --- test/src/androidTest/java/com/hcaptcha/sdk/AssertUtil.java | 1 - .../java/com/hcaptcha/sdk/HCaptchaDialogFragmentTest.java | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/test/src/androidTest/java/com/hcaptcha/sdk/AssertUtil.java b/test/src/androidTest/java/com/hcaptcha/sdk/AssertUtil.java index 0877d4f0..c937dfdf 100644 --- a/test/src/androidTest/java/com/hcaptcha/sdk/AssertUtil.java +++ b/test/src/androidTest/java/com/hcaptcha/sdk/AssertUtil.java @@ -18,7 +18,6 @@ import android.view.View; import android.webkit.ValueCallback; import android.webkit.WebView; - import androidx.test.espresso.PerformException; import androidx.test.espresso.UiController; import androidx.test.espresso.ViewAction; diff --git a/test/src/androidTest/java/com/hcaptcha/sdk/HCaptchaDialogFragmentTest.java b/test/src/androidTest/java/com/hcaptcha/sdk/HCaptchaDialogFragmentTest.java index 8812a910..c4ef51c4 100644 --- a/test/src/androidTest/java/com/hcaptcha/sdk/HCaptchaDialogFragmentTest.java +++ b/test/src/androidTest/java/com/hcaptcha/sdk/HCaptchaDialogFragmentTest.java @@ -46,7 +46,6 @@ import org.junit.Assume; import org.junit.Test; import org.junit.runner.RunWith; -import org.mockito.ArgumentMatchers; import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; @@ -224,7 +223,7 @@ public void webViewNotInstalled() throws InterruptedException { Assume.assumeTrue("Skip test for release, because impossible to mock LayoutInflater", BuildConfig.DEBUG); final LayoutInflater inflater = mock(LayoutInflater.class); - when(inflater.inflate(ArgumentMatchers.eq(R.layout.hcaptcha_fragment), any(), eq(false))) + when(inflater.inflate(eq(R.layout.hcaptcha_fragment), any(), eq(false))) .thenThrow(InflateException.class); final CountDownLatch latch = new CountDownLatch(1);