@@ -34,11 +34,12 @@ import io.mockk.unmockkConstructor
3434import io.mockk.unmockkObject
3535import io.mockk.verify
3636import org.junit.After
37- import org.junit.Assert.assertFalse
38- import org.junit.Assert.assertTrue
3937import org.junit.Before
4038import org.junit.Rule
4139import org.junit.Test
40+ import org.junit.jupiter.api.Assertions.assertEquals
41+ import org.junit.jupiter.api.Assertions.assertFalse
42+ import org.junit.jupiter.api.Assertions.assertTrue
4243import org.junit.runner.RunWith
4344import org.robolectric.RobolectricTestRunner
4445import org.robolectric.Shadows.shadowOf
@@ -152,6 +153,8 @@ class LaunchActivityTest {
152153 fun `Given showWhenLocked is true when launched then activity is shown over the lock screen` () {
153154 val intent = LaunchActivity .newInstance(ApplicationProvider .getApplicationContext(), showWhenLocked = true )
154155
156+ assertEquals(Intent .ACTION_MAIN , intent.action)
157+
155158 ActivityScenario .launch<LaunchActivity >(intent).use { scenario ->
156159 scenario.onActivity { activity ->
157160 assertTrue(shadowOf(activity).showWhenLocked)
@@ -163,6 +166,8 @@ class LaunchActivityTest {
163166 fun `Given showWhenLocked is false when launched then activity is not shown over the lock screen` () {
164167 val intent = LaunchActivity .newInstance(ApplicationProvider .getApplicationContext(), showWhenLocked = false )
165168
169+ assertEquals(Intent .ACTION_MAIN , intent.action)
170+
166171 ActivityScenario .launch<LaunchActivity >(intent).use { scenario ->
167172 scenario.onActivity { activity ->
168173 assertFalse(shadowOf(activity).showWhenLocked)
0 commit comments