From 3bc9ed6cba587876cb4e07f94b64ce17d605a566 Mon Sep 17 00:00:00 2001 From: Christian Sadilek Date: Mon, 26 Jul 2021 14:16:03 -0400 Subject: [PATCH] [fenix] Fix init order in TrackingProtectionExceptionsViewTest --- .../TrackingProtectionExceptionsViewTest.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/src/test/java/org/mozilla/fenix/exceptions/trackingprotection/TrackingProtectionExceptionsViewTest.kt b/app/src/test/java/org/mozilla/fenix/exceptions/trackingprotection/TrackingProtectionExceptionsViewTest.kt index b0d5ef4439..3bfd75c4c7 100644 --- a/app/src/test/java/org/mozilla/fenix/exceptions/trackingprotection/TrackingProtectionExceptionsViewTest.kt +++ b/app/src/test/java/org/mozilla/fenix/exceptions/trackingprotection/TrackingProtectionExceptionsViewTest.kt @@ -24,7 +24,6 @@ import org.junit.Assert.assertEquals import org.junit.Assert.assertFalse import org.junit.Assert.assertTrue import org.junit.Before -import org.junit.Ignore import org.junit.Test import org.junit.runner.RunWith import org.mozilla.fenix.helpers.FenixRobolectricTestRunner @@ -39,6 +38,8 @@ class TrackingProtectionExceptionsViewTest { @Before fun setup() { mockkConstructor(TrackingProtectionExceptionsAdapter::class) + every { anyConstructed().updateData(any()) } just Runs + container = FrameLayout(testContext) interactor = mockk() @@ -46,7 +47,6 @@ class TrackingProtectionExceptionsViewTest { container, interactor ) - every { anyConstructed().updateData(any()) } just Runs } @After @@ -66,7 +66,6 @@ class TrackingProtectionExceptionsViewTest { } @Test - @Ignore("With latest Robolectric/mockk: updateData() was not called") fun `binds empty list to adapter`() { exceptionsView.update(emptyList()) @@ -77,7 +76,6 @@ class TrackingProtectionExceptionsViewTest { } @Test - @Ignore("With latest Robolectric/mockk updateData() was not called") fun `binds list with items to adapter`() { val items = listOf(mockk(), mockk()) exceptionsView.update(items)