shadows/framework/src/main/java/org/robolectric/shadows/ShadowNfcAdapter.java
@Implementation
  protected void setNdefPushMessage(
      NdefMessage message, Activity activity, Activity... activities) {
    if (activity == null) {
      throw new NullPointerException("activity cannot be null");
    }
    for (Activity a : activities) {
      if (a == null) {
        throw new NullPointerException("activities cannot contain null");
      }
    }
    this.ndefPushMessage = message;
    this.ndefPushMessageSet = true;
  }
@Implementation
  protected void setNdefPushMessage(
      NdefMessage message, Activity activity, Activity... activities) {
    if (activity == null) {
      throw new NullPointerException("activity cannot be null");
    }
    for (Activity a : activities) {
      if (a == null) {
        throw new NullPointerException("activities cannot contain null");
      }
    }
    this.ndefPushMessage = message;
    this.ndefPushMessageSet = true;
  }
@ Implementation protected void setNdefPushMessage ( NdefMessage message , Activity activity , Activity ... activities ) { if ( activity == null ) { throw new NullPointerException ( "activity cannot be null" ) ; } for ( Activity a : activities ) { if ( a == null ) { throw new NullPointerException ( "activities cannot contain null" ) ; } } this . ndefPushMessage = message ; this . ndefPushMessageSet = true ; }
Mocks setting NDEF push message so that it could be verified in the test. Use {@link
#getNdefPushMessage()} to verify that message was set.
Mocks setting NDEF push message so that it could be verified in the test . Use {