@@ -11,8 +11,7 @@ import androidx.test.core.app.ApplicationProvider
1111import androidx.test.ext.junit.runners.AndroidJUnit4
1212import androidx.test.filters.MediumTest
1313import androidx.test.internal.runner.junit4.statement.UiThreadStatement
14- import org.hamcrest.MatcherAssert.assertThat
15- import org.hamcrest.Matchers.`is`
14+ import org.junit.Assert
1615import org.junit.Before
1716import org.junit.Test
1817import org.junit.runner.RunWith
@@ -156,15 +155,17 @@ class StreamItemAdapterTest {
156155 ) {
157156 spinner.setSelection(position)
158157 spinner.adapter.getView(position, null , spinner).run {
159- assertThat(
160- " normal visibility (pos=[$position ])" ,
161- findViewById<View >(R .id.wo_sound_icon).visibility, `is `(normalVisibility)
158+ Assert .assertEquals(
159+ " normal visibility (pos=[$position ]) is not correct" ,
160+ findViewById<View >(R .id.wo_sound_icon).visibility,
161+ normalVisibility,
162162 )
163163 }
164164 spinner.adapter.getDropDownView(position, null , spinner).run {
165- assertThat(
166- " drop down visibility (pos=[$position ])" ,
167- findViewById<View >(R .id.wo_sound_icon).visibility, `is `(dropDownVisibility)
165+ Assert .assertEquals(
166+ " drop down visibility (pos=[$position ]) is not correct" ,
167+ findViewById<View >(R .id.wo_sound_icon).visibility,
168+ dropDownVisibility
168169 )
169170 }
170171 }
0 commit comments