@@ -24,20 +24,33 @@ import android.widget.TextView
2424import androidx.core.content.res.ResourcesCompat
2525import androidx.recyclerview.widget.LinearLayoutManager
2626import androidx.recyclerview.widget.RecyclerView
27- import androidx.test.InstrumentationRegistry
2827import androidx.test.espresso.Espresso.onView
2928import androidx.test.espresso.ViewAction
30- import androidx.test.espresso.action.*
29+ import androidx.test.espresso.action.CoordinatesProvider
30+ import androidx.test.espresso.action.GeneralLocation
31+ import androidx.test.espresso.action.GeneralSwipeAction
32+ import androidx.test.espresso.action.Press
33+ import androidx.test.espresso.action.Swipe
3134import androidx.test.espresso.matcher.ViewMatchers.withId
35+ import androidx.test.ext.junit.runners.AndroidJUnit4
3236import androidx.test.filters.FlakyTest
3337import androidx.test.filters.MediumTest
38+ import androidx.test.platform.app.InstrumentationRegistry
3439import androidx.test.rule.ActivityTestRule
35- import androidx.test.runner.AndroidJUnit4
36- import com.google.android.flexbox.*
40+ import com.google.android.flexbox.AlignItems
41+ import com.google.android.flexbox.AlignSelf
42+ import com.google.android.flexbox.FlexDirection
43+ import com.google.android.flexbox.FlexWrap
44+ import com.google.android.flexbox.FlexboxItemDecoration
3745import com.google.android.flexbox.FlexboxItemDecoration.HORIZONTAL
3846import com.google.android.flexbox.FlexboxItemDecoration.VERTICAL
47+ import com.google.android.flexbox.FlexboxLayoutManager
48+ import com.google.android.flexbox.JustifyContent
3949import com.google.android.flexbox.test.IsEqualAllowingError.Companion.isEqualAllowingError
40- import org.hamcrest.Matchers.*
50+ import org.hamcrest.Matchers.`is`
51+ import org.hamcrest.Matchers.instanceOf
52+ import org.hamcrest.Matchers.lessThan
53+ import org.hamcrest.Matchers.notNullValue
4154import org.hamcrest.core.IsNot.not
4255import org.junit.Assert.assertThat
4356import org.junit.Assert.assertTrue
@@ -2808,7 +2821,7 @@ class FlexboxLayoutManagerTest {
28082821 // https://github.com/google/flexbox-layout/issues/208, the width of the inner
28092822 // RecyclerViews were set to 0.
28102823 val activity = activityRule.activity
2811- val outerLayoutManager = androidx.recyclerview.widget. LinearLayoutManager (activity)
2824+ val outerLayoutManager = LinearLayoutManager (activity)
28122825
28132826 // Give the inner adapter item count enough so that inner RecyclerView with
28142827 // FlexboxLayoutManager wraps its items
@@ -2818,7 +2831,7 @@ class FlexboxLayoutManagerTest {
28182831 activityRule.runOnUiThread {
28192832 activity.setContentView(R .layout.recyclerview)
28202833 val recyclerView = activity.findViewById<RecyclerView >(R .id.recyclerview)
2821- outerLayoutManager.orientation = androidx.recyclerview.widget. LinearLayoutManager .HORIZONTAL
2834+ outerLayoutManager.orientation = LinearLayoutManager .HORIZONTAL
28222835 recyclerView.layoutManager = outerLayoutManager
28232836 recyclerView.adapter = adapter
28242837 }
0 commit comments