Merge "Fix broken NfcAndPaymentFragment test case - searchIndexProvider_shouldIndexAllItems" into rvc-dev am: 44121a7a3d
Change-Id: I1a26e35e643e1307b37f543fd80f238e94654b79
This commit is contained in:
@@ -26,7 +26,6 @@ import android.nfc.NfcAdapter;
|
||||
import android.provider.SearchIndexableResource;
|
||||
|
||||
import org.junit.Before;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.mockito.Mock;
|
||||
@@ -63,8 +62,7 @@ public class NfcAndPaymentFragmentTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
@Ignore
|
||||
public void searchIndexProvider_shouldIndexAllItems() {
|
||||
public void searchIndexProvider_shouldIndexValidItems() {
|
||||
when(mContext.getApplicationContext()).thenReturn(mContext);
|
||||
when(NfcAdapter.getDefaultAdapter(mContext)).thenReturn(mNfcAdapter);
|
||||
when(mNfcAdapter.isSecureNfcSupported()).thenReturn(true);
|
||||
@@ -73,6 +71,6 @@ public class NfcAndPaymentFragmentTest {
|
||||
.getNonIndexableKeys(mContext);
|
||||
|
||||
assertThat(niks).isNotNull();
|
||||
assertThat(niks).isEmpty();
|
||||
assertThat(niks).containsExactly("nfc_detection_point");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user