This repository was archived by the owner on Nov 14, 2018. It is now read-only.
File tree Expand file tree Collapse file tree
src/androidTest/java/androidx/core/widget Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,7 +26,10 @@ import android.widget.ListView
2626import android.widget.Spinner
2727import androidx.core.view.get
2828import androidx.testutils.assertThrows
29- import org.junit.Assert.*
29+ import org.junit.Assert.assertEquals
30+ import org.junit.Assert.assertFalse
31+ import org.junit.Assert.assertNull
32+ import org.junit.Assert.assertTrue
3033import org.junit.Before
3134import org.junit.Test
3235import java.lang.ClassCastException
@@ -75,7 +78,6 @@ class AdapterViewTest {
7578 adapterView.performItemClick(null , 1 , INVALID_ROW_ID )
7679 }
7780
78-
7981 @Test(expected = RuntimeException ::class )
8082 fun onItemClickRuntimeExceptionWithSpinner () {
8183 spinner.onItemClick { _: Any? -> }
@@ -188,6 +190,8 @@ class AdapterViewTest {
188190 private const val LAYOUT_WIDTH = 200
189191 private const val LAYOUT_HEIGHT = 200
190192
193+ class WrongClass
194+
191195 /* *
192196 * Reflection used to shortcut trigger selection via AdapterView#fireOnSelected()
193197 *
@@ -209,8 +213,5 @@ class AdapterViewTest {
209213 throw e.targetException
210214 }
211215 }
212-
213- class WrongClass
214-
215216 }
216217}
You can’t perform that action at this time.
0 commit comments