@@ -24,20 +24,33 @@ import android.widget.TextView
24
24
import androidx.core.content.res.ResourcesCompat
25
25
import androidx.recyclerview.widget.LinearLayoutManager
26
26
import androidx.recyclerview.widget.RecyclerView
27
- import androidx.test.InstrumentationRegistry
28
27
import androidx.test.espresso.Espresso.onView
29
28
import 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
31
34
import androidx.test.espresso.matcher.ViewMatchers.withId
35
+ import androidx.test.ext.junit.runners.AndroidJUnit4
32
36
import androidx.test.filters.FlakyTest
33
37
import androidx.test.filters.MediumTest
38
+ import androidx.test.platform.app.InstrumentationRegistry
34
39
import 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
37
45
import com.google.android.flexbox.FlexboxItemDecoration.HORIZONTAL
38
46
import com.google.android.flexbox.FlexboxItemDecoration.VERTICAL
47
+ import com.google.android.flexbox.FlexboxLayoutManager
48
+ import com.google.android.flexbox.JustifyContent
39
49
import 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
41
54
import org.hamcrest.core.IsNot.not
42
55
import org.junit.Assert.assertThat
43
56
import org.junit.Assert.assertTrue
@@ -2808,7 +2821,7 @@ class FlexboxLayoutManagerTest {
2808
2821
// https://github.com/google/flexbox-layout/issues/208, the width of the inner
2809
2822
// RecyclerViews were set to 0.
2810
2823
val activity = activityRule.activity
2811
- val outerLayoutManager = androidx.recyclerview.widget. LinearLayoutManager (activity)
2824
+ val outerLayoutManager = LinearLayoutManager (activity)
2812
2825
2813
2826
// Give the inner adapter item count enough so that inner RecyclerView with
2814
2827
// FlexboxLayoutManager wraps its items
@@ -2818,7 +2831,7 @@ class FlexboxLayoutManagerTest {
2818
2831
activityRule.runOnUiThread {
2819
2832
activity.setContentView(R .layout.recyclerview)
2820
2833
val recyclerView = activity.findViewById<RecyclerView >(R .id.recyclerview)
2821
- outerLayoutManager.orientation = androidx.recyclerview.widget. LinearLayoutManager .HORIZONTAL
2834
+ outerLayoutManager.orientation = LinearLayoutManager .HORIZONTAL
2822
2835
recyclerView.layoutManager = outerLayoutManager
2823
2836
recyclerView.adapter = adapter
2824
2837
}
0 commit comments