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

Commit 44121a7a authored by Robert Luo's avatar Robert Luo Committed by Android (Google) Code Review
Browse files

Merge "Fix broken NfcAndPaymentFragment test case -...

Merge "Fix broken NfcAndPaymentFragment test case - searchIndexProvider_shouldIndexAllItems" into rvc-dev
parents 0a98937b b26b9561
Loading
Loading
Loading
Loading
+2 −4
Original line number Original line Diff line number Diff line
@@ -26,7 +26,6 @@ import android.nfc.NfcAdapter;
import android.provider.SearchIndexableResource;
import android.provider.SearchIndexableResource;


import org.junit.Before;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.Mock;
@@ -63,8 +62,7 @@ public class NfcAndPaymentFragmentTest {
    }
    }


    @Test
    @Test
    @Ignore
    public void searchIndexProvider_shouldIndexValidItems() {
    public void searchIndexProvider_shouldIndexAllItems() {
        when(mContext.getApplicationContext()).thenReturn(mContext);
        when(mContext.getApplicationContext()).thenReturn(mContext);
        when(NfcAdapter.getDefaultAdapter(mContext)).thenReturn(mNfcAdapter);
        when(NfcAdapter.getDefaultAdapter(mContext)).thenReturn(mNfcAdapter);
        when(mNfcAdapter.isSecureNfcSupported()).thenReturn(true);
        when(mNfcAdapter.isSecureNfcSupported()).thenReturn(true);
@@ -73,6 +71,6 @@ public class NfcAndPaymentFragmentTest {
                .getNonIndexableKeys(mContext);
                .getNonIndexableKeys(mContext);


        assertThat(niks).isNotNull();
        assertThat(niks).isNotNull();
        assertThat(niks).isEmpty();
        assertThat(niks).containsExactly("nfc_detection_point");
    }
    }
}
}