Home | History | Annotate | Download | only in shadows
      1 package com.xtremelabs.robolectric.shadows;
      2 
      3 import android.nfc.NdefRecord;
      4 import com.xtremelabs.robolectric.WithTestDefaultsRunner;
      5 import org.junit.Test;
      6 import org.junit.runner.RunWith;
      7 
      8 import static org.junit.Assert.assertSame;
      9 
     10 @RunWith(WithTestDefaultsRunner.class)
     11 public class NdefRecordTest {
     12 
     13     @Test
     14     public void getPayload() throws Exception {
     15         byte[] bytes = "mumble".getBytes();
     16         NdefRecord ndefRecord = new NdefRecord(bytes);
     17 
     18         assertSame(ndefRecord.getPayload(), bytes);
     19     }
     20 }
     21