From 718eaa3eda7fc56acaff29f1d4af19ef44412289 Mon Sep 17 00:00:00 2001 From: mcarare Date: Tue, 22 Mar 2022 13:33:30 +0200 Subject: [PATCH] [components] For https://github.com/mozilla-mobile/android-components/issues/9684: Run time picker test on sdk 30. This also removes unnecessary deprecation suppression. --- .../components/feature/prompts/dialog/TimePickerDialogFragmentTest.kt | 4 ---- 1 file changed, 4 deletions(-) diff --git a/mobile/android/android-components/components/feature/prompts/src/test/java/mozilla/components/feature/prompts/dialog/TimePickerDialogFragmentTest.kt b/mobile/android/android-components/components/feature/prompts/src/test/java/mozilla/components/feature/prompts/dialog/TimePickerDialogFragmentTest.kt index 32a6f9c9ad2b..ea11ebee1022 100644 --- a/mobile/android/android-components/components/feature/prompts/src/test/java/mozilla/components/feature/prompts/dialog/TimePickerDialogFragmentTest.kt +++ b/mobile/android/android-components/components/feature/prompts/src/test/java/mozilla/components/feature/prompts/dialog/TimePickerDialogFragmentTest.kt @@ -9,7 +9,6 @@ import android.app.DatePickerDialog import android.app.TimePickerDialog import android.content.DialogInterface.BUTTON_NEUTRAL import android.content.DialogInterface.BUTTON_POSITIVE -import android.os.Build.VERSION_CODES.LOLLIPOP import android.os.Looper.getMainLooper import android.widget.DatePicker import android.widget.NumberPicker @@ -39,7 +38,6 @@ import org.mockito.Mockito.spy import org.mockito.Mockito.verify import org.mockito.MockitoAnnotations.openMocks import org.robolectric.Shadows.shadowOf -import org.robolectric.annotation.Config import java.util.Calendar import java.util.Date @@ -211,8 +209,6 @@ class TimePickerDialogFragmentTest { } @Test - @Config(sdk = [LOLLIPOP]) - @Suppress("DEPRECATION") fun `building a time picker`() { val initialDate = "2018-06-12T19:30".toDate("yyyy-MM-dd'T'HH:mm") val minDate = "2018-06-07T00:00".toDate("yyyy-MM-dd'T'HH:mm") -- 2.11.4.GIT