Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4700dd26 authored by Colin Cross's avatar Colin Cross
Browse files

Skip test broken by @NonNull annotation fix

b/294110802 fixed the @NonNull annotation so that it was visible to
kotlin when applied to methods outside the current build module.  This
caused kotlin to insert more null checks, which broke a test that was
mocking a method annoated with @NonNull and forcing it to return null.
Add @Ignore to the test for now.

Bug: 294110802
Bug: 297923588
Test: atest SettingsSpaUnitTests
Change-Id: I86a677c5ac01bcfaeebe8c339791cca5b2b97fc7
parent b529aadf
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -26,6 +26,7 @@ import androidx.test.core.app.ApplicationProvider
import androidx.test.ext.junit.runners.AndroidJUnit4
import com.google.common.truth.Truth.assertThat
import org.junit.Before
import org.junit.Ignore
import org.junit.Rule
import org.junit.Test
import org.junit.runner.RunWith
@@ -86,6 +87,7 @@ class DataUsageLibTest {
    }

    @Test
    @Ignore("b/297923588")
    fun getMobileTemplate_mergedImsisFromGroupNull_returnRequestedSub() {
        whenever(subscriptionManager.availableSubscriptionInfoList)
            .thenReturn(listOf(SUBSCRIBER_INFO))